diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..3b939393 Binary files /dev/null and b/.DS_Store differ diff --git a/bin/.DS_Store b/bin/.DS_Store new file mode 100644 index 00000000..bcda1026 Binary files /dev/null and b/bin/.DS_Store differ diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 09a65622..d0362c40 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -5,7 +5,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service - For more information, please visit [https://docs.cloudsmith.com/api](https://docs.cloudsmith.com/api) + For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) *Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)* @@ -180,6 +180,8 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgsMembersUpdateVisibility**](docs/OrgsApi.md#orgsMembersUpdateVisibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. *OrgsApi* | [**orgsOpenidConnectCreate**](docs/OrgsApi.md#orgsOpenidConnectCreate) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. *OrgsApi* | [**orgsOpenidConnectDelete**](docs/OrgsApi.md#orgsOpenidConnectDelete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +*OrgsApi* | [**orgsOpenidConnectDynamicMappingsList**](docs/OrgsApi.md#orgsOpenidConnectDynamicMappingsList) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +*OrgsApi* | [**orgsOpenidConnectDynamicMappingsRead**](docs/OrgsApi.md#orgsOpenidConnectDynamicMappingsRead) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. *OrgsApi* | [**orgsOpenidConnectList**](docs/OrgsApi.md#orgsOpenidConnectList) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. *OrgsApi* | [**orgsOpenidConnectPartialUpdate**](docs/OrgsApi.md#orgsOpenidConnectPartialUpdate) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgsOpenidConnectRead**](docs/OrgsApi.md#orgsOpenidConnectRead) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -242,6 +244,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packagesUploadGo**](docs/PackagesApi.md#packagesUploadGo) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package *PackagesApi* | [**packagesUploadHelm**](docs/PackagesApi.md#packagesUploadHelm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package *PackagesApi* | [**packagesUploadHex**](docs/PackagesApi.md#packagesUploadHex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +*PackagesApi* | [**packagesUploadHuggingface**](docs/PackagesApi.md#packagesUploadHuggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package *PackagesApi* | [**packagesUploadLuarocks**](docs/PackagesApi.md#packagesUploadLuarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *PackagesApi* | [**packagesUploadMaven**](docs/PackagesApi.md#packagesUploadMaven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *PackagesApi* | [**packagesUploadNpm**](docs/PackagesApi.md#packagesUploadNpm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -267,6 +270,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packagesValidateUploadGo**](docs/PackagesApi.md#packagesValidateUploadGo) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package *PackagesApi* | [**packagesValidateUploadHelm**](docs/PackagesApi.md#packagesValidateUploadHelm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package *PackagesApi* | [**packagesValidateUploadHex**](docs/PackagesApi.md#packagesValidateUploadHex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +*PackagesApi* | [**packagesValidateUploadHuggingface**](docs/PackagesApi.md#packagesValidateUploadHuggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package *PackagesApi* | [**packagesValidateUploadLuarocks**](docs/PackagesApi.md#packagesValidateUploadLuarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *PackagesApi* | [**packagesValidateUploadMaven**](docs/PackagesApi.md#packagesValidateUploadMaven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *PackagesApi* | [**packagesValidateUploadNpm**](docs/PackagesApi.md#packagesValidateUploadNpm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -323,6 +327,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**reposUpstreamComposerPartialUpdate**](docs/ReposApi.md#reposUpstreamComposerPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. *ReposApi* | [**reposUpstreamComposerRead**](docs/ReposApi.md#reposUpstreamComposerRead) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. *ReposApi* | [**reposUpstreamComposerUpdate**](docs/ReposApi.md#reposUpstreamComposerUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +*ReposApi* | [**reposUpstreamCondaCreate**](docs/ReposApi.md#reposUpstreamCondaCreate) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +*ReposApi* | [**reposUpstreamCondaDelete**](docs/ReposApi.md#reposUpstreamCondaDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +*ReposApi* | [**reposUpstreamCondaList**](docs/ReposApi.md#reposUpstreamCondaList) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +*ReposApi* | [**reposUpstreamCondaPartialUpdate**](docs/ReposApi.md#reposUpstreamCondaPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +*ReposApi* | [**reposUpstreamCondaRead**](docs/ReposApi.md#reposUpstreamCondaRead) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +*ReposApi* | [**reposUpstreamCondaUpdate**](docs/ReposApi.md#reposUpstreamCondaUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. *ReposApi* | [**reposUpstreamCranCreate**](docs/ReposApi.md#reposUpstreamCranCreate) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. *ReposApi* | [**reposUpstreamCranDelete**](docs/ReposApi.md#reposUpstreamCranDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. *ReposApi* | [**reposUpstreamCranList**](docs/ReposApi.md#reposUpstreamCranList) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -365,6 +375,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**reposUpstreamHexPartialUpdate**](docs/ReposApi.md#reposUpstreamHexPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. *ReposApi* | [**reposUpstreamHexRead**](docs/ReposApi.md#reposUpstreamHexRead) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. *ReposApi* | [**reposUpstreamHexUpdate**](docs/ReposApi.md#reposUpstreamHexUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +*ReposApi* | [**reposUpstreamHuggingfaceCreate**](docs/ReposApi.md#reposUpstreamHuggingfaceCreate) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +*ReposApi* | [**reposUpstreamHuggingfaceDelete**](docs/ReposApi.md#reposUpstreamHuggingfaceDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +*ReposApi* | [**reposUpstreamHuggingfaceList**](docs/ReposApi.md#reposUpstreamHuggingfaceList) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +*ReposApi* | [**reposUpstreamHuggingfacePartialUpdate**](docs/ReposApi.md#reposUpstreamHuggingfacePartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +*ReposApi* | [**reposUpstreamHuggingfaceRead**](docs/ReposApi.md#reposUpstreamHuggingfaceRead) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +*ReposApi* | [**reposUpstreamHuggingfaceUpdate**](docs/ReposApi.md#reposUpstreamHuggingfaceUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. *ReposApi* | [**reposUpstreamMavenCreate**](docs/ReposApi.md#reposUpstreamMavenCreate) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. *ReposApi* | [**reposUpstreamMavenDelete**](docs/ReposApi.md#reposUpstreamMavenDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. *ReposApi* | [**reposUpstreamMavenList**](docs/ReposApi.md#reposUpstreamMavenList) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -458,6 +474,9 @@ Class | Method | HTTP request | Description - [ConanPackageUploadRequest](docs/ConanPackageUploadRequest.md) - [CondaPackageUpload](docs/CondaPackageUpload.md) - [CondaPackageUploadRequest](docs/CondaPackageUploadRequest.md) + - [CondaUpstream](docs/CondaUpstream.md) + - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) + - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -481,6 +500,7 @@ Class | Method | HTTP request | Description - [DockerUpstream](docs/DockerUpstream.md) - [DockerUpstreamRequest](docs/DockerUpstreamRequest.md) - [DockerUpstreamRequestPatch](docs/DockerUpstreamRequestPatch.md) + - [DynamicMapping](docs/DynamicMapping.md) - [EntitlementUsageMetrics](docs/EntitlementUsageMetrics.md) - [ErrorDetail](docs/ErrorDetail.md) - [Eula](docs/Eula.md) @@ -506,6 +526,11 @@ Class | Method | HTTP request | Description - [History](docs/History.md) - [HistoryFieldset](docs/HistoryFieldset.md) - [HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) + - [HuggingfacePackageUpload](docs/HuggingfacePackageUpload.md) + - [HuggingfacePackageUploadRequest](docs/HuggingfacePackageUploadRequest.md) + - [HuggingfaceUpstream](docs/HuggingfaceUpstream.md) + - [HuggingfaceUpstreamRequest](docs/HuggingfaceUpstreamRequest.md) + - [HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) @@ -594,8 +619,9 @@ Class | Method | HTTP request | Description - [PackageVulnerabilityPolicyViolationLog](docs/PackageVulnerabilityPolicyViolationLog.md) - [PackageVulnerabilityPolicyViolationLogCursorPage](docs/PackageVulnerabilityPolicyViolationLogCursorPage.md) - [ProviderSettings](docs/ProviderSettings.md) - - [ProviderSettingsRequest](docs/ProviderSettingsRequest.md) - - [ProviderSettingsRequestPatch](docs/ProviderSettingsRequestPatch.md) + - [ProviderSettingsWrite](docs/ProviderSettingsWrite.md) + - [ProviderSettingsWriteRequest](docs/ProviderSettingsWriteRequest.md) + - [ProviderSettingsWriteRequestPatch](docs/ProviderSettingsWriteRequestPatch.md) - [PythonPackageUpload](docs/PythonPackageUpload.md) - [PythonPackageUploadRequest](docs/PythonPackageUploadRequest.md) - [PythonUpstream](docs/PythonUpstream.md) diff --git a/bindings/java/src/docs/CondaUpstream.md b/bindings/java/src/docs/CondaUpstream.md new file mode 100644 index 00000000..a743b233 --- /dev/null +++ b/bindings/java/src/docs/CondaUpstream.md @@ -0,0 +1,53 @@ + +# CondaUpstream + +## 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" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/CondaUpstreamRequest.md b/bindings/java/src/docs/CondaUpstreamRequest.md new file mode 100644 index 00000000..3183fa54 --- /dev/null +++ b/bindings/java/src/docs/CondaUpstreamRequest.md @@ -0,0 +1,38 @@ + +# CondaUpstreamRequest + +## 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" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/CondaUpstreamRequestPatch.md b/bindings/java/src/docs/CondaUpstreamRequestPatch.md new file mode 100644 index 00000000..d6bd7d82 --- /dev/null +++ b/bindings/java/src/docs/CondaUpstreamRequestPatch.md @@ -0,0 +1,38 @@ + +# CondaUpstreamRequestPatch + +## 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" +CACHE_AND_PROXY | "Cache and Proxy" + + + diff --git a/bindings/java/src/docs/DynamicMapping.md b/bindings/java/src/docs/DynamicMapping.md new file mode 100644 index 00000000..66fd1424 --- /dev/null +++ b/bindings/java/src/docs/DynamicMapping.md @@ -0,0 +1,11 @@ + +# DynamicMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claimValue** | **String** | The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | +**serviceAccount** | **String** | The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | + + + diff --git a/bindings/java/src/docs/HuggingfacePackageUpload.md b/bindings/java/src/docs/HuggingfacePackageUpload.md new file mode 100644 index 00000000..3974cf68 --- /dev/null +++ b/bindings/java/src/docs/HuggingfacePackageUpload.md @@ -0,0 +1,103 @@ + +# HuggingfacePackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**List<Architecture>**](Architecture.md) | | [optional] +**cdnUrl** | **String** | | [optional] +**checksumMd5** | **String** | | [optional] +**checksumSha1** | **String** | | [optional] +**checksumSha256** | **String** | | [optional] +**checksumSha512** | **String** | | [optional] +**dependenciesChecksumMd5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependenciesUrl** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**displayName** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **java.math.BigInteger** | | [optional] +**epoch** | **java.math.BigInteger** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**files** | [**List<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**formatUrl** | **String** | | [optional] +**freeableStorage** | **java.math.BigInteger** | Amount of storage that will be freed if this package is deleted | [optional] +**fullyQualifiedName** | **String** | | [optional] +**identifierPerm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Map<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **Boolean** | | [optional] +**isCancellable** | **Boolean** | | [optional] +**isCopyable** | **Boolean** | | [optional] +**isDeleteable** | **Boolean** | | [optional] +**isDownloadable** | **Boolean** | | [optional] +**isMoveable** | **Boolean** | | [optional] +**isQuarantinable** | **Boolean** | | [optional] +**isQuarantined** | **Boolean** | | [optional] +**isResyncable** | **Boolean** | | [optional] +**isSecurityScannable** | **Boolean** | | [optional] +**isSyncAwaiting** | **Boolean** | | [optional] +**isSyncCompleted** | **Boolean** | | [optional] +**isSyncFailed** | **Boolean** | | [optional] +**isSyncInFlight** | **Boolean** | | [optional] +**isSyncInProgress** | **Boolean** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespaceUrl** | **String** | | [optional] +**numFiles** | **java.math.BigInteger** | | [optional] +**originRepository** | **String** | | [optional] +**originRepositoryUrl** | **String** | | [optional] +**packageType** | **java.math.BigInteger** | The type of package contents. | [optional] +**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repositoryUrl** | **String** | | [optional] +**securityScanCompletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was completed. | [optional] +**securityScanStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was started. | [optional] +**securityScanStatus** | [**SecurityScanStatusEnum**](#SecurityScanStatusEnum) | | [optional] +**securityScanStatusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning status was updated. | [optional] +**selfHtmlUrl** | **String** | | [optional] +**selfUrl** | **String** | | [optional] +**signatureUrl** | **String** | | [optional] +**size** | **java.math.BigInteger** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slugPerm** | **String** | | [optional] +**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional] +**stageStr** | **String** | | [optional] +**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional] +**status** | **java.math.BigInteger** | The synchronisation status of the package. | [optional] +**statusReason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**statusStr** | **String** | | [optional] +**statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] +**statusUrl** | **String** | | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] +**syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] +**tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**typeDisplay** | **String** | | [optional] +**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploaderUrl** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**versionOrig** | **String** | | [optional] +**vulnerabilityScanResultsUrl** | **String** | | [optional] + + + +## Enum: SecurityScanStatusEnum +Name | Value +---- | ----- +AWAITING_SECURITY_SCAN | "Awaiting Security Scan" +SECURITY_SCANNING_IN_PROGRESS | "Security Scanning in Progress" +SCAN_DETECTED_VULNERABILITIES | "Scan Detected Vulnerabilities" +SCAN_DETECTED_NO_VULNERABILITIES | "Scan Detected No Vulnerabilities" +SECURITY_SCANNING_DISABLED | "Security Scanning Disabled" +SECURITY_SCANNING_FAILED | "Security Scanning Failed" +SECURITY_SCANNING_SKIPPED | "Security Scanning Skipped" +SECURITY_SCANNING_NOT_SUPPORTED | "Security Scanning Not Supported" + + + diff --git a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md new file mode 100644 index 00000000..c3f612f2 --- /dev/null +++ b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md @@ -0,0 +1,12 @@ + +# HuggingfacePackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**packageFile** | **String** | The primary file for the package. | +**republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] + + + diff --git a/bindings/java/src/docs/HuggingfaceUpstream.md b/bindings/java/src/docs/HuggingfaceUpstream.md new file mode 100644 index 00000000..1e2c7c8d --- /dev/null +++ b/bindings/java/src/docs/HuggingfaceUpstream.md @@ -0,0 +1,52 @@ + +# HuggingfaceUpstream + +## 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" +TOKEN | "Token" + + + +## 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/HuggingfaceUpstreamRequest.md b/bindings/java/src/docs/HuggingfaceUpstreamRequest.md new file mode 100644 index 00000000..ebe72d35 --- /dev/null +++ b/bindings/java/src/docs/HuggingfaceUpstreamRequest.md @@ -0,0 +1,37 @@ + +# HuggingfaceUpstreamRequest + +## 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" +TOKEN | "Token" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/HuggingfaceUpstreamRequestPatch.md b/bindings/java/src/docs/HuggingfaceUpstreamRequestPatch.md new file mode 100644 index 00000000..e3dc6997 --- /dev/null +++ b/bindings/java/src/docs/HuggingfaceUpstreamRequestPatch.md @@ -0,0 +1,37 @@ + +# HuggingfaceUpstreamRequestPatch + +## 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" +TOKEN | "Token" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/OrgsApi.md b/bindings/java/src/docs/OrgsApi.md index da8b2091..b3140882 100644 --- a/bindings/java/src/docs/OrgsApi.md +++ b/bindings/java/src/docs/OrgsApi.md @@ -38,6 +38,8 @@ Method | HTTP request | Description [**orgsMembersUpdateVisibility**](OrgsApi.md#orgsMembersUpdateVisibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. [**orgsOpenidConnectCreate**](OrgsApi.md#orgsOpenidConnectCreate) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. [**orgsOpenidConnectDelete**](OrgsApi.md#orgsOpenidConnectDelete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +[**orgsOpenidConnectDynamicMappingsList**](OrgsApi.md#orgsOpenidConnectDynamicMappingsList) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +[**orgsOpenidConnectDynamicMappingsRead**](OrgsApi.md#orgsOpenidConnectDynamicMappingsRead) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. [**orgsOpenidConnectList**](OrgsApi.md#orgsOpenidConnectList) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. [**orgsOpenidConnectPartialUpdate**](OrgsApi.md#orgsOpenidConnectPartialUpdate) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgsOpenidConnectRead**](OrgsApi.md#orgsOpenidConnectRead) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -2094,7 +2096,7 @@ Name | Type | Description | Notes # **orgsOpenidConnectCreate** -> ProviderSettings orgsOpenidConnectCreate(org, data) +> ProviderSettingsWrite orgsOpenidConnectCreate(org, data) Create the OpenID Connect provider settings for the org. @@ -2124,9 +2126,9 @@ basic.setPassword("YOUR PASSWORD"); OrgsApi apiInstance = new OrgsApi(); String org = "org_example"; // String | -ProviderSettingsRequest data = new ProviderSettingsRequest(); // ProviderSettingsRequest | +ProviderSettingsWriteRequest data = new ProviderSettingsWriteRequest(); // ProviderSettingsWriteRequest | try { - ProviderSettings result = apiInstance.orgsOpenidConnectCreate(org, data); + ProviderSettingsWrite result = apiInstance.orgsOpenidConnectCreate(org, data); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrgsApi#orgsOpenidConnectCreate"); @@ -2139,11 +2141,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2210,6 +2212,136 @@ null (empty response body) [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsOpenidConnectDynamicMappingsList** +> List<DynamicMapping> orgsOpenidConnectDynamicMappingsList(org, providerSetting, page, pageSize) + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +### 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.OrgsApi; + +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"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String providerSetting = "providerSetting_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.orgsOpenidConnectDynamicMappingsList(org, providerSetting, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsOpenidConnectDynamicMappingsList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **providerSetting** | **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<DynamicMapping>**](DynamicMapping.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsOpenidConnectDynamicMappingsRead** +> DynamicMapping orgsOpenidConnectDynamicMappingsRead(org, providerSetting, claimValue) + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +### 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.OrgsApi; + +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"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String providerSetting = "providerSetting_example"; // String | +String claimValue = "claimValue_example"; // String | +try { + DynamicMapping result = apiInstance.orgsOpenidConnectDynamicMappingsRead(org, providerSetting, claimValue); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsOpenidConnectDynamicMappingsRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **providerSetting** | **String**| | + **claimValue** | **String**| | + +### Return type + +[**DynamicMapping**](DynamicMapping.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json @@ -2285,7 +2417,7 @@ Name | Type | Description | Notes # **orgsOpenidConnectPartialUpdate** -> ProviderSettings orgsOpenidConnectPartialUpdate(org, slugPerm, data) +> ProviderSettingsWrite orgsOpenidConnectPartialUpdate(org, slugPerm, data) Update a specific OpenID Connect provider setting for the org. @@ -2316,9 +2448,9 @@ basic.setPassword("YOUR PASSWORD"); OrgsApi apiInstance = new OrgsApi(); String org = "org_example"; // String | String slugPerm = "slugPerm_example"; // String | -ProviderSettingsRequestPatch data = new ProviderSettingsRequestPatch(); // ProviderSettingsRequestPatch | +ProviderSettingsWriteRequestPatch data = new ProviderSettingsWriteRequestPatch(); // ProviderSettingsWriteRequestPatch | try { - ProviderSettings result = apiInstance.orgsOpenidConnectPartialUpdate(org, slugPerm, data); + ProviderSettingsWrite result = apiInstance.orgsOpenidConnectPartialUpdate(org, slugPerm, data); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrgsApi#orgsOpenidConnectPartialUpdate"); @@ -2332,11 +2464,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | **slugPerm** | **String**| | - **data** | [**ProviderSettingsRequestPatch**](ProviderSettingsRequestPatch.md)| | [optional] + **data** | [**ProviderSettingsWriteRequestPatch**](ProviderSettingsWriteRequestPatch.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2411,7 +2543,7 @@ Name | Type | Description | Notes # **orgsOpenidConnectUpdate** -> ProviderSettings orgsOpenidConnectUpdate(org, slugPerm, data) +> ProviderSettingsWrite orgsOpenidConnectUpdate(org, slugPerm, data) Update a specific OpenID Connect provider setting for the org. @@ -2442,9 +2574,9 @@ basic.setPassword("YOUR PASSWORD"); OrgsApi apiInstance = new OrgsApi(); String org = "org_example"; // String | String slugPerm = "slugPerm_example"; // String | -ProviderSettingsRequest data = new ProviderSettingsRequest(); // ProviderSettingsRequest | +ProviderSettingsWriteRequest data = new ProviderSettingsWriteRequest(); // ProviderSettingsWriteRequest | try { - ProviderSettings result = apiInstance.orgsOpenidConnectUpdate(org, slugPerm, data); + ProviderSettingsWrite result = apiInstance.orgsOpenidConnectUpdate(org, slugPerm, data); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrgsApi#orgsOpenidConnectUpdate"); @@ -2458,11 +2590,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | **slugPerm** | **String**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization diff --git a/bindings/java/src/docs/PackagesApi.md b/bindings/java/src/docs/PackagesApi.md index 9c236beb..205e0fcc 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -29,6 +29,7 @@ Method | HTTP request | Description [**packagesUploadGo**](PackagesApi.md#packagesUploadGo) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package [**packagesUploadHelm**](PackagesApi.md#packagesUploadHelm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package [**packagesUploadHex**](PackagesApi.md#packagesUploadHex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +[**packagesUploadHuggingface**](PackagesApi.md#packagesUploadHuggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package [**packagesUploadLuarocks**](PackagesApi.md#packagesUploadLuarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packagesUploadMaven**](PackagesApi.md#packagesUploadMaven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packagesUploadNpm**](PackagesApi.md#packagesUploadNpm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -54,6 +55,7 @@ Method | HTTP request | Description [**packagesValidateUploadGo**](PackagesApi.md#packagesValidateUploadGo) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package [**packagesValidateUploadHelm**](PackagesApi.md#packagesValidateUploadHelm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package [**packagesValidateUploadHex**](PackagesApi.md#packagesValidateUploadHex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +[**packagesValidateUploadHuggingface**](PackagesApi.md#packagesValidateUploadHuggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package [**packagesValidateUploadLuarocks**](PackagesApi.md#packagesValidateUploadLuarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packagesValidateUploadMaven**](PackagesApi.md#packagesValidateUploadMaven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packagesValidateUploadNpm**](PackagesApi.md#packagesValidateUploadNpm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -263,7 +265,7 @@ Name | Type | Description | Notes # **packagesGroupsList** -> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, query, sort) +> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort) Return a list of Package Groups in a repository. @@ -297,10 +299,11 @@ 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. +Boolean hideSubcomponents = false; // Boolean | Whether to hide packages which are subcomponents of another package in the results 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); + InlineResponse200 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesGroupsList"); @@ -317,6 +320,7 @@ Name | Type | Description | Notes **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] + **hideSubcomponents** | **Boolean**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] **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] @@ -1684,6 +1688,70 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **packagesUploadHuggingface** +> HuggingfacePackageUpload packagesUploadHuggingface(owner, repo, data) + +Create a new Hugging Face package + +Create a new Hugging Face package + +### 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 | +HuggingfacePackageUploadRequest data = new HuggingfacePackageUploadRequest(); // HuggingfacePackageUploadRequest | +try { + HuggingfacePackageUpload result = apiInstance.packagesUploadHuggingface(owner, repo, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackagesApi#packagesUploadHuggingface"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### Return type + +[**HuggingfacePackageUpload**](HuggingfacePackageUpload.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json @@ -3271,6 +3339,69 @@ null (empty response body) [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **packagesValidateUploadHuggingface** +> packagesValidateUploadHuggingface(owner, repo, data) + +Validate parameters for create Hugging Face package + +Validate parameters for create Hugging Face package + +### 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 | +HuggingfacePackageUploadRequest data = new HuggingfacePackageUploadRequest(); // HuggingfacePackageUploadRequest | +try { + apiInstance.packagesValidateUploadHuggingface(owner, repo, data); +} catch (ApiException e) { + System.err.println("Exception when calling PackagesApi#packagesValidateUploadHuggingface"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/ProviderSettings.md b/bindings/java/src/docs/ProviderSettings.md index 2f1dcfa5..a669c3d1 100644 --- a/bindings/java/src/docs/ProviderSettings.md +++ b/bindings/java/src/docs/ProviderSettings.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | **enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | +**mappingClaim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **name** | **String** | The name of the provider settings are being configured for | **providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings | +**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings. | [optional] **slug** | **String** | The slug of the provider settings | [optional] **slugPerm** | **String** | The unique, immutable identifier of the provider settings. | [optional] diff --git a/bindings/java/src/docs/ProviderSettingsRequest.md b/bindings/java/src/docs/ProviderSettingsRequest.md deleted file mode 100644 index 3ed99b0f..00000000 --- a/bindings/java/src/docs/ProviderSettingsRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - -# ProviderSettingsRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | -**enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | -**name** | **String** | The name of the provider settings are being configured for | -**providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings | - - - diff --git a/bindings/java/src/docs/ProviderSettingsRequestPatch.md b/bindings/java/src/docs/ProviderSettingsRequestPatch.md deleted file mode 100644 index 062dd87e..00000000 --- a/bindings/java/src/docs/ProviderSettingsRequestPatch.md +++ /dev/null @@ -1,14 +0,0 @@ - -# ProviderSettingsRequestPatch - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | [optional] -**enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | [optional] -**name** | **String** | The name of the provider settings are being configured for | [optional] -**providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | [optional] -**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings | [optional] - - - diff --git a/bindings/java/src/docs/ProviderSettingsWrite.md b/bindings/java/src/docs/ProviderSettingsWrite.md new file mode 100644 index 00000000..979bd61f --- /dev/null +++ b/bindings/java/src/docs/ProviderSettingsWrite.md @@ -0,0 +1,18 @@ + +# ProviderSettingsWrite + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamicMappings** | [**List<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | +**mappingClaim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | +**providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | +**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] +**slug** | **String** | The slug of the provider settings | [optional] +**slugPerm** | **String** | The unique, immutable identifier of the provider settings. | [optional] + + + diff --git a/bindings/java/src/docs/ProviderSettingsWriteRequest.md b/bindings/java/src/docs/ProviderSettingsWriteRequest.md new file mode 100644 index 00000000..4c14b63d --- /dev/null +++ b/bindings/java/src/docs/ProviderSettingsWriteRequest.md @@ -0,0 +1,16 @@ + +# ProviderSettingsWriteRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamicMappings** | [**List<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | +**mappingClaim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | +**providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | +**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] + + + diff --git a/bindings/java/src/docs/ProviderSettingsWriteRequestPatch.md b/bindings/java/src/docs/ProviderSettingsWriteRequestPatch.md new file mode 100644 index 00000000..c3ba8294 --- /dev/null +++ b/bindings/java/src/docs/ProviderSettingsWriteRequestPatch.md @@ -0,0 +1,16 @@ + +# ProviderSettingsWriteRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | [optional] +**dynamicMappings** | [**List<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **Boolean** | Whether the provider settings should be used for incoming OIDC requests. | [optional] +**mappingClaim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | [optional] +**providerUrl** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | [optional] +**serviceAccounts** | **List<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] + + + diff --git a/bindings/java/src/docs/ReposApi.md b/bindings/java/src/docs/ReposApi.md index fbfbaa9b..80618f76 100644 --- a/bindings/java/src/docs/ReposApi.md +++ b/bindings/java/src/docs/ReposApi.md @@ -43,6 +43,12 @@ Method | HTTP request | Description [**reposUpstreamComposerPartialUpdate**](ReposApi.md#reposUpstreamComposerPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. [**reposUpstreamComposerRead**](ReposApi.md#reposUpstreamComposerRead) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. [**reposUpstreamComposerUpdate**](ReposApi.md#reposUpstreamComposerUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +[**reposUpstreamCondaCreate**](ReposApi.md#reposUpstreamCondaCreate) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +[**reposUpstreamCondaDelete**](ReposApi.md#reposUpstreamCondaDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +[**reposUpstreamCondaList**](ReposApi.md#reposUpstreamCondaList) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +[**reposUpstreamCondaPartialUpdate**](ReposApi.md#reposUpstreamCondaPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +[**reposUpstreamCondaRead**](ReposApi.md#reposUpstreamCondaRead) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +[**reposUpstreamCondaUpdate**](ReposApi.md#reposUpstreamCondaUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. [**reposUpstreamCranCreate**](ReposApi.md#reposUpstreamCranCreate) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. [**reposUpstreamCranDelete**](ReposApi.md#reposUpstreamCranDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. [**reposUpstreamCranList**](ReposApi.md#reposUpstreamCranList) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -85,6 +91,12 @@ Method | HTTP request | Description [**reposUpstreamHexPartialUpdate**](ReposApi.md#reposUpstreamHexPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. [**reposUpstreamHexRead**](ReposApi.md#reposUpstreamHexRead) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. [**reposUpstreamHexUpdate**](ReposApi.md#reposUpstreamHexUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +[**reposUpstreamHuggingfaceCreate**](ReposApi.md#reposUpstreamHuggingfaceCreate) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +[**reposUpstreamHuggingfaceDelete**](ReposApi.md#reposUpstreamHuggingfaceDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +[**reposUpstreamHuggingfaceList**](ReposApi.md#reposUpstreamHuggingfaceList) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +[**reposUpstreamHuggingfacePartialUpdate**](ReposApi.md#reposUpstreamHuggingfacePartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +[**reposUpstreamHuggingfaceRead**](ReposApi.md#reposUpstreamHuggingfaceRead) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +[**reposUpstreamHuggingfaceUpdate**](ReposApi.md#reposUpstreamHuggingfaceUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. [**reposUpstreamMavenCreate**](ReposApi.md#reposUpstreamMavenCreate) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. [**reposUpstreamMavenDelete**](ReposApi.md#reposUpstreamMavenDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. [**reposUpstreamMavenList**](ReposApi.md#reposUpstreamMavenList) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -2610,13 +2622,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranCreate** -> CranUpstream reposUpstreamCranCreate(owner, identifier, data) + +# **reposUpstreamCondaCreate** +> CondaUpstream reposUpstreamCondaCreate(owner, identifier, data) -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. ### Example ```java @@ -2643,12 +2655,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | +CondaUpstreamRequest data = new CondaUpstreamRequest(); // CondaUpstreamRequest | try { - CranUpstream result = apiInstance.reposUpstreamCranCreate(owner, identifier, data); + CondaUpstream result = apiInstance.reposUpstreamCondaCreate(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#reposUpstreamCondaCreate"); e.printStackTrace(); } ``` @@ -2659,11 +2671,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2674,13 +2686,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranDelete** -> reposUpstreamCranDelete(owner, identifier, slugPerm) + +# **reposUpstreamCondaDelete** +> reposUpstreamCondaDelete(owner, identifier, slugPerm) -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. ### Example ```java @@ -2709,9 +2721,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamCranDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamCondaDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamCondaDelete"); e.printStackTrace(); } ``` @@ -2737,13 +2749,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranList** -> List<CranUpstream> reposUpstreamCranList(owner, identifier, page, pageSize) + +# **reposUpstreamCondaList** +> List<CondaUpstream> reposUpstreamCondaList(owner, identifier, page, pageSize) -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. ### Example ```java @@ -2773,10 +2785,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.reposUpstreamCondaList(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#reposUpstreamCondaList"); e.printStackTrace(); } ``` @@ -2792,7 +2804,7 @@ Name | Type | Description | Notes ### Return type -[**List<CranUpstream>**](CranUpstream.md) +[**List<CondaUpstream>**](CondaUpstream.md) ### Authorization @@ -2803,13 +2815,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranPartialUpdate** -> CranUpstream reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCondaPartialUpdate** +> CondaUpstream reposUpstreamCondaPartialUpdate(owner, identifier, slugPerm, data) -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. ### Example ```java @@ -2837,12 +2849,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 | +CondaUpstreamRequestPatch data = new CondaUpstreamRequestPatch(); // CondaUpstreamRequestPatch | try { - CranUpstream result = apiInstance.reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data); + CondaUpstream result = apiInstance.reposUpstreamCondaPartialUpdate(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#reposUpstreamCondaPartialUpdate"); e.printStackTrace(); } ``` @@ -2854,11 +2866,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**CondaUpstreamRequestPatch**](CondaUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2869,13 +2881,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranRead** -> CranUpstream reposUpstreamCranRead(owner, identifier, slugPerm) + +# **reposUpstreamCondaRead** +> CondaUpstream reposUpstreamCondaRead(owner, identifier, slugPerm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. ### Example ```java @@ -2904,10 +2916,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - CranUpstream result = apiInstance.reposUpstreamCranRead(owner, identifier, slugPerm); + CondaUpstream result = apiInstance.reposUpstreamCondaRead(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#reposUpstreamCondaRead"); e.printStackTrace(); } ``` @@ -2922,7 +2934,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2933,13 +2945,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranUpdate** -> CranUpstream reposUpstreamCranUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCondaUpdate** +> CondaUpstream reposUpstreamCondaUpdate(owner, identifier, slugPerm, data) -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. ### Example ```java @@ -2967,12 +2979,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 | +CondaUpstreamRequest data = new CondaUpstreamRequest(); // CondaUpstreamRequest | try { - CranUpstream result = apiInstance.reposUpstreamCranUpdate(owner, identifier, slugPerm, data); + CondaUpstream result = apiInstance.reposUpstreamCondaUpdate(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#reposUpstreamCondaUpdate"); e.printStackTrace(); } ``` @@ -2984,11 +2996,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2999,13 +3011,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartCreate** -> DartUpstream reposUpstreamDartCreate(owner, identifier, data) + +# **reposUpstreamCranCreate** +> CranUpstream reposUpstreamCranCreate(owner, identifier, 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 ```java @@ -3032,12 +3044,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | +CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | try { - DartUpstream result = apiInstance.reposUpstreamDartCreate(owner, identifier, data); + CranUpstream result = apiInstance.reposUpstreamCranCreate(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#reposUpstreamCranCreate"); e.printStackTrace(); } ``` @@ -3048,11 +3060,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 @@ -3063,13 +3075,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartDelete** -> reposUpstreamDartDelete(owner, identifier, slugPerm) + +# **reposUpstreamCranDelete** +> reposUpstreamCranDelete(owner, identifier, slugPerm) -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 ```java @@ -3098,9 +3110,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamDartDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamCranDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamCranDelete"); e.printStackTrace(); } ``` @@ -3126,13 +3138,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartList** -> List<DartUpstream> reposUpstreamDartList(owner, identifier, page, pageSize) + +# **reposUpstreamCranList** +> List<CranUpstream> reposUpstreamCranList(owner, identifier, page, pageSize) -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 ```java @@ -3162,10 +3174,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.reposUpstreamCranList(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#reposUpstreamCranList"); e.printStackTrace(); } ``` @@ -3181,7 +3193,7 @@ Name | Type | Description | Notes ### Return type -[**List<DartUpstream>**](DartUpstream.md) +[**List<CranUpstream>**](CranUpstream.md) ### Authorization @@ -3192,13 +3204,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartPartialUpdate** -> DartUpstream reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCranPartialUpdate** +> CranUpstream reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, 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 ```java @@ -3226,12 +3238,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 | +CranUpstreamRequestPatch data = new CranUpstreamRequestPatch(); // CranUpstreamRequestPatch | try { - DartUpstream result = apiInstance.reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data); + CranUpstream result = apiInstance.reposUpstreamCranPartialUpdate(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#reposUpstreamCranPartialUpdate"); e.printStackTrace(); } ``` @@ -3243,11 +3255,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3258,13 +3270,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartRead** -> DartUpstream reposUpstreamDartRead(owner, identifier, slugPerm) + +# **reposUpstreamCranRead** +> CranUpstream reposUpstreamCranRead(owner, identifier, slugPerm) -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 ```java @@ -3293,10 +3305,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - DartUpstream result = apiInstance.reposUpstreamDartRead(owner, identifier, slugPerm); + CranUpstream result = apiInstance.reposUpstreamCranRead(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#reposUpstreamCranRead"); e.printStackTrace(); } ``` @@ -3311,7 +3323,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3322,13 +3334,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartUpdate** -> DartUpstream reposUpstreamDartUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCranUpdate** +> CranUpstream reposUpstreamCranUpdate(owner, identifier, slugPerm, 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 ```java @@ -3356,12 +3368,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 | +CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | try { - DartUpstream result = apiInstance.reposUpstreamDartUpdate(owner, identifier, slugPerm, data); + CranUpstream result = apiInstance.reposUpstreamCranUpdate(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#reposUpstreamCranUpdate"); e.printStackTrace(); } ``` @@ -3373,11 +3385,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3388,13 +3400,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebCreate** -> DebUpstream reposUpstreamDebCreate(owner, identifier, data) + +# **reposUpstreamDartCreate** +> DartUpstream reposUpstreamDartCreate(owner, identifier, data) -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. ### Example ```java @@ -3421,12 +3433,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | try { - DebUpstream result = apiInstance.reposUpstreamDebCreate(owner, identifier, data); + DartUpstream result = apiInstance.reposUpstreamDartCreate(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#reposUpstreamDartCreate"); e.printStackTrace(); } ``` @@ -3437,11 +3449,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3452,13 +3464,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebDelete** -> reposUpstreamDebDelete(owner, identifier, slugPerm) + +# **reposUpstreamDartDelete** +> reposUpstreamDartDelete(owner, identifier, slugPerm) -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. ### Example ```java @@ -3487,9 +3499,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamDebDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamDartDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamDartDelete"); e.printStackTrace(); } ``` @@ -3515,13 +3527,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebList** -> List<DebUpstream> reposUpstreamDebList(owner, identifier, page, pageSize) + +# **reposUpstreamDartList** +> List<DartUpstream> reposUpstreamDartList(owner, identifier, page, pageSize) -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. ### Example ```java @@ -3551,10 +3563,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.reposUpstreamDartList(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#reposUpstreamDartList"); e.printStackTrace(); } ``` @@ -3570,7 +3582,7 @@ Name | Type | Description | Notes ### Return type -[**List<DebUpstream>**](DebUpstream.md) +[**List<DartUpstream>**](DartUpstream.md) ### Authorization @@ -3581,13 +3593,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebPartialUpdate** -> DebUpstream reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDartPartialUpdate** +> DartUpstream reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data) -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. +Partially update a Dart upstream config for this repository. ### Example ```java @@ -3615,12 +3627,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 | +DartUpstreamRequestPatch data = new DartUpstreamRequestPatch(); // DartUpstreamRequestPatch | try { - DebUpstream result = apiInstance.reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data); + DartUpstream result = apiInstance.reposUpstreamDartPartialUpdate(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#reposUpstreamDartPartialUpdate"); e.printStackTrace(); } ``` @@ -3632,11 +3644,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3647,13 +3659,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebRead** -> DebUpstream reposUpstreamDebRead(owner, identifier, slugPerm) + +# **reposUpstreamDartRead** +> DartUpstream reposUpstreamDartRead(owner, identifier, slugPerm) -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. ### Example ```java @@ -3682,10 +3694,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - DebUpstream result = apiInstance.reposUpstreamDebRead(owner, identifier, slugPerm); + DartUpstream result = apiInstance.reposUpstreamDartRead(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#reposUpstreamDartRead"); e.printStackTrace(); } ``` @@ -3700,7 +3712,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3711,13 +3723,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebUpdate** -> DebUpstream reposUpstreamDebUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDartUpdate** +> DartUpstream reposUpstreamDartUpdate(owner, identifier, slugPerm, data) -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. ### Example ```java @@ -3745,12 +3757,660 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +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 +// 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 | +DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +try { + DebUpstream result = apiInstance.reposUpstreamDebCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebCreate"); + e.printStackTrace(); +} +``` + +### 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 + + +# **reposUpstreamDebDelete** +> reposUpstreamDebDelete(owner, identifier, slugPerm) + +Delete a Debian upstream config for this repository. + +Delete a Debian 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.reposUpstreamDebDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebDelete"); + 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 + + +# **reposUpstreamDebList** +> List<DebUpstream> reposUpstreamDebList(owner, identifier, page, pageSize) + +List Debian upstream configs for this repository. + +List Debian 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.reposUpstreamDebList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebList"); + 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<DebUpstream>**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDebPartialUpdate** +> DebUpstream reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a Debian upstream config for this repository. + +Partially update a Debian 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 | +DebUpstreamRequestPatch data = new DebUpstreamRequestPatch(); // DebUpstreamRequestPatch | +try { + DebUpstream result = apiInstance.reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **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 + + +# **reposUpstreamDebRead** +> DebUpstream reposUpstreamDebRead(owner, identifier, slugPerm) + +Retrieve a Debian upstream config for this repository. + +Retrieve a Debian 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 { + DebUpstream result = apiInstance.reposUpstreamDebRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**DebUpstream**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDebUpdate** +> DebUpstream reposUpstreamDebUpdate(owner, identifier, slugPerm, data) + +Update a Debian upstream config for this repository. + +Update a Debian 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 | +DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +try { + DebUpstream result = apiInstance.reposUpstreamDebUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDebUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **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 + + +# **reposUpstreamDockerCreate** +> DockerUpstream reposUpstreamDockerCreate(owner, identifier, data) + +Create a Docker upstream config for this repository. + +Create a Docker 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 | +DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | +try { + DockerUpstream result = apiInstance.reposUpstreamDockerCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDockerCreate"); + e.printStackTrace(); +} +``` + +### 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 + + +# **reposUpstreamDockerDelete** +> reposUpstreamDockerDelete(owner, identifier, slugPerm) + +Delete a Docker upstream config for this repository. + +Delete a Docker 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.reposUpstreamDockerDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDockerDelete"); + 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 + + +# **reposUpstreamDockerList** +> List<DockerUpstream> reposUpstreamDockerList(owner, identifier, page, pageSize) + +List Docker upstream configs for this repository. + +List Docker 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.reposUpstreamDockerList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDockerList"); + 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<DockerUpstream>**](DockerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDockerPartialUpdate** +> DockerUpstream reposUpstreamDockerPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a Docker upstream config for this repository. + +Partially update a Docker 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 | +DockerUpstreamRequestPatch data = new DockerUpstreamRequestPatch(); // DockerUpstreamRequestPatch | try { - DebUpstream result = apiInstance.reposUpstreamDebUpdate(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#reposUpstreamDebUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerPartialUpdate"); e.printStackTrace(); } ``` @@ -3762,11 +4422,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3777,13 +4437,77 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerCreate** -> DockerUpstream reposUpstreamDockerCreate(owner, identifier, data) + +# **reposUpstreamDockerRead** +> DockerUpstream reposUpstreamDockerRead(owner, identifier, slugPerm) -Create a Docker upstream config for this repository. +Retrieve a Docker upstream config for this repository. -Create a Docker upstream config for this repository. +Retrieve a Docker 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 { + DockerUpstream result = apiInstance.reposUpstreamDockerRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDockerRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**DockerUpstream**](DockerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDockerUpdate** +> DockerUpstream reposUpstreamDockerUpdate(owner, identifier, slugPerm, data) + +Update a Docker upstream config for this repository. + +Update a Docker upstream config for this repository. ### Example ```java @@ -3810,12 +4534,13 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | try { - DockerUpstream result = apiInstance.reposUpstreamDockerCreate(owner, identifier, data); + DockerUpstream result = apiInstance.reposUpstreamDockerUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerUpdate"); e.printStackTrace(); } ``` @@ -3826,6 +4551,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | + **slugPerm** | **String**| | **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type @@ -3841,13 +4567,77 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerDelete** -> reposUpstreamDockerDelete(owner, identifier, slugPerm) + +# **reposUpstreamGoCreate** +> GoUpstream reposUpstreamGoCreate(owner, identifier, data) -Delete a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Create a Go 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 | +GoUpstreamRequest data = new GoUpstreamRequest(); // GoUpstreamRequest | +try { + GoUpstream result = apiInstance.reposUpstreamGoCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamGoCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + +### Return type + +[**GoUpstream**](GoUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamGoDelete** +> reposUpstreamGoDelete(owner, identifier, slugPerm) + +Delete a Go upstream config for this repository. + +Delete a Go upstream config for this repository. ### Example ```java @@ -3876,9 +4666,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(); } ``` @@ -3904,13 +4694,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 @@ -3940,10 +4730,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(); } ``` @@ -3959,7 +4749,7 @@ Name | Type | Description | Notes ### Return type -[**List<DockerUpstream>**](DockerUpstream.md) +[**List<GoUpstream>**](GoUpstream.md) ### Authorization @@ -3970,13 +4760,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 @@ -4004,12 +4794,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(); } ``` @@ -4021,11 +4811,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 @@ -4036,13 +4826,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 @@ -4071,10 +4861,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(); } ``` @@ -4089,7 +4879,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -4100,13 +4890,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 @@ -4134,12 +4924,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(); } ``` @@ -4151,11 +4941,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 @@ -4166,13 +4956,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoCreate** -> GoUpstream reposUpstreamGoCreate(owner, identifier, data) + +# **reposUpstreamHelmCreate** +> HelmUpstream reposUpstreamHelmCreate(owner, identifier, data) -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. ### Example ```java @@ -4199,12 +4989,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -GoUpstreamRequest data = new GoUpstreamRequest(); // GoUpstreamRequest | +HelmUpstreamRequest data = new HelmUpstreamRequest(); // HelmUpstreamRequest | try { - GoUpstream result = apiInstance.reposUpstreamGoCreate(owner, identifier, data); + HelmUpstream result = apiInstance.reposUpstreamHelmCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmCreate"); e.printStackTrace(); } ``` @@ -4215,11 +5005,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4230,13 +5020,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoDelete** -> reposUpstreamGoDelete(owner, identifier, slugPerm) + +# **reposUpstreamHelmDelete** +> reposUpstreamHelmDelete(owner, identifier, slugPerm) -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. ### Example ```java @@ -4265,9 +5055,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamGoDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamHelmDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmDelete"); e.printStackTrace(); } ``` @@ -4293,13 +5083,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoList** -> List<GoUpstream> reposUpstreamGoList(owner, identifier, page, pageSize) + +# **reposUpstreamHelmList** +> List<HelmUpstream> reposUpstreamHelmList(owner, identifier, page, pageSize) -List Go upstream configs for this repository. +List Helm upstream configs for this repository. -List Go upstream configs for this repository. +List Helm upstream configs for this repository. ### Example ```java @@ -4329,10 +5119,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.reposUpstreamGoList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamHelmList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoList"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmList"); e.printStackTrace(); } ``` @@ -4348,7 +5138,7 @@ Name | Type | Description | Notes ### Return type -[**List<GoUpstream>**](GoUpstream.md) +[**List<HelmUpstream>**](HelmUpstream.md) ### Authorization @@ -4359,13 +5149,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoPartialUpdate** -> GoUpstream reposUpstreamGoPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHelmPartialUpdate** +> HelmUpstream reposUpstreamHelmPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. ### Example ```java @@ -4393,12 +5183,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -GoUpstreamRequestPatch data = new GoUpstreamRequestPatch(); // GoUpstreamRequestPatch | +HelmUpstreamRequestPatch data = new HelmUpstreamRequestPatch(); // HelmUpstreamRequestPatch | try { - GoUpstream result = apiInstance.reposUpstreamGoPartialUpdate(owner, identifier, slugPerm, data); + HelmUpstream result = apiInstance.reposUpstreamHelmPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmPartialUpdate"); e.printStackTrace(); } ``` @@ -4410,11 +5200,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] + **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4425,13 +5215,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoRead** -> GoUpstream reposUpstreamGoRead(owner, identifier, slugPerm) + +# **reposUpstreamHelmRead** +> HelmUpstream reposUpstreamHelmRead(owner, identifier, slugPerm) -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. ### Example ```java @@ -4460,10 +5250,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - GoUpstream result = apiInstance.reposUpstreamGoRead(owner, identifier, slugPerm); + HelmUpstream result = apiInstance.reposUpstreamHelmRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmRead"); e.printStackTrace(); } ``` @@ -4478,7 +5268,7 @@ Name | Type | Description | Notes ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4489,13 +5279,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamGoUpdate** -> GoUpstream reposUpstreamGoUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHelmUpdate** +> HelmUpstream reposUpstreamHelmUpdate(owner, identifier, slugPerm, data) -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. ### Example ```java @@ -4523,12 +5313,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -GoUpstreamRequest data = new GoUpstreamRequest(); // GoUpstreamRequest | +HelmUpstreamRequest data = new HelmUpstreamRequest(); // HelmUpstreamRequest | try { - GoUpstream result = apiInstance.reposUpstreamGoUpdate(owner, identifier, slugPerm, data); + HelmUpstream result = apiInstance.reposUpstreamHelmUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamGoUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHelmUpdate"); e.printStackTrace(); } ``` @@ -4540,11 +5330,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4555,13 +5345,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmCreate** -> HelmUpstream reposUpstreamHelmCreate(owner, identifier, data) + +# **reposUpstreamHexCreate** +> HexUpstream reposUpstreamHexCreate(owner, identifier, data) -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. ### Example ```java @@ -4588,12 +5378,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -HelmUpstreamRequest data = new HelmUpstreamRequest(); // HelmUpstreamRequest | +HexUpstreamRequest data = new HexUpstreamRequest(); // HexUpstreamRequest | try { - HelmUpstream result = apiInstance.reposUpstreamHelmCreate(owner, identifier, data); + HexUpstream result = apiInstance.reposUpstreamHexCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexCreate"); e.printStackTrace(); } ``` @@ -4604,11 +5394,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4619,13 +5409,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmDelete** -> reposUpstreamHelmDelete(owner, identifier, slugPerm) + +# **reposUpstreamHexDelete** +> reposUpstreamHexDelete(owner, identifier, slugPerm) -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. ### Example ```java @@ -4654,9 +5444,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamHelmDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamHexDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexDelete"); e.printStackTrace(); } ``` @@ -4682,13 +5472,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmList** -> List<HelmUpstream> reposUpstreamHelmList(owner, identifier, page, pageSize) + +# **reposUpstreamHexList** +> List<HexUpstream> reposUpstreamHexList(owner, identifier, page, pageSize) -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. ### Example ```java @@ -4718,10 +5508,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.reposUpstreamHelmList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamHexList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmList"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexList"); e.printStackTrace(); } ``` @@ -4737,7 +5527,7 @@ Name | Type | Description | Notes ### Return type -[**List<HelmUpstream>**](HelmUpstream.md) +[**List<HexUpstream>**](HexUpstream.md) ### Authorization @@ -4748,13 +5538,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmPartialUpdate** -> HelmUpstream reposUpstreamHelmPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHexPartialUpdate** +> HexUpstream reposUpstreamHexPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. ### Example ```java @@ -4782,12 +5572,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -HelmUpstreamRequestPatch data = new HelmUpstreamRequestPatch(); // HelmUpstreamRequestPatch | +HexUpstreamRequestPatch data = new HexUpstreamRequestPatch(); // HexUpstreamRequestPatch | try { - HelmUpstream result = apiInstance.reposUpstreamHelmPartialUpdate(owner, identifier, slugPerm, data); + HexUpstream result = apiInstance.reposUpstreamHexPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexPartialUpdate"); e.printStackTrace(); } ``` @@ -4799,11 +5589,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] + **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4814,13 +5604,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmRead** -> HelmUpstream reposUpstreamHelmRead(owner, identifier, slugPerm) + +# **reposUpstreamHexRead** +> HexUpstream reposUpstreamHexRead(owner, identifier, slugPerm) -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. ### Example ```java @@ -4849,10 +5639,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - HelmUpstream result = apiInstance.reposUpstreamHelmRead(owner, identifier, slugPerm); + HexUpstream result = apiInstance.reposUpstreamHexRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexRead"); e.printStackTrace(); } ``` @@ -4867,7 +5657,7 @@ Name | Type | Description | Notes ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4878,13 +5668,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHelmUpdate** -> HelmUpstream reposUpstreamHelmUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHexUpdate** +> HexUpstream reposUpstreamHexUpdate(owner, identifier, slugPerm, data) -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. ### Example ```java @@ -4912,12 +5702,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -HelmUpstreamRequest data = new HelmUpstreamRequest(); // HelmUpstreamRequest | +HexUpstreamRequest data = new HexUpstreamRequest(); // HexUpstreamRequest | try { - HelmUpstream result = apiInstance.reposUpstreamHelmUpdate(owner, identifier, slugPerm, data); + HexUpstream result = apiInstance.reposUpstreamHexUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHelmUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHexUpdate"); e.printStackTrace(); } ``` @@ -4929,11 +5719,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4944,13 +5734,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexCreate** -> HexUpstream reposUpstreamHexCreate(owner, identifier, data) + +# **reposUpstreamHuggingfaceCreate** +> HuggingfaceUpstream reposUpstreamHuggingfaceCreate(owner, identifier, data) -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. ### Example ```java @@ -4977,12 +5767,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -HexUpstreamRequest data = new HexUpstreamRequest(); // HexUpstreamRequest | +HuggingfaceUpstreamRequest data = new HuggingfaceUpstreamRequest(); // HuggingfaceUpstreamRequest | try { - HexUpstream result = apiInstance.reposUpstreamHexCreate(owner, identifier, data); + HuggingfaceUpstream result = apiInstance.reposUpstreamHuggingfaceCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfaceCreate"); e.printStackTrace(); } ``` @@ -4993,11 +5783,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5008,13 +5798,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexDelete** -> reposUpstreamHexDelete(owner, identifier, slugPerm) + +# **reposUpstreamHuggingfaceDelete** +> reposUpstreamHuggingfaceDelete(owner, identifier, slugPerm) -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. ### Example ```java @@ -5043,9 +5833,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamHexDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamHuggingfaceDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfaceDelete"); e.printStackTrace(); } ``` @@ -5071,13 +5861,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexList** -> List<HexUpstream> reposUpstreamHexList(owner, identifier, page, pageSize) + +# **reposUpstreamHuggingfaceList** +> List<HuggingfaceUpstream> reposUpstreamHuggingfaceList(owner, identifier, page, pageSize) -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. ### Example ```java @@ -5107,10 +5897,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.reposUpstreamHexList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamHuggingfaceList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexList"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfaceList"); e.printStackTrace(); } ``` @@ -5126,7 +5916,7 @@ Name | Type | Description | Notes ### Return type -[**List<HexUpstream>**](HexUpstream.md) +[**List<HuggingfaceUpstream>**](HuggingfaceUpstream.md) ### Authorization @@ -5137,13 +5927,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexPartialUpdate** -> HexUpstream reposUpstreamHexPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHuggingfacePartialUpdate** +> HuggingfaceUpstream reposUpstreamHuggingfacePartialUpdate(owner, identifier, slugPerm, data) -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. ### Example ```java @@ -5171,12 +5961,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -HexUpstreamRequestPatch data = new HexUpstreamRequestPatch(); // HexUpstreamRequestPatch | +HuggingfaceUpstreamRequestPatch data = new HuggingfaceUpstreamRequestPatch(); // HuggingfaceUpstreamRequestPatch | try { - HexUpstream result = apiInstance.reposUpstreamHexPartialUpdate(owner, identifier, slugPerm, data); + HuggingfaceUpstream result = apiInstance.reposUpstreamHuggingfacePartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfacePartialUpdate"); e.printStackTrace(); } ``` @@ -5188,11 +5978,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequestPatch**](HuggingfaceUpstreamRequestPatch.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5203,13 +5993,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexRead** -> HexUpstream reposUpstreamHexRead(owner, identifier, slugPerm) + +# **reposUpstreamHuggingfaceRead** +> HuggingfaceUpstream reposUpstreamHuggingfaceRead(owner, identifier, slugPerm) -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. ### Example ```java @@ -5238,10 +6028,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - HexUpstream result = apiInstance.reposUpstreamHexRead(owner, identifier, slugPerm); + HuggingfaceUpstream result = apiInstance.reposUpstreamHuggingfaceRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfaceRead"); e.printStackTrace(); } ``` @@ -5256,7 +6046,7 @@ Name | Type | Description | Notes ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5267,13 +6057,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamHexUpdate** -> HexUpstream reposUpstreamHexUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamHuggingfaceUpdate** +> HuggingfaceUpstream reposUpstreamHuggingfaceUpdate(owner, identifier, slugPerm, data) -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. ### Example ```java @@ -5301,12 +6091,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -HexUpstreamRequest data = new HexUpstreamRequest(); // HexUpstreamRequest | +HuggingfaceUpstreamRequest data = new HuggingfaceUpstreamRequest(); // HuggingfaceUpstreamRequest | try { - HexUpstream result = apiInstance.reposUpstreamHexUpdate(owner, identifier, slugPerm, data); + HuggingfaceUpstream result = apiInstance.reposUpstreamHuggingfaceUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamHexUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamHuggingfaceUpdate"); e.printStackTrace(); } ``` @@ -5318,11 +6108,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization 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 02276001..3f6e7c5d 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 @@ -288,6 +288,16 @@ 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 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/OrgsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java index 8aec5d9a..0876df17 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java @@ -36,6 +36,7 @@ import java.lang.reflect.Method; import java.lang.reflect.Type; +import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; import io.cloudsmith.api.models.Organization; import io.cloudsmith.api.models.OrganizationGroupSync; @@ -73,8 +74,9 @@ import io.cloudsmith.api.models.PackageVulnerabilityPolicyEvaluationRequestRequest; import io.cloudsmith.api.models.PackageVulnerabilityPolicyViolationLogCursorPage; import io.cloudsmith.api.models.ProviderSettings; -import io.cloudsmith.api.models.ProviderSettingsRequest; -import io.cloudsmith.api.models.ProviderSettingsRequestPatch; +import io.cloudsmith.api.models.ProviderSettingsWrite; +import io.cloudsmith.api.models.ProviderSettingsWriteRequest; +import io.cloudsmith.api.models.ProviderSettingsWriteRequestPatch; import io.cloudsmith.api.models.Service; import io.cloudsmith.api.models.ServiceRequest; import io.cloudsmith.api.models.ServiceRequestPatch; @@ -4830,7 +4832,7 @@ 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 orgsOpenidConnectCreateCall(String org, ProviderSettingsRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectCreateCall(String org, ProviderSettingsWriteRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables @@ -4876,13 +4878,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call orgsOpenidConnectCreateValidateBeforeCall(String org, ProviderSettingsRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call orgsOpenidConnectCreateValidateBeforeCall(String org, ProviderSettingsWriteRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { org, data }; - Method method = this.getClass().getMethod("orgsOpenidConnectCreateWithHttpInfo", String.class, ProviderSettingsRequest.class); + Method method = this.getClass().getMethod("orgsOpenidConnectCreateWithHttpInfo", String.class, ProviderSettingsWriteRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); @@ -4908,11 +4910,11 @@ private com.squareup.okhttp.Call orgsOpenidConnectCreateValidateBeforeCall(Strin * Create the OpenID Connect provider settings for the org. * @param org (required) * @param data (optional) - * @return ProviderSettings + * @return ProviderSettingsWrite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ProviderSettings orgsOpenidConnectCreate(String org, ProviderSettingsRequest data) throws ApiException { - ApiResponse resp = orgsOpenidConnectCreateWithHttpInfo(org, data); + public ProviderSettingsWrite orgsOpenidConnectCreate(String org, ProviderSettingsWriteRequest data) throws ApiException { + ApiResponse resp = orgsOpenidConnectCreateWithHttpInfo(org, data); return resp.getData(); } @@ -4921,12 +4923,12 @@ public ProviderSettings orgsOpenidConnectCreate(String org, ProviderSettingsRequ * Create the OpenID Connect provider settings for the org. * @param org (required) * @param data (optional) - * @return ApiResponse<ProviderSettings> + * @return ApiResponse<ProviderSettingsWrite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse orgsOpenidConnectCreateWithHttpInfo( @NotNull String org, ProviderSettingsRequest data) throws ApiException { + public ApiResponse orgsOpenidConnectCreateWithHttpInfo( @NotNull String org, ProviderSettingsWriteRequest data) throws ApiException { com.squareup.okhttp.Call call = orgsOpenidConnectCreateValidateBeforeCall(org, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -4939,7 +4941,7 @@ public ApiResponse orgsOpenidConnectCreateWithHttpInfo( @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 orgsOpenidConnectCreateAsync(String org, ProviderSettingsRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectCreateAsync(String org, ProviderSettingsWriteRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4961,7 +4963,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = orgsOpenidConnectCreateValidateBeforeCall(org, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -5106,6 +5108,313 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, callback); return call; } + /** + * Build call for orgsOpenidConnectDynamicMappingsList + * @param org (required) + * @param providerSetting (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 orgsOpenidConnectDynamicMappingsListCall(String org, String providerSetting, 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 = "/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())) + .replaceAll("\\{" + "provider_setting" + "\\}", apiClient.escapeString(providerSetting.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 orgsOpenidConnectDynamicMappingsListValidateBeforeCall(String org, String providerSetting, 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 = { org, providerSetting, page, pageSize }; + Method method = this.getClass().getMethod("orgsOpenidConnectDynamicMappingsListWithHttpInfo", 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 = orgsOpenidConnectDynamicMappingsListCall(org, providerSetting, 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()); + } + + } + + /** + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * @param org (required) + * @param providerSetting (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return List<DynamicMapping> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List orgsOpenidConnectDynamicMappingsList(String org, String providerSetting, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = orgsOpenidConnectDynamicMappingsListWithHttpInfo(org, providerSetting, page, pageSize); + return resp.getData(); + } + + /** + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * @param org (required) + * @param providerSetting (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<DynamicMapping>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> orgsOpenidConnectDynamicMappingsListWithHttpInfo( @NotNull String org, @NotNull String providerSetting, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = orgsOpenidConnectDynamicMappingsListValidateBeforeCall(org, providerSetting, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. (asynchronously) + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * @param org (required) + * @param providerSetting (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 orgsOpenidConnectDynamicMappingsListAsync(String org, String providerSetting, 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 = orgsOpenidConnectDynamicMappingsListValidateBeforeCall(org, providerSetting, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for orgsOpenidConnectDynamicMappingsRead + * @param org (required) + * @param providerSetting (required) + * @param claimValue (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 orgsOpenidConnectDynamicMappingsReadCall(String org, String providerSetting, String claimValue, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())) + .replaceAll("\\{" + "provider_setting" + "\\}", apiClient.escapeString(providerSetting.toString())) + .replaceAll("\\{" + "claim_value" + "\\}", apiClient.escapeString(claimValue.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 orgsOpenidConnectDynamicMappingsReadValidateBeforeCall(String org, String providerSetting, String claimValue, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, providerSetting, claimValue }; + Method method = this.getClass().getMethod("orgsOpenidConnectDynamicMappingsReadWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsOpenidConnectDynamicMappingsReadCall(org, providerSetting, claimValue, 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 specific OpenID Connect dynamic mapping for the provider setting. + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * @param org (required) + * @param providerSetting (required) + * @param claimValue (required) + * @return DynamicMapping + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DynamicMapping orgsOpenidConnectDynamicMappingsRead(String org, String providerSetting, String claimValue) throws ApiException { + ApiResponse resp = orgsOpenidConnectDynamicMappingsReadWithHttpInfo(org, providerSetting, claimValue); + return resp.getData(); + } + + /** + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * @param org (required) + * @param providerSetting (required) + * @param claimValue (required) + * @return ApiResponse<DynamicMapping> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsOpenidConnectDynamicMappingsReadWithHttpInfo( @NotNull String org, @NotNull String providerSetting, @NotNull String claimValue) throws ApiException { + com.squareup.okhttp.Call call = orgsOpenidConnectDynamicMappingsReadValidateBeforeCall(org, providerSetting, claimValue, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. (asynchronously) + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * @param org (required) + * @param providerSetting (required) + * @param claimValue (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 orgsOpenidConnectDynamicMappingsReadAsync(String org, String providerSetting, String claimValue, 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 = orgsOpenidConnectDynamicMappingsReadValidateBeforeCall(org, providerSetting, claimValue, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgsOpenidConnectList * @param org (required) @@ -5280,7 +5589,7 @@ 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 orgsOpenidConnectPartialUpdateCall(String org, String slugPerm, ProviderSettingsRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectPartialUpdateCall(String org, String slugPerm, ProviderSettingsWriteRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables @@ -5327,13 +5636,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call orgsOpenidConnectPartialUpdateValidateBeforeCall(String org, String slugPerm, ProviderSettingsRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call orgsOpenidConnectPartialUpdateValidateBeforeCall(String org, String slugPerm, ProviderSettingsWriteRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { org, slugPerm, data }; - Method method = this.getClass().getMethod("orgsOpenidConnectPartialUpdateWithHttpInfo", String.class, String.class, ProviderSettingsRequestPatch.class); + Method method = this.getClass().getMethod("orgsOpenidConnectPartialUpdateWithHttpInfo", String.class, String.class, ProviderSettingsWriteRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); @@ -5360,11 +5669,11 @@ private com.squareup.okhttp.Call orgsOpenidConnectPartialUpdateValidateBeforeCal * @param org (required) * @param slugPerm (required) * @param data (optional) - * @return ProviderSettings + * @return ProviderSettingsWrite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ProviderSettings orgsOpenidConnectPartialUpdate(String org, String slugPerm, ProviderSettingsRequestPatch data) throws ApiException { - ApiResponse resp = orgsOpenidConnectPartialUpdateWithHttpInfo(org, slugPerm, data); + public ProviderSettingsWrite orgsOpenidConnectPartialUpdate(String org, String slugPerm, ProviderSettingsWriteRequestPatch data) throws ApiException { + ApiResponse resp = orgsOpenidConnectPartialUpdateWithHttpInfo(org, slugPerm, data); return resp.getData(); } @@ -5374,12 +5683,12 @@ public ProviderSettings orgsOpenidConnectPartialUpdate(String org, String slugPe * @param org (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<ProviderSettings> + * @return ApiResponse<ProviderSettingsWrite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse orgsOpenidConnectPartialUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, ProviderSettingsRequestPatch data) throws ApiException { + public ApiResponse orgsOpenidConnectPartialUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, ProviderSettingsWriteRequestPatch data) throws ApiException { com.squareup.okhttp.Call call = orgsOpenidConnectPartialUpdateValidateBeforeCall(org, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -5393,7 +5702,7 @@ public ApiResponse orgsOpenidConnectPartialUpdateWithHttpInfo( * @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 orgsOpenidConnectPartialUpdateAsync(String org, String slugPerm, ProviderSettingsRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectPartialUpdateAsync(String org, String slugPerm, ProviderSettingsWriteRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5415,7 +5724,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = orgsOpenidConnectPartialUpdateValidateBeforeCall(org, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -5574,7 +5883,7 @@ 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 orgsOpenidConnectUpdateCall(String org, String slugPerm, ProviderSettingsRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectUpdateCall(String org, String slugPerm, ProviderSettingsWriteRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables @@ -5621,13 +5930,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call orgsOpenidConnectUpdateValidateBeforeCall(String org, String slugPerm, ProviderSettingsRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call orgsOpenidConnectUpdateValidateBeforeCall(String org, String slugPerm, ProviderSettingsWriteRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { org, slugPerm, data }; - Method method = this.getClass().getMethod("orgsOpenidConnectUpdateWithHttpInfo", String.class, String.class, ProviderSettingsRequest.class); + Method method = this.getClass().getMethod("orgsOpenidConnectUpdateWithHttpInfo", String.class, String.class, ProviderSettingsWriteRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); @@ -5654,11 +5963,11 @@ private com.squareup.okhttp.Call orgsOpenidConnectUpdateValidateBeforeCall(Strin * @param org (required) * @param slugPerm (required) * @param data (optional) - * @return ProviderSettings + * @return ProviderSettingsWrite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ProviderSettings orgsOpenidConnectUpdate(String org, String slugPerm, ProviderSettingsRequest data) throws ApiException { - ApiResponse resp = orgsOpenidConnectUpdateWithHttpInfo(org, slugPerm, data); + public ProviderSettingsWrite orgsOpenidConnectUpdate(String org, String slugPerm, ProviderSettingsWriteRequest data) throws ApiException { + ApiResponse resp = orgsOpenidConnectUpdateWithHttpInfo(org, slugPerm, data); return resp.getData(); } @@ -5668,12 +5977,12 @@ public ProviderSettings orgsOpenidConnectUpdate(String org, String slugPerm, Pro * @param org (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<ProviderSettings> + * @return ApiResponse<ProviderSettingsWrite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse orgsOpenidConnectUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, ProviderSettingsRequest data) throws ApiException { + public ApiResponse orgsOpenidConnectUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, ProviderSettingsWriteRequest data) throws ApiException { com.squareup.okhttp.Call call = orgsOpenidConnectUpdateValidateBeforeCall(org, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -5687,7 +5996,7 @@ public ApiResponse orgsOpenidConnectUpdateWithHttpInfo( @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 orgsOpenidConnectUpdateAsync(String org, String slugPerm, ProviderSettingsRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call orgsOpenidConnectUpdateAsync(String org, String slugPerm, ProviderSettingsWriteRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5709,7 +6018,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = orgsOpenidConnectUpdateValidateBeforeCall(org, slugPerm, data, 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/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index b14f7853..c3ef92c3 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,8 @@ import io.cloudsmith.api.models.HelmPackageUploadRequest; import io.cloudsmith.api.models.HexPackageUpload; import io.cloudsmith.api.models.HexPackageUploadRequest; +import io.cloudsmith.api.models.HuggingfacePackageUpload; +import io.cloudsmith.api.models.HuggingfacePackageUploadRequest; import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; @@ -587,6 +589,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @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 hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) * @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 @@ -594,7 +597,7 @@ 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 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 { + public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -610,6 +613,8 @@ public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (groupBy != null) localVarQueryParams.addAll(apiClient.parameterToPair("group_by", groupBy)); + if (hideSubcomponents != null) + localVarQueryParams.addAll(apiClient.parameterToPair("hide_subcomponents", hideSubcomponents)); if (query != null) localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); if (sort != null) @@ -651,18 +656,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @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 { + private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, 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); + Object[] parameterValues = { owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort }; + Method method = this.getClass().getMethod("packagesGroupsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class, Boolean.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); + com.squareup.okhttp.Call call = packagesGroupsListCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, progressListener, progressRequestListener); return call; } else { @@ -686,13 +691,14 @@ private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String own * @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 hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) * @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); + public InlineResponse200 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort) throws ApiException { + ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); return resp.getData(); } @@ -704,13 +710,14 @@ public InlineResponse200 packagesGroupsList(String owner, String repo, java.math * @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 hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) * @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); + public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort) throws ApiException { + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -723,13 +730,14 @@ public ApiResponse packagesGroupsListWithHttpInfo( @NotNull S * @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 hideSubcomponents Whether to hide packages which are subcomponents of another package in the results (optional, default to false) * @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 { + public com.squareup.okhttp.Call packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, Boolean hideSubcomponents, String query, String sort, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -750,7 +758,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, query, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -3923,6 +3931,155 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for packagesUploadHuggingface + * @param owner (required) + * @param repo (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 packagesUploadHuggingfaceCall(String owner, String repo, HuggingfacePackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/packages/{owner}/{repo}/upload/huggingface/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.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 packagesUploadHuggingfaceValidateBeforeCall(String owner, String repo, HuggingfacePackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, repo, data }; + Method method = this.getClass().getMethod("packagesUploadHuggingfaceWithHttpInfo", String.class, String.class, HuggingfacePackageUploadRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = packagesUploadHuggingfaceCall(owner, repo, 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 new Hugging Face package + * Create a new Hugging Face package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return HuggingfacePackageUpload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public HuggingfacePackageUpload packagesUploadHuggingface(String owner, String repo, HuggingfacePackageUploadRequest data) throws ApiException { + ApiResponse resp = packagesUploadHuggingfaceWithHttpInfo(owner, repo, data); + return resp.getData(); + } + + /** + * Create a new Hugging Face package + * Create a new Hugging Face package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return ApiResponse<HuggingfacePackageUpload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse packagesUploadHuggingfaceWithHttpInfo( @NotNull String owner, @NotNull String repo, HuggingfacePackageUploadRequest data) throws ApiException { + com.squareup.okhttp.Call call = packagesUploadHuggingfaceValidateBeforeCall(owner, repo, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a new Hugging Face package (asynchronously) + * Create a new Hugging Face package + * @param owner (required) + * @param repo (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 packagesUploadHuggingfaceAsync(String owner, String repo, HuggingfacePackageUploadRequest 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 = packagesUploadHuggingfaceValidateBeforeCall(owner, repo, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for packagesUploadLuarocks * @param owner (required) @@ -7596,6 +7753,151 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, callback); return call; } + /** + * Build call for packagesValidateUploadHuggingface + * @param owner (required) + * @param repo (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 packagesValidateUploadHuggingfaceCall(String owner, String repo, HuggingfacePackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/packages/{owner}/{repo}/validate-upload/huggingface/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.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 packagesValidateUploadHuggingfaceValidateBeforeCall(String owner, String repo, HuggingfacePackageUploadRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, repo, data }; + Method method = this.getClass().getMethod("packagesValidateUploadHuggingfaceWithHttpInfo", String.class, String.class, HuggingfacePackageUploadRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = packagesValidateUploadHuggingfaceCall(owner, repo, 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()); + } + + } + + /** + * Validate parameters for create Hugging Face package + * Validate parameters for create Hugging Face package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void packagesValidateUploadHuggingface(String owner, String repo, HuggingfacePackageUploadRequest data) throws ApiException { + packagesValidateUploadHuggingfaceWithHttpInfo(owner, repo, data); + } + + /** + * Validate parameters for create Hugging Face package + * Validate parameters for create Hugging Face package + * @param owner (required) + * @param repo (required) + * @param data (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse packagesValidateUploadHuggingfaceWithHttpInfo( @NotNull String owner, @NotNull String repo, HuggingfacePackageUploadRequest data) throws ApiException { + com.squareup.okhttp.Call call = packagesValidateUploadHuggingfaceValidateBeforeCall(owner, repo, data, null, null); + return apiClient.execute(call); + } + + /** + * Validate parameters for create Hugging Face package (asynchronously) + * Validate parameters for create Hugging Face package + * @param owner (required) + * @param repo (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 packagesValidateUploadHuggingfaceAsync(String owner, String repo, HuggingfacePackageUploadRequest 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 = packagesValidateUploadHuggingfaceValidateBeforeCall(owner, repo, data, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } /** * Build call for packagesValidateUploadLuarocks * @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 08e29caf..7cc6cc10 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 @@ -42,6 +42,9 @@ import io.cloudsmith.api.models.ComposerUpstream; import io.cloudsmith.api.models.ComposerUpstreamRequest; import io.cloudsmith.api.models.ComposerUpstreamRequestPatch; +import io.cloudsmith.api.models.CondaUpstream; +import io.cloudsmith.api.models.CondaUpstreamRequest; +import io.cloudsmith.api.models.CondaUpstreamRequestPatch; import io.cloudsmith.api.models.CranUpstream; import io.cloudsmith.api.models.CranUpstreamRequest; import io.cloudsmith.api.models.CranUpstreamRequestPatch; @@ -64,6 +67,9 @@ import io.cloudsmith.api.models.HexUpstream; import io.cloudsmith.api.models.HexUpstreamRequest; import io.cloudsmith.api.models.HexUpstreamRequestPatch; +import io.cloudsmith.api.models.HuggingfaceUpstream; +import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; +import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; @@ -5923,7 +5929,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for reposUpstreamCranCreate + * Build call for reposUpstreamCondaCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -5932,11 +5938,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 reposUpstreamCondaCreateCall(String owner, String identifier, CondaUpstreamRequest 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/conda/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -5979,18 +5985,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 reposUpstreamCondaCreateValidateBeforeCall(String owner, String identifier, CondaUpstreamRequest 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("reposUpstreamCondaCreateWithHttpInfo", String.class, String.class, CondaUpstreamRequest.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 = reposUpstreamCondaCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -6007,37 +6013,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 Conda upstream config for this repository. + * Create a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return CranUpstream + * @return CondaUpstream * @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 CondaUpstream reposUpstreamCondaCreate(String owner, String identifier, CondaUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCondaCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a CRAN upstream config for this repository. - * Create a CRAN upstream config for this repository. + * Create a Conda upstream config for this repository. + * Create a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<CondaUpstream> * @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 reposUpstreamCondaCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, CondaUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaCreateValidateBeforeCall(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 Conda upstream config for this repository. (asynchronously) + * Create a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -6045,7 +6051,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 reposUpstreamCondaCreateAsync(String owner, String identifier, CondaUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6066,13 +6072,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 = reposUpstreamCondaCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranDelete + * Build call for reposUpstreamCondaDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6081,11 +6087,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 reposUpstreamCondaDeleteCall(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/conda/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6129,18 +6135,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 reposUpstreamCondaDeleteValidateBeforeCall(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("reposUpstreamCondaDeleteWithHttpInfo", 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 = reposUpstreamCondaDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -6157,34 +6163,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 Conda upstream config for this repository. + * Delete a Conda 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 reposUpstreamCondaDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamCondaDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a CRAN upstream config for this repository. - * Delete a CRAN upstream config for this repository. + * Delete a Conda upstream config for this repository. + * Delete a Conda 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 reposUpstreamCondaDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaDeleteValidateBeforeCall(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 Conda upstream config for this repository. (asynchronously) + * Delete a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6192,7 +6198,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 reposUpstreamCondaDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6213,12 +6219,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 = reposUpstreamCondaDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamCranList + * Build call for reposUpstreamCondaList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -6228,11 +6234,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 reposUpstreamCondaListCall(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/conda/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -6279,18 +6285,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 reposUpstreamCondaListValidateBeforeCall(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("reposUpstreamCondaListWithHttpInfo", 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 = reposUpstreamCondaListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -6307,39 +6313,39 @@ private com.squareup.okhttp.Call reposUpstreamCranListValidateBeforeCall(String } /** - * List CRAN upstream configs for this repository. - * List CRAN upstream configs for this repository. + * List Conda upstream configs for this repository. + * List Conda 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<CondaUpstream> * @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 reposUpstreamCondaList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamCondaListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List CRAN upstream configs for this repository. - * List CRAN upstream configs for this repository. + * List Conda upstream configs for this repository. + * List Conda 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<CondaUpstream>> * @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> reposUpstreamCondaListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaListValidateBeforeCall(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 Conda upstream configs for this repository. (asynchronously) + * List Conda upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -6348,7 +6354,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 reposUpstreamCondaListAsync(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; @@ -6369,13 +6375,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 = reposUpstreamCondaListValidateBeforeCall(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 reposUpstreamCondaPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6385,11 +6391,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 reposUpstreamCranPartialUpdateCall(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCondaPartialUpdateCall(String owner, String identifier, String slugPerm, CondaUpstreamRequestPatch 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/conda/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6433,18 +6439,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 reposUpstreamCondaPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CondaUpstreamRequestPatch 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("reposUpstreamCondaPartialUpdateWithHttpInfo", String.class, String.class, String.class, CondaUpstreamRequestPatch.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 = reposUpstreamCondaPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -6461,39 +6467,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 Conda upstream config for this repository. + * Partially update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return CranUpstream + * @return CondaUpstream * @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 CondaUpstream reposUpstreamCondaPartialUpdate(String owner, String identifier, String slugPerm, CondaUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamCondaPartialUpdateWithHttpInfo(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 Conda upstream config for this repository. + * Partially update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<CondaUpstream> * @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 reposUpstreamCondaPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CondaUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaPartialUpdateValidateBeforeCall(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 Conda upstream config for this repository. (asynchronously) + * Partially update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6502,7 +6508,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 reposUpstreamCondaPartialUpdateAsync(String owner, String identifier, String slugPerm, CondaUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6523,13 +6529,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 = reposUpstreamCondaPartialUpdateValidateBeforeCall(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 reposUpstreamCondaRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6538,11 +6544,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 reposUpstreamCondaReadCall(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/conda/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6586,18 +6592,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 reposUpstreamCondaReadValidateBeforeCall(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("reposUpstreamCondaReadWithHttpInfo", 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 = reposUpstreamCondaReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -6614,37 +6620,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 Conda upstream config for this repository. + * Retrieve a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return CranUpstream + * @return CondaUpstream * @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 CondaUpstream reposUpstreamCondaRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamCondaReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a CRAN upstream config for this repository. - * Retrieve a CRAN upstream config for this repository. + * Retrieve a Conda upstream config for this repository. + * Retrieve a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<CondaUpstream> * @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 reposUpstreamCondaReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaReadValidateBeforeCall(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 Conda upstream config for this repository. (asynchronously) + * Retrieve a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6652,7 +6658,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 reposUpstreamCondaReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6673,13 +6679,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 = reposUpstreamCondaReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranUpdate + * Build call for reposUpstreamCondaUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6689,11 +6695,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 reposUpstreamCondaUpdateCall(String owner, String identifier, String slugPerm, CondaUpstreamRequest 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/conda/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6737,18 +6743,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 reposUpstreamCondaUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CondaUpstreamRequest 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("reposUpstreamCondaUpdateWithHttpInfo", String.class, String.class, String.class, CondaUpstreamRequest.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 = reposUpstreamCondaUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -6765,39 +6771,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 Conda upstream config for this repository. + * Update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return CranUpstream + * @return CondaUpstream * @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 CondaUpstream reposUpstreamCondaUpdate(String owner, String identifier, String slugPerm, CondaUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCondaUpdateWithHttpInfo(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 Conda upstream config for this repository. + * Update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<CondaUpstream> * @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 reposUpstreamCondaUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CondaUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCondaUpdateValidateBeforeCall(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 Conda upstream config for this repository. (asynchronously) + * Update a Conda upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6806,7 +6812,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 reposUpstreamCondaUpdateAsync(String owner, String identifier, String slugPerm, CondaUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6827,13 +6833,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 = reposUpstreamCondaUpdateValidateBeforeCall(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 reposUpstreamCranCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -6842,11 +6848,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 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/dart/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -6889,18 +6895,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 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("reposUpstreamDartCreateWithHttpInfo", String.class, String.class, DartUpstreamRequest.class); + 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 = reposUpstreamDartCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCranCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -6917,37 +6923,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 CRAN upstream config for this repository. + * Create a CRAN upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return DartUpstream + * @return CranUpstream * @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 CranUpstream reposUpstreamCranCreate(String owner, String identifier, CranUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCranCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Dart upstream config for this repository. - * Create a Dart upstream config for this repository. + * 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<DartUpstream> + * @return ApiResponse<CranUpstream> * @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 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 Dart upstream config for this repository. (asynchronously) - * Create a Dart upstream config for this repository. + * 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) @@ -6955,7 +6961,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 reposUpstreamCranCreateAsync(String owner, String identifier, CranUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6976,13 +6982,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 = reposUpstreamCranCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartDelete + * Build call for reposUpstreamCranDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6991,11 +6997,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 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/dart/{slug_perm}/" + 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())); @@ -7039,18 +7045,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 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("reposUpstreamDartDeleteWithHttpInfo", String.class, String.class, String.class); + 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 = reposUpstreamDartDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCranDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -7067,34 +7073,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 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 reposUpstreamDartDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamDartDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamCranDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamCranDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Dart upstream config for this repository. - * Delete a Dart upstream config for this repository. + * 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 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 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 Dart upstream config for this repository. (asynchronously) - * Delete a Dart upstream config for this repository. + * 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) @@ -7102,7 +7108,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 reposUpstreamCranDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7123,12 +7129,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 = reposUpstreamCranDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamDartList + * Build call for reposUpstreamCranList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -7138,11 +7144,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 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/dart/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -7189,18 +7195,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 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("reposUpstreamDartListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + 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 = reposUpstreamDartListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCranListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -7217,39 +7223,39 @@ private com.squareup.okhttp.Call reposUpstreamDartListValidateBeforeCall(String } /** - * List Dart upstream configs for this repository. - * List Dart upstream configs for this repository. + * 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<DartUpstream> + * @return List<CranUpstream> * @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 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 Dart upstream configs for this repository. - * List Dart upstream configs for this repository. + * 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<DartUpstream>> + * @return ApiResponse<List<CranUpstream>> * @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> 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 Dart upstream configs for this repository. (asynchronously) - * List Dart upstream configs for this repository. + * 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) @@ -7258,7 +7264,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 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; @@ -7279,13 +7285,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 = reposUpstreamCranListValidateBeforeCall(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 reposUpstreamCranPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7295,7 +7301,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 reposUpstreamDartPartialUpdateCall(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + 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 + 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, "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); + } + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + 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); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateCall(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 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 DartUpstream + * @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); + return resp.getData(); + } + + /** + * 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<DartUpstream> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * 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) + * @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 reposUpstreamDartPartialUpdateAsync(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch 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 = reposUpstreamDartPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDartRead + * @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 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/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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + 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("reposUpstreamDartReadWithHttpInfo", 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); + 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 Dart upstream config for this repository. + * Retrieve a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return DartUpstream + * @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); + return resp.getData(); + } + + /** + * 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<DartUpstream> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * 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) + * @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 reposUpstreamDartReadAsync(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 = reposUpstreamDartReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDartUpdate + * @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 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 @@ -7335,6 +8555,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 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("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 = reposUpstreamDartUpdateCall(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 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 DartUpstream + * @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); + return resp.getData(); + } + + /** + * 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<DartUpstream> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * 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) + * @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 reposUpstreamDartUpdateAsync(String owner, String identifier, String slugPerm, 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 = reposUpstreamDartUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDebCreate + * @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 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/deb/" + .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 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("reposUpstreamDebCreateWithHttpInfo", String.class, String.class, DebUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamDebCreateCall(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 Debian upstream config for this repository. + * Create a Debian upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return DebUpstream + * @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); + return resp.getData(); + } + + /** + * 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<DebUpstream> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * 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) + * @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 reposUpstreamDebCreateAsync(String owner, String identifier, DebUpstreamRequest 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 = reposUpstreamDebCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDebDelete + * @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 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/deb/{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 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("reposUpstreamDebDeleteWithHttpInfo", 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); + 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 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 reposUpstreamDebDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamDebDeleteWithHttpInfo(owner, identifier, slugPerm); + } + + /** + * 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 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 Debian upstream config for this repository. (asynchronously) + * Delete a Debian 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 reposUpstreamDebDeleteAsync(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 = reposUpstreamDebDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposUpstreamDebList + * @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 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/deb/" + .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 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("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 = reposUpstreamDebListCall(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 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<DebUpstream> + * @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); + return resp.getData(); + } + + /** + * 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<DebUpstream>> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * 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) + * @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 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; + + 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 = reposUpstreamDebListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDebPartialUpdate + * @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 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/deb/{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); @@ -7343,18 +9169,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 { @@ -7371,39 +9197,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) @@ -7412,7 +9238,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; @@ -7433,13 +9259,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) @@ -7448,11 +9274,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())); @@ -7496,18 +9322,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 { @@ -7524,37 +9350,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) @@ -7562,7 +9388,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; @@ -7583,13 +9409,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) @@ -7599,11 +9425,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())); @@ -7647,18 +9473,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 { @@ -7675,39 +9501,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) @@ -7716,7 +9542,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; @@ -7737,13 +9563,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) @@ -7752,11 +9578,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())); @@ -7799,18 +9625,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 { @@ -7827,37 +9653,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) @@ -7865,7 +9691,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; @@ -7886,13 +9712,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) @@ -7901,11 +9727,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())); @@ -7949,18 +9775,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 { @@ -7977,34 +9803,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) @@ -8012,7 +9838,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; @@ -8033,12 +9859,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) @@ -8048,11 +9874,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())); @@ -8099,18 +9925,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 { @@ -8127,39 +9953,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) @@ -8168,7 +9994,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; @@ -8189,13 +10015,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) @@ -8205,11 +10031,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())); @@ -8253,18 +10079,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 { @@ -8281,39 +10107,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) @@ -8322,7 +10148,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; @@ -8343,13 +10169,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) @@ -8358,11 +10184,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())); @@ -8406,18 +10232,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 { @@ -8434,37 +10260,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) @@ -8472,7 +10298,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; @@ -8493,13 +10319,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) @@ -8509,11 +10335,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())); @@ -8557,18 +10383,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 { @@ -8585,39 +10411,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) @@ -8626,7 +10452,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; @@ -8647,13 +10473,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) @@ -8662,11 +10488,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())); @@ -8709,18 +10535,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 { @@ -8737,37 +10563,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) @@ -8775,7 +10601,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; @@ -8796,13 +10622,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) @@ -8811,11 +10637,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())); @@ -8859,18 +10685,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 { @@ -8887,34 +10713,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) @@ -8922,7 +10748,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; @@ -8943,12 +10769,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) @@ -8958,11 +10784,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())); @@ -9009,18 +10835,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 { @@ -9037,39 +10863,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) @@ -9078,7 +10904,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; @@ -9099,13 +10925,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) @@ -9115,11 +10941,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())); @@ -9163,18 +10989,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 { @@ -9191,39 +11017,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) @@ -9232,7 +11058,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; @@ -9253,13 +11079,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) @@ -9268,11 +11094,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())); @@ -9316,18 +11142,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 { @@ -9344,37 +11170,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) @@ -9382,7 +11208,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; @@ -9403,13 +11229,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) @@ -9419,11 +11245,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())); @@ -9467,18 +11293,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 { @@ -9495,39 +11321,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) @@ -9536,7 +11362,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; @@ -9557,13 +11383,13 @@ 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; } /** - * Build call for reposUpstreamGoCreate + * Build call for reposUpstreamHelmCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -9572,11 +11398,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 reposUpstreamGoCreateCall(String owner, String identifier, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmCreateCall(String owner, String identifier, HelmUpstreamRequest 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/go/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -9619,18 +11445,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamGoCreateValidateBeforeCall(String owner, String identifier, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHelmCreateValidateBeforeCall(String owner, String identifier, HelmUpstreamRequest 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("reposUpstreamGoCreateWithHttpInfo", String.class, String.class, GoUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHelmCreateWithHttpInfo", String.class, String.class, HelmUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamGoCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -9647,37 +11473,37 @@ private com.squareup.okhttp.Call reposUpstreamGoCreateValidateBeforeCall(String } /** - * Create a Go upstream config for this repository. - * Create a Go upstream config for this repository. + * Create a Helm upstream config for this repository. + * Create a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return GoUpstream + * @return HelmUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GoUpstream reposUpstreamGoCreate(String owner, String identifier, GoUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamGoCreateWithHttpInfo(owner, identifier, data); + public HelmUpstream reposUpstreamHelmCreate(String owner, String identifier, HelmUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHelmCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Go upstream config for this repository. - * Create a Go upstream config for this repository. + * Create a Helm upstream config for this repository. + * Create a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<GoUpstream> + * @return ApiResponse<HelmUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse reposUpstreamHelmCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, HelmUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Go upstream config for this repository. (asynchronously) - * Create a Go upstream config for this repository. + * Create a Helm upstream config for this repository. (asynchronously) + * Create a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -9685,7 +11511,7 @@ public ApiResponse reposUpstreamGoCreateWithHttpInfo( @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 reposUpstreamGoCreateAsync(String owner, String identifier, GoUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmCreateAsync(String owner, String identifier, HelmUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9706,13 +11532,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHelmCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamGoDelete + * Build call for reposUpstreamHelmDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -9721,11 +11547,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 reposUpstreamGoDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmDeleteCall(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/go/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -9769,18 +11595,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamGoDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHelmDeleteValidateBeforeCall(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("reposUpstreamGoDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHelmDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamGoDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -9797,34 +11623,34 @@ private com.squareup.okhttp.Call reposUpstreamGoDeleteValidateBeforeCall(String } /** - * Delete a Go upstream config for this repository. - * Delete a Go upstream config for this repository. + * Delete a Helm upstream config for this repository. + * Delete a Helm 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 reposUpstreamGoDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamGoDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamHelmDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamHelmDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Go upstream config for this repository. - * Delete a Go upstream config for this repository. + * Delete a Helm upstream config for this repository. + * Delete a Helm 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 reposUpstreamGoDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamGoDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamHelmDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Go upstream config for this repository. (asynchronously) - * Delete a Go upstream config for this repository. + * Delete a Helm upstream config for this repository. (asynchronously) + * Delete a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -9832,7 +11658,7 @@ public ApiResponse reposUpstreamGoDeleteWithHttpInfo( @NotNull String owne * @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 reposUpstreamGoDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9853,12 +11679,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamGoList + * Build call for reposUpstreamHelmList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -9868,11 +11694,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 reposUpstreamGoListCall(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 reposUpstreamHelmListCall(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/go/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -9919,18 +11745,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - 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 { + private com.squareup.okhttp.Call reposUpstreamHelmListValidateBeforeCall(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("reposUpstreamGoListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamHelmListWithHttpInfo", 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 = reposUpstreamGoListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -9947,39 +11773,39 @@ private com.squareup.okhttp.Call reposUpstreamGoListValidateBeforeCall(String ow } /** - * List Go upstream configs for this repository. - * List Go upstream configs for this repository. + * List Helm upstream configs for this repository. + * List Helm 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<GoUpstream> + * @return List<HelmUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamGoList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamGoListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamHelmList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamHelmListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Go upstream configs for this repository. - * List Go upstream configs for this repository. + * List Helm upstream configs for this repository. + * List Helm 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<GoUpstream>> + * @return ApiResponse<List<HelmUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse> reposUpstreamHelmListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Go upstream configs for this repository. (asynchronously) - * List Go upstream configs for this repository. + * List Helm upstream configs for this repository. (asynchronously) + * List Helm upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -9988,7 +11814,7 @@ public ApiResponse> reposUpstreamGoListWithHttpInfo( @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 reposUpstreamGoListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmListAsync(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; @@ -10009,13 +11835,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHelmListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamGoPartialUpdate + * Build call for reposUpstreamHelmPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10025,11 +11851,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 reposUpstreamGoPartialUpdateCall(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmPartialUpdateCall(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch 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/go/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -10073,18 +11899,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamGoPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHelmPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch 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("reposUpstreamGoPartialUpdateWithHttpInfo", String.class, String.class, String.class, GoUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamHelmPartialUpdateWithHttpInfo", String.class, String.class, String.class, HelmUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamGoPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -10101,39 +11927,39 @@ private com.squareup.okhttp.Call reposUpstreamGoPartialUpdateValidateBeforeCall( } /** - * Partially update a Go upstream config for this repository. - * Partially update a Go upstream config for this repository. + * Partially update a Helm upstream config for this repository. + * Partially update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return GoUpstream + * @return HelmUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GoUpstream reposUpstreamGoPartialUpdate(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamGoPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HelmUpstream reposUpstreamHelmPartialUpdate(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamHelmPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Go upstream config for this repository. - * Partially update a Go upstream config for this repository. + * Partially update a Helm upstream config for this repository. + * Partially update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<GoUpstream> + * @return ApiResponse<HelmUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse reposUpstreamHelmPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HelmUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Go upstream config for this repository. (asynchronously) - * Partially update a Go upstream config for this repository. + * Partially update a Helm upstream config for this repository. (asynchronously) + * Partially update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10142,7 +11968,7 @@ public ApiResponse reposUpstreamGoPartialUpdateWithHttpInfo( @NotNul * @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 reposUpstreamGoPartialUpdateAsync(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmPartialUpdateAsync(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10163,13 +11989,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamGoRead + * Build call for reposUpstreamHelmRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10178,11 +12004,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 reposUpstreamGoReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmReadCall(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/go/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -10226,18 +12052,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamGoReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHelmReadValidateBeforeCall(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("reposUpstreamGoReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHelmReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamGoReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -10254,37 +12080,37 @@ private com.squareup.okhttp.Call reposUpstreamGoReadValidateBeforeCall(String ow } /** - * Retrieve a Go upstream config for this repository. - * Retrieve a Go upstream config for this repository. + * Retrieve a Helm upstream config for this repository. + * Retrieve a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return GoUpstream + * @return HelmUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GoUpstream reposUpstreamGoRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamGoReadWithHttpInfo(owner, identifier, slugPerm); + public HelmUpstream reposUpstreamHelmRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamHelmReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Go upstream config for this repository. - * Retrieve a Go upstream config for this repository. + * Retrieve a Helm upstream config for this repository. + * Retrieve a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<GoUpstream> + * @return ApiResponse<HelmUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse reposUpstreamHelmReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Go upstream config for this repository. (asynchronously) - * Retrieve a Go upstream config for this repository. + * Retrieve a Helm upstream config for this repository. (asynchronously) + * Retrieve a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10292,7 +12118,7 @@ public ApiResponse reposUpstreamGoReadWithHttpInfo( @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 reposUpstreamGoReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10313,13 +12139,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHelmReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamGoUpdate + * Build call for reposUpstreamHelmUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10329,11 +12155,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 reposUpstreamGoUpdateCall(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmUpdateCall(String owner, String identifier, String slugPerm, HelmUpstreamRequest 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/go/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -10377,18 +12203,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamGoUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHelmUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HelmUpstreamRequest 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("reposUpstreamGoUpdateWithHttpInfo", String.class, String.class, String.class, GoUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHelmUpdateWithHttpInfo", String.class, String.class, String.class, HelmUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamGoUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHelmUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -10405,39 +12231,39 @@ private com.squareup.okhttp.Call reposUpstreamGoUpdateValidateBeforeCall(String } /** - * Update a Go upstream config for this repository. - * Update a Go upstream config for this repository. + * Update a Helm upstream config for this repository. + * Update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return GoUpstream + * @return HelmUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GoUpstream reposUpstreamGoUpdate(String owner, String identifier, String slugPerm, GoUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamGoUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HelmUpstream reposUpstreamHelmUpdate(String owner, String identifier, String slugPerm, HelmUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHelmUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Go upstream config for this repository. - * Update a Go upstream config for this repository. + * Update a Helm upstream config for this repository. + * Update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<GoUpstream> + * @return ApiResponse<HelmUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse reposUpstreamHelmUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HelmUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHelmUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Go upstream config for this repository. (asynchronously) - * Update a Go upstream config for this repository. + * Update a Helm upstream config for this repository. (asynchronously) + * Update a Helm upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10446,7 +12272,7 @@ public ApiResponse reposUpstreamGoUpdateWithHttpInfo( @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 reposUpstreamGoUpdateAsync(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHelmUpdateAsync(String owner, String identifier, String slugPerm, HelmUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10467,13 +12293,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamGoUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHelmUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHelmCreate + * Build call for reposUpstreamHexCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -10482,11 +12308,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 reposUpstreamHelmCreateCall(String owner, String identifier, HelmUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexCreateCall(String owner, String identifier, HexUpstreamRequest 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/helm/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -10529,18 +12355,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmCreateValidateBeforeCall(String owner, String identifier, HelmUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHexCreateValidateBeforeCall(String owner, String identifier, HexUpstreamRequest 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("reposUpstreamHelmCreateWithHttpInfo", String.class, String.class, HelmUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHexCreateWithHttpInfo", String.class, String.class, HexUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHelmCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -10557,37 +12383,37 @@ private com.squareup.okhttp.Call reposUpstreamHelmCreateValidateBeforeCall(Strin } /** - * Create a Helm upstream config for this repository. - * Create a Helm upstream config for this repository. + * Create a Hex upstream config for this repository. + * Create a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return HelmUpstream + * @return HexUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HelmUpstream reposUpstreamHelmCreate(String owner, String identifier, HelmUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamHelmCreateWithHttpInfo(owner, identifier, data); + public HexUpstream reposUpstreamHexCreate(String owner, String identifier, HexUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHexCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Helm upstream config for this repository. - * Create a Helm upstream config for this repository. + * Create a Hex upstream config for this repository. + * Create a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<HelmUpstream> + * @return ApiResponse<HexUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHelmCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, HelmUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHexCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, HexUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Helm upstream config for this repository. (asynchronously) - * Create a Helm upstream config for this repository. + * Create a Hex upstream config for this repository. (asynchronously) + * Create a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -10595,7 +12421,7 @@ public ApiResponse reposUpstreamHelmCreateWithHttpInfo( @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 reposUpstreamHelmCreateAsync(String owner, String identifier, HelmUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexCreateAsync(String owner, String identifier, HexUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10616,13 +12442,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHexCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHelmDelete + * Build call for reposUpstreamHexDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10631,11 +12457,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 reposUpstreamHelmDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexDeleteCall(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/helm/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -10679,18 +12505,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHexDeleteValidateBeforeCall(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("reposUpstreamHelmDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHexDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHelmDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -10707,34 +12533,34 @@ private com.squareup.okhttp.Call reposUpstreamHelmDeleteValidateBeforeCall(Strin } /** - * Delete a Helm upstream config for this repository. - * Delete a Helm upstream config for this repository. + * Delete a Hex upstream config for this repository. + * Delete a Hex 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 reposUpstreamHelmDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamHelmDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamHexDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamHexDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Helm upstream config for this repository. - * Delete a Helm upstream config for this repository. + * Delete a Hex upstream config for this repository. + * Delete a Hex 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 reposUpstreamHelmDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamHexDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Helm upstream config for this repository. (asynchronously) - * Delete a Helm upstream config for this repository. + * Delete a Hex upstream config for this repository. (asynchronously) + * Delete a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10742,7 +12568,7 @@ public ApiResponse reposUpstreamHelmDeleteWithHttpInfo( @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 reposUpstreamHelmDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10763,12 +12589,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamHelmList + * Build call for reposUpstreamHexList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -10778,11 +12604,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 reposUpstreamHelmListCall(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 reposUpstreamHexListCall(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/helm/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -10829,18 +12655,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmListValidateBeforeCall(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 reposUpstreamHexListValidateBeforeCall(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("reposUpstreamHelmListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamHexListWithHttpInfo", 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 = reposUpstreamHelmListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -10857,39 +12683,39 @@ private com.squareup.okhttp.Call reposUpstreamHelmListValidateBeforeCall(String } /** - * List Helm upstream configs for this repository. - * List Helm upstream configs for this repository. + * List Hex upstream configs for this repository. + * List Hex 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<HelmUpstream> + * @return List<HexUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamHelmList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamHelmListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamHexList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamHexListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Helm upstream configs for this repository. - * List Helm upstream configs for this repository. + * List Hex upstream configs for this repository. + * List Hex 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<HelmUpstream>> + * @return ApiResponse<List<HexUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamHelmListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamHexListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Helm upstream configs for this repository. (asynchronously) - * List Helm upstream configs for this repository. + * List Hex upstream configs for this repository. (asynchronously) + * List Hex upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -10898,7 +12724,7 @@ public ApiResponse> reposUpstreamHelmListWithHttpInfo( @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 reposUpstreamHelmListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexListAsync(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; @@ -10919,13 +12745,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHexListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHelmPartialUpdate + * Build call for reposUpstreamHexPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -10935,11 +12761,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 reposUpstreamHelmPartialUpdateCall(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexPartialUpdateCall(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch 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/helm/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -10983,18 +12809,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHexPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch 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("reposUpstreamHelmPartialUpdateWithHttpInfo", String.class, String.class, String.class, HelmUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamHexPartialUpdateWithHttpInfo", String.class, String.class, String.class, HexUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -11011,39 +12837,39 @@ private com.squareup.okhttp.Call reposUpstreamHelmPartialUpdateValidateBeforeCal } /** - * Partially update a Helm upstream config for this repository. - * Partially update a Helm upstream config for this repository. + * Partially update a Hex upstream config for this repository. + * Partially update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return HelmUpstream + * @return HexUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HelmUpstream reposUpstreamHelmPartialUpdate(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamHelmPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HexUpstream reposUpstreamHexPartialUpdate(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamHexPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Helm upstream config for this repository. - * Partially update a Helm upstream config for this repository. + * Partially update a Hex upstream config for this repository. + * Partially update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<HelmUpstream> + * @return ApiResponse<HexUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHelmPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HelmUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHexPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HexUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Helm upstream config for this repository. (asynchronously) - * Partially update a Helm upstream config for this repository. + * Partially update a Hex upstream config for this repository. (asynchronously) + * Partially update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11052,7 +12878,7 @@ public ApiResponse reposUpstreamHelmPartialUpdateWithHttpInfo( @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 reposUpstreamHelmPartialUpdateAsync(String owner, String identifier, String slugPerm, HelmUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexPartialUpdateAsync(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11073,13 +12899,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHelmRead + * Build call for reposUpstreamHexRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11088,11 +12914,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 reposUpstreamHelmReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexReadCall(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/helm/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -11136,18 +12962,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHexReadValidateBeforeCall(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("reposUpstreamHelmReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHexReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHelmReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -11164,37 +12990,37 @@ private com.squareup.okhttp.Call reposUpstreamHelmReadValidateBeforeCall(String } /** - * Retrieve a Helm upstream config for this repository. - * Retrieve a Helm upstream config for this repository. + * Retrieve a Hex upstream config for this repository. + * Retrieve a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return HelmUpstream + * @return HexUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HelmUpstream reposUpstreamHelmRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamHelmReadWithHttpInfo(owner, identifier, slugPerm); + public HexUpstream reposUpstreamHexRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamHexReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Helm upstream config for this repository. - * Retrieve a Helm upstream config for this repository. + * Retrieve a Hex upstream config for this repository. + * Retrieve a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<HelmUpstream> + * @return ApiResponse<HexUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHelmReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHexReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Helm upstream config for this repository. (asynchronously) - * Retrieve a Helm upstream config for this repository. + * Retrieve a Hex upstream config for this repository. (asynchronously) + * Retrieve a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11202,7 +13028,7 @@ public ApiResponse reposUpstreamHelmReadWithHttpInfo( @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 reposUpstreamHelmReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11223,13 +13049,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHexReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHelmUpdate + * Build call for reposUpstreamHexUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11239,11 +13065,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 reposUpstreamHelmUpdateCall(String owner, String identifier, String slugPerm, HelmUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexUpdateCall(String owner, String identifier, String slugPerm, HexUpstreamRequest 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/helm/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -11287,18 +13113,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHelmUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HelmUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHexUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HexUpstreamRequest 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("reposUpstreamHelmUpdateWithHttpInfo", String.class, String.class, String.class, HelmUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHexUpdateWithHttpInfo", String.class, String.class, String.class, HexUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHelmUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHexUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -11315,39 +13141,39 @@ private com.squareup.okhttp.Call reposUpstreamHelmUpdateValidateBeforeCall(Strin } /** - * Update a Helm upstream config for this repository. - * Update a Helm upstream config for this repository. + * Update a Hex upstream config for this repository. + * Update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return HelmUpstream + * @return HexUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HelmUpstream reposUpstreamHelmUpdate(String owner, String identifier, String slugPerm, HelmUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamHelmUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HexUpstream reposUpstreamHexUpdate(String owner, String identifier, String slugPerm, HexUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHexUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Helm upstream config for this repository. - * Update a Helm upstream config for this repository. + * Update a Hex upstream config for this repository. + * Update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<HelmUpstream> + * @return ApiResponse<HexUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHelmUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HelmUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHelmUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHexUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HexUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHexUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Helm upstream config for this repository. (asynchronously) - * Update a Helm upstream config for this repository. + * Update a Hex upstream config for this repository. (asynchronously) + * Update a Hex upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11356,7 +13182,7 @@ public ApiResponse reposUpstreamHelmUpdateWithHttpInfo( @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 reposUpstreamHelmUpdateAsync(String owner, String identifier, String slugPerm, HelmUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHexUpdateAsync(String owner, String identifier, String slugPerm, HexUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11377,13 +13203,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHelmUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHexUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHexCreate + * Build call for reposUpstreamHuggingfaceCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -11392,11 +13218,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 reposUpstreamHexCreateCall(String owner, String identifier, HexUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceCreateCall(String owner, String identifier, HuggingfaceUpstreamRequest 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/hex/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -11439,18 +13265,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexCreateValidateBeforeCall(String owner, String identifier, HexUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHuggingfaceCreateValidateBeforeCall(String owner, String identifier, HuggingfaceUpstreamRequest 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("reposUpstreamHexCreateWithHttpInfo", String.class, String.class, HexUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfaceCreateWithHttpInfo", String.class, String.class, HuggingfaceUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHexCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -11467,37 +13293,37 @@ private com.squareup.okhttp.Call reposUpstreamHexCreateValidateBeforeCall(String } /** - * Create a Hex upstream config for this repository. - * Create a Hex upstream config for this repository. + * Create a Hugging Face upstream config for this repository. + * Create a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return HexUpstream + * @return HuggingfaceUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HexUpstream reposUpstreamHexCreate(String owner, String identifier, HexUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamHexCreateWithHttpInfo(owner, identifier, data); + public HuggingfaceUpstream reposUpstreamHuggingfaceCreate(String owner, String identifier, HuggingfaceUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHuggingfaceCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Hex upstream config for this repository. - * Create a Hex upstream config for this repository. + * Create a Hugging Face upstream config for this repository. + * Create a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<HexUpstream> + * @return ApiResponse<HuggingfaceUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHexCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, HexUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHuggingfaceCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, HuggingfaceUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Hex upstream config for this repository. (asynchronously) - * Create a Hex upstream config for this repository. + * Create a Hugging Face upstream config for this repository. (asynchronously) + * Create a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -11505,7 +13331,7 @@ public ApiResponse reposUpstreamHexCreateWithHttpInfo( @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 reposUpstreamHexCreateAsync(String owner, String identifier, HexUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceCreateAsync(String owner, String identifier, HuggingfaceUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11526,13 +13352,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHexDelete + * Build call for reposUpstreamHuggingfaceDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11541,11 +13367,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 reposUpstreamHexDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceDeleteCall(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/hex/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -11589,18 +13415,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHuggingfaceDeleteValidateBeforeCall(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("reposUpstreamHexDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfaceDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHexDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -11617,34 +13443,34 @@ private com.squareup.okhttp.Call reposUpstreamHexDeleteValidateBeforeCall(String } /** - * Delete a Hex upstream config for this repository. - * Delete a Hex upstream config for this repository. + * Delete a Hugging Face upstream config for this repository. + * Delete a Hugging Face 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 reposUpstreamHexDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamHexDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamHuggingfaceDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamHuggingfaceDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Hex upstream config for this repository. - * Delete a Hex upstream config for this repository. + * Delete a Hugging Face upstream config for this repository. + * Delete a Hugging Face 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 reposUpstreamHexDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamHuggingfaceDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Hex upstream config for this repository. (asynchronously) - * Delete a Hex upstream config for this repository. + * Delete a Hugging Face upstream config for this repository. (asynchronously) + * Delete a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11652,7 +13478,7 @@ public ApiResponse reposUpstreamHexDeleteWithHttpInfo( @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 reposUpstreamHexDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11673,12 +13499,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamHexList + * Build call for reposUpstreamHuggingfaceList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -11688,11 +13514,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 reposUpstreamHexListCall(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 reposUpstreamHuggingfaceListCall(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/hex/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -11739,18 +13565,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexListValidateBeforeCall(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 reposUpstreamHuggingfaceListValidateBeforeCall(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("reposUpstreamHexListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfaceListWithHttpInfo", 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 = reposUpstreamHexListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -11767,39 +13593,39 @@ private com.squareup.okhttp.Call reposUpstreamHexListValidateBeforeCall(String o } /** - * List Hex upstream configs for this repository. - * List Hex upstream configs for this repository. + * List Hugging Face upstream configs for this repository. + * List Hugging Face 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<HexUpstream> + * @return List<HuggingfaceUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamHexList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamHexListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamHuggingfaceList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamHuggingfaceListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Hex upstream configs for this repository. - * List Hex upstream configs for this repository. + * List Hugging Face upstream configs for this repository. + * List Hugging Face 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<HexUpstream>> + * @return ApiResponse<List<HuggingfaceUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamHexListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamHuggingfaceListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Hex upstream configs for this repository. (asynchronously) - * List Hex upstream configs for this repository. + * List Hugging Face upstream configs for this repository. (asynchronously) + * List Hugging Face upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -11808,7 +13634,7 @@ public ApiResponse> reposUpstreamHexListWithHttpInfo( @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 reposUpstreamHexListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceListAsync(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; @@ -11829,13 +13655,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHexPartialUpdate + * Build call for reposUpstreamHuggingfacePartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11845,11 +13671,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 reposUpstreamHexPartialUpdateCall(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfacePartialUpdateCall(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequestPatch 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/hex/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -11893,18 +13719,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHuggingfacePartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequestPatch 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("reposUpstreamHexPartialUpdateWithHttpInfo", String.class, String.class, String.class, HexUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfacePartialUpdateWithHttpInfo", String.class, String.class, String.class, HuggingfaceUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfacePartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -11921,39 +13747,39 @@ private com.squareup.okhttp.Call reposUpstreamHexPartialUpdateValidateBeforeCall } /** - * Partially update a Hex upstream config for this repository. - * Partially update a Hex upstream config for this repository. + * Partially update a Hugging Face upstream config for this repository. + * Partially update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return HexUpstream + * @return HuggingfaceUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HexUpstream reposUpstreamHexPartialUpdate(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamHexPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HuggingfaceUpstream reposUpstreamHuggingfacePartialUpdate(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamHuggingfacePartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Hex upstream config for this repository. - * Partially update a Hex upstream config for this repository. + * Partially update a Hugging Face upstream config for this repository. + * Partially update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<HexUpstream> + * @return ApiResponse<HuggingfaceUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHexPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HexUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHuggingfacePartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HuggingfaceUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfacePartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Hex upstream config for this repository. (asynchronously) - * Partially update a Hex upstream config for this repository. + * Partially update a Hugging Face upstream config for this repository. (asynchronously) + * Partially update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11962,7 +13788,7 @@ public ApiResponse reposUpstreamHexPartialUpdateWithHttpInfo( @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 reposUpstreamHexPartialUpdateAsync(String owner, String identifier, String slugPerm, HexUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfacePartialUpdateAsync(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11983,13 +13809,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHuggingfacePartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHexRead + * Build call for reposUpstreamHuggingfaceRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -11998,11 +13824,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 reposUpstreamHexReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceReadCall(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/hex/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -12046,18 +13872,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHuggingfaceReadValidateBeforeCall(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("reposUpstreamHexReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfaceReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHexReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -12074,37 +13900,37 @@ private com.squareup.okhttp.Call reposUpstreamHexReadValidateBeforeCall(String o } /** - * Retrieve a Hex upstream config for this repository. - * Retrieve a Hex upstream config for this repository. + * Retrieve a Hugging Face upstream config for this repository. + * Retrieve a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return HexUpstream + * @return HuggingfaceUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HexUpstream reposUpstreamHexRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamHexReadWithHttpInfo(owner, identifier, slugPerm); + public HuggingfaceUpstream reposUpstreamHuggingfaceRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamHuggingfaceReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Hex upstream config for this repository. - * Retrieve a Hex upstream config for this repository. + * Retrieve a Hugging Face upstream config for this repository. + * Retrieve a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<HexUpstream> + * @return ApiResponse<HuggingfaceUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHexReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHuggingfaceReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Hex upstream config for this repository. (asynchronously) - * Retrieve a Hex upstream config for this repository. + * Retrieve a Hugging Face upstream config for this repository. (asynchronously) + * Retrieve a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -12112,7 +13938,7 @@ public ApiResponse reposUpstreamHexReadWithHttpInfo( @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 reposUpstreamHexReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12133,13 +13959,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamHexUpdate + * Build call for reposUpstreamHuggingfaceUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -12149,11 +13975,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 reposUpstreamHexUpdateCall(String owner, String identifier, String slugPerm, HexUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceUpdateCall(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequest 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/hex/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -12197,18 +14023,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamHexUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HexUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamHuggingfaceUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequest 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("reposUpstreamHexUpdateWithHttpInfo", String.class, String.class, String.class, HexUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamHuggingfaceUpdateWithHttpInfo", String.class, String.class, String.class, HuggingfaceUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamHexUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -12225,39 +14051,39 @@ private com.squareup.okhttp.Call reposUpstreamHexUpdateValidateBeforeCall(String } /** - * Update a Hex upstream config for this repository. - * Update a Hex upstream config for this repository. + * Update a Hugging Face upstream config for this repository. + * Update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return HexUpstream + * @return HuggingfaceUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HexUpstream reposUpstreamHexUpdate(String owner, String identifier, String slugPerm, HexUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamHexUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public HuggingfaceUpstream reposUpstreamHuggingfaceUpdate(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamHuggingfaceUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Hex upstream config for this repository. - * Update a Hex upstream config for this repository. + * Update a Hugging Face upstream config for this repository. + * Update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<HexUpstream> + * @return ApiResponse<HuggingfaceUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamHexUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HexUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamHexUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamHuggingfaceUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, HuggingfaceUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Hex upstream config for this repository. (asynchronously) - * Update a Hex upstream config for this repository. + * Update a Hugging Face upstream config for this repository. (asynchronously) + * Update a Hugging Face upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -12266,7 +14092,7 @@ public ApiResponse reposUpstreamHexUpdateWithHttpInfo( @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 reposUpstreamHexUpdateAsync(String owner, String identifier, String slugPerm, HexUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamHuggingfaceUpdateAsync(String owner, String identifier, String slugPerm, HuggingfaceUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12287,8 +14113,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamHexUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamHuggingfaceUpdateValidateBeforeCall(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/models/ComposerPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java index cb2204be..7d6af9e2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUpload.java @@ -1084,7 +1084,7 @@ public ComposerPackageUpload version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java index f54b232a..bffbeaea 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java @@ -110,7 +110,7 @@ public ComposerPackageUploadRequest version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java index e400bca4..c6893cb3 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java @@ -1135,7 +1135,7 @@ public ConanPackageUpload version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java index 6a0c4ed4..1d856129 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java @@ -239,7 +239,7 @@ public ConanPackageUploadRequest version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java new file mode 100644 index 00000000..112dda5b --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstream.java @@ -0,0 +1,597 @@ +/* + * 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; + +/** + * CondaUpstream + */ + +public class CondaUpstream 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"), + + CACHE_AND_PROXY("Cache and Proxy"); + + 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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 CondaUpstream 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; + } + CondaUpstream condaUpstream = (CondaUpstream) o; + return Objects.equals(this.authMode, condaUpstream.authMode) && + Objects.equals(this.authSecret, condaUpstream.authSecret) && + Objects.equals(this.authUsername, condaUpstream.authUsername) && + Objects.equals(this.createdAt, condaUpstream.createdAt) && + Objects.equals(this.disableReason, condaUpstream.disableReason) && + Objects.equals(this.extraHeader1, condaUpstream.extraHeader1) && + Objects.equals(this.extraHeader2, condaUpstream.extraHeader2) && + Objects.equals(this.extraValue1, condaUpstream.extraValue1) && + Objects.equals(this.extraValue2, condaUpstream.extraValue2) && + Objects.equals(this.isActive, condaUpstream.isActive) && + Objects.equals(this.mode, condaUpstream.mode) && + Objects.equals(this.name, condaUpstream.name) && + Objects.equals(this.pendingValidation, condaUpstream.pendingValidation) && + Objects.equals(this.priority, condaUpstream.priority) && + Objects.equals(this.slugPerm, condaUpstream.slugPerm) && + Objects.equals(this.updatedAt, condaUpstream.updatedAt) && + Objects.equals(this.upstreamUrl, condaUpstream.upstreamUrl) && + Objects.equals(this.verifySsl, condaUpstream.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 CondaUpstream {\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/CondaUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java new file mode 100644 index 00000000..1b3e18b4 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequest.java @@ -0,0 +1,473 @@ +/* + * 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; + +/** + * CondaUpstreamRequest + */ + +public class CondaUpstreamRequest 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"), + + CACHE_AND_PROXY("Cache and Proxy"); + + 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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 CondaUpstreamRequest 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; + } + CondaUpstreamRequest condaUpstreamRequest = (CondaUpstreamRequest) o; + return Objects.equals(this.authMode, condaUpstreamRequest.authMode) && + Objects.equals(this.authSecret, condaUpstreamRequest.authSecret) && + Objects.equals(this.authUsername, condaUpstreamRequest.authUsername) && + Objects.equals(this.extraHeader1, condaUpstreamRequest.extraHeader1) && + Objects.equals(this.extraHeader2, condaUpstreamRequest.extraHeader2) && + Objects.equals(this.extraValue1, condaUpstreamRequest.extraValue1) && + Objects.equals(this.extraValue2, condaUpstreamRequest.extraValue2) && + Objects.equals(this.isActive, condaUpstreamRequest.isActive) && + Objects.equals(this.mode, condaUpstreamRequest.mode) && + Objects.equals(this.name, condaUpstreamRequest.name) && + Objects.equals(this.priority, condaUpstreamRequest.priority) && + Objects.equals(this.upstreamUrl, condaUpstreamRequest.upstreamUrl) && + Objects.equals(this.verifySsl, condaUpstreamRequest.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 CondaUpstreamRequest {\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/CondaUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.java new file mode 100644 index 00000000..4f6107c6 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaUpstreamRequestPatch.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; + +/** + * CondaUpstreamRequestPatch + */ + +public class CondaUpstreamRequestPatch 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"), + + CACHE_AND_PROXY("Cache and Proxy"); + + 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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 CondaUpstreamRequestPatch 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; + } + CondaUpstreamRequestPatch condaUpstreamRequestPatch = (CondaUpstreamRequestPatch) o; + return Objects.equals(this.authMode, condaUpstreamRequestPatch.authMode) && + Objects.equals(this.authSecret, condaUpstreamRequestPatch.authSecret) && + Objects.equals(this.authUsername, condaUpstreamRequestPatch.authUsername) && + Objects.equals(this.extraHeader1, condaUpstreamRequestPatch.extraHeader1) && + Objects.equals(this.extraHeader2, condaUpstreamRequestPatch.extraHeader2) && + Objects.equals(this.extraValue1, condaUpstreamRequestPatch.extraValue1) && + Objects.equals(this.extraValue2, condaUpstreamRequestPatch.extraValue2) && + Objects.equals(this.isActive, condaUpstreamRequestPatch.isActive) && + Objects.equals(this.mode, condaUpstreamRequestPatch.mode) && + Objects.equals(this.name, condaUpstreamRequestPatch.name) && + Objects.equals(this.priority, condaUpstreamRequestPatch.priority) && + Objects.equals(this.upstreamUrl, condaUpstreamRequestPatch.upstreamUrl) && + Objects.equals(this.verifySsl, condaUpstreamRequestPatch.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 CondaUpstreamRequestPatch {\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/DynamicMapping.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DynamicMapping.java new file mode 100644 index 00000000..53d5716b --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DynamicMapping.java @@ -0,0 +1,125 @@ +/* + * 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; + +/** + * The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + */ +@ApiModel(description = "The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + +public class DynamicMapping implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("claim_value") + private String claimValue = null; + + @SerializedName("service_account") + private String serviceAccount = null; + + public DynamicMapping claimValue(String claimValue) { + this.claimValue = claimValue; + return this; + } + + /** + * The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return claimValue + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getClaimValue() { + return claimValue; + } + + public void setClaimValue(String claimValue) { + this.claimValue = claimValue; + } + + public DynamicMapping serviceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + + /** + * The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return serviceAccount + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getServiceAccount() { + return serviceAccount; + } + + public void setServiceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DynamicMapping dynamicMapping = (DynamicMapping) o; + return Objects.equals(this.claimValue, dynamicMapping.claimValue) && + Objects.equals(this.serviceAccount, dynamicMapping.serviceAccount); + } + + @Override + public int hashCode() { + return Objects.hash(claimValue, serviceAccount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DynamicMapping {\n"); + + sb.append(" claimValue: ").append(toIndentedString(claimValue)).append("\n"); + sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).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/HuggingfacePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java new file mode 100644 index 00000000..0b5acbe7 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUpload.java @@ -0,0 +1,1304 @@ +/* + * 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.Architecture; +import io.cloudsmith.api.models.Distribution; +import io.cloudsmith.api.models.DistributionVersion; +import io.cloudsmith.api.models.PackageFile; +import io.cloudsmith.api.models.Tags; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * HuggingfacePackageUpload + */ + +public class HuggingfacePackageUpload implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("architectures") + private List architectures = null; + + @SerializedName("cdn_url") + private String cdnUrl = null; + + @SerializedName("checksum_md5") + private String checksumMd5 = null; + + @SerializedName("checksum_sha1") + private String checksumSha1 = null; + + @SerializedName("checksum_sha256") + private String checksumSha256 = null; + + @SerializedName("checksum_sha512") + private String checksumSha512 = null; + + @SerializedName("dependencies_checksum_md5") + private String dependenciesChecksumMd5 = null; + + @SerializedName("dependencies_url") + private String dependenciesUrl = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("display_name") + private String displayName = null; + + @SerializedName("distro") + private Distribution distro = null; + + @SerializedName("distro_version") + private DistributionVersion distroVersion = null; + + @SerializedName("downloads") + private java.math.BigInteger downloads = null; + + @SerializedName("epoch") + private java.math.BigInteger epoch = null; + + @SerializedName("extension") + private String extension = null; + + @SerializedName("filename") + private String filename = null; + + @SerializedName("files") + private List files = null; + + @SerializedName("format") + private String format = null; + + @SerializedName("format_url") + private String formatUrl = null; + + @SerializedName("freeable_storage") + private java.math.BigInteger freeableStorage = null; + + @SerializedName("fully_qualified_name") + private String fullyQualifiedName = null; + + @SerializedName("identifier_perm") + private String identifierPerm = null; + + @SerializedName("identifiers") + private Map identifiers = null; + + @SerializedName("indexed") + private Boolean indexed = null; + + @SerializedName("is_cancellable") + private Boolean isCancellable = null; + + @SerializedName("is_copyable") + private Boolean isCopyable = null; + + @SerializedName("is_deleteable") + private Boolean isDeleteable = null; + + @SerializedName("is_downloadable") + private Boolean isDownloadable = null; + + @SerializedName("is_moveable") + private Boolean isMoveable = null; + + @SerializedName("is_quarantinable") + private Boolean isQuarantinable = null; + + @SerializedName("is_quarantined") + private Boolean isQuarantined = null; + + @SerializedName("is_resyncable") + private Boolean isResyncable = null; + + @SerializedName("is_security_scannable") + private Boolean isSecurityScannable = null; + + @SerializedName("is_sync_awaiting") + private Boolean isSyncAwaiting = null; + + @SerializedName("is_sync_completed") + private Boolean isSyncCompleted = null; + + @SerializedName("is_sync_failed") + private Boolean isSyncFailed = null; + + @SerializedName("is_sync_in_flight") + private Boolean isSyncInFlight = null; + + @SerializedName("is_sync_in_progress") + private Boolean isSyncInProgress = null; + + @SerializedName("license") + private String license = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("namespace") + private String namespace = null; + + @SerializedName("namespace_url") + private String namespaceUrl = null; + + @SerializedName("num_files") + private java.math.BigInteger numFiles = null; + + @SerializedName("origin_repository") + private String originRepository = null; + + @SerializedName("origin_repository_url") + private String originRepositoryUrl = null; + + @SerializedName("package_type") + private java.math.BigInteger packageType = null; + + @SerializedName("policy_violated") + private Boolean policyViolated = null; + + @SerializedName("release") + private String release = null; + + @SerializedName("repository") + private String repository = null; + + @SerializedName("repository_url") + private String repositoryUrl = null; + + @SerializedName("security_scan_completed_at") + private OffsetDateTime securityScanCompletedAt = null; + + @SerializedName("security_scan_started_at") + private OffsetDateTime securityScanStartedAt = null; + + /** + * Gets or Sets securityScanStatus + */ + @JsonAdapter(SecurityScanStatusEnum.Adapter.class) + public enum SecurityScanStatusEnum { + AWAITING_SECURITY_SCAN("Awaiting Security Scan"), + + SECURITY_SCANNING_IN_PROGRESS("Security Scanning in Progress"), + + SCAN_DETECTED_VULNERABILITIES("Scan Detected Vulnerabilities"), + + SCAN_DETECTED_NO_VULNERABILITIES("Scan Detected No Vulnerabilities"), + + SECURITY_SCANNING_DISABLED("Security Scanning Disabled"), + + SECURITY_SCANNING_FAILED("Security Scanning Failed"), + + SECURITY_SCANNING_SKIPPED("Security Scanning Skipped"), + + SECURITY_SCANNING_NOT_SUPPORTED("Security Scanning Not Supported"); + + private String value; + + SecurityScanStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SecurityScanStatusEnum fromValue(String text) { + for (SecurityScanStatusEnum b : SecurityScanStatusEnum.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 SecurityScanStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SecurityScanStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("security_scan_status") + private SecurityScanStatusEnum securityScanStatus = SecurityScanStatusEnum.AWAITING_SECURITY_SCAN; + + @SerializedName("security_scan_status_updated_at") + private OffsetDateTime securityScanStatusUpdatedAt = null; + + @SerializedName("self_html_url") + private String selfHtmlUrl = null; + + @SerializedName("self_url") + private String selfUrl = null; + + @SerializedName("signature_url") + private String signatureUrl = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("stage") + private java.math.BigInteger stage = null; + + @SerializedName("stage_str") + private String stageStr = null; + + @SerializedName("stage_updated_at") + private OffsetDateTime stageUpdatedAt = null; + + @SerializedName("status") + private java.math.BigInteger status = null; + + @SerializedName("status_reason") + private String statusReason = null; + + @SerializedName("status_str") + private String statusStr = null; + + @SerializedName("status_updated_at") + private OffsetDateTime statusUpdatedAt = null; + + @SerializedName("status_url") + private String statusUrl = null; + + @SerializedName("subtype") + private String subtype = null; + + @SerializedName("summary") + private String summary = null; + + @SerializedName("sync_finished_at") + private OffsetDateTime syncFinishedAt = null; + + @SerializedName("sync_progress") + private java.math.BigInteger syncProgress = null; + + @SerializedName("tags_immutable") + private Tags tagsImmutable = null; + + @SerializedName("type_display") + private String typeDisplay = null; + + @SerializedName("uploaded_at") + private OffsetDateTime uploadedAt = null; + + @SerializedName("uploader") + private String uploader = null; + + @SerializedName("uploader_url") + private String uploaderUrl = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("version_orig") + private String versionOrig = null; + + @SerializedName("vulnerability_scan_results_url") + private String vulnerabilityScanResultsUrl = null; + + /** + * Get architectures + * @return architectures + **/ + @Valid + @ApiModelProperty(value = "") + public List getArchitectures() { + return architectures; + } + + /** + * Get cdnUrl + * @return cdnUrl + **/ + @ApiModelProperty(value = "") + public String getCdnUrl() { + return cdnUrl; + } + + /** + * Get checksumMd5 + * @return checksumMd5 + **/ + @ApiModelProperty(value = "") + public String getChecksumMd5() { + return checksumMd5; + } + + /** + * Get checksumSha1 + * @return checksumSha1 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha1() { + return checksumSha1; + } + + /** + * Get checksumSha256 + * @return checksumSha256 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha256() { + return checksumSha256; + } + + /** + * Get checksumSha512 + * @return checksumSha512 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha512() { + return checksumSha512; + } + + /** + * A checksum of all of the package's dependencies. + * @return dependenciesChecksumMd5 + **/ + @ApiModelProperty(value = "A checksum of all of the package's dependencies.") + public String getDependenciesChecksumMd5() { + return dependenciesChecksumMd5; + } + + /** + * Get dependenciesUrl + * @return dependenciesUrl + **/ + @ApiModelProperty(value = "") + public String getDependenciesUrl() { + return dependenciesUrl; + } + + /** + * A textual description of this package. + * @return description + **/ + @ApiModelProperty(value = "A textual description of this package.") + public String getDescription() { + return description; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public HuggingfacePackageUpload distro(Distribution distro) { + this.distro = distro; + return this; + } + + /** + * Get distro + * @return distro + **/ + @Valid + @ApiModelProperty(value = "") + public Distribution getDistro() { + return distro; + } + + public void setDistro(Distribution distro) { + this.distro = distro; + } + + public HuggingfacePackageUpload distroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + return this; + } + + /** + * Get distroVersion + * @return distroVersion + **/ + @Valid + @ApiModelProperty(value = "") + public DistributionVersion getDistroVersion() { + return distroVersion; + } + + public void setDistroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + } + + /** + * Get downloads + * @return downloads + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getDownloads() { + return downloads; + } + + /** + * The epoch of the package version (if any). + * @return epoch + **/ + @ApiModelProperty(value = "The epoch of the package version (if any).") + public java.math.BigInteger getEpoch() { + return epoch; + } + + /** + * Get extension + * @return extension + **/ + @ApiModelProperty(value = "") + public String getExtension() { + return extension; + } + + /** + * Get filename + * @return filename + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFilename() { + return filename; + } + + /** + * Get files + * @return files + **/ + @Valid + @ApiModelProperty(value = "") + public List getFiles() { + return files; + } + + /** + * Get format + * @return format + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFormat() { + return format; + } + + /** + * Get formatUrl + * @return formatUrl + **/ + @ApiModelProperty(value = "") + public String getFormatUrl() { + return formatUrl; + } + + /** + * Amount of storage that will be freed if this package is deleted + * @return freeableStorage + **/ + @ApiModelProperty(value = "Amount of storage that will be freed if this package is deleted") + public java.math.BigInteger getFreeableStorage() { + return freeableStorage; + } + + /** + * Get fullyQualifiedName + * @return fullyQualifiedName + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFullyQualifiedName() { + return fullyQualifiedName; + } + + /** + * Unique and permanent identifier for the package. + * @return identifierPerm + **/ + @Size(min=1) @ApiModelProperty(value = "Unique and permanent identifier for the package.") + public String getIdentifierPerm() { + return identifierPerm; + } + + /** + * Return a map of identifier field names and their values. + * @return identifiers + **/ + @ApiModelProperty(value = "Return a map of identifier field names and their values.") + public Map getIdentifiers() { + return identifiers; + } + + /** + * Get indexed + * @return indexed + **/ + @ApiModelProperty(value = "") + public Boolean isIndexed() { + return indexed; + } + + /** + * Get isCancellable + * @return isCancellable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCancellable() { + return isCancellable; + } + + /** + * Get isCopyable + * @return isCopyable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCopyable() { + return isCopyable; + } + + /** + * Get isDeleteable + * @return isDeleteable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDeleteable() { + return isDeleteable; + } + + /** + * Get isDownloadable + * @return isDownloadable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDownloadable() { + return isDownloadable; + } + + /** + * Get isMoveable + * @return isMoveable + **/ + @ApiModelProperty(value = "") + public Boolean isIsMoveable() { + return isMoveable; + } + + /** + * Get isQuarantinable + * @return isQuarantinable + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantinable() { + return isQuarantinable; + } + + /** + * Get isQuarantined + * @return isQuarantined + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantined() { + return isQuarantined; + } + + /** + * Get isResyncable + * @return isResyncable + **/ + @ApiModelProperty(value = "") + public Boolean isIsResyncable() { + return isResyncable; + } + + /** + * Get isSecurityScannable + * @return isSecurityScannable + **/ + @ApiModelProperty(value = "") + public Boolean isIsSecurityScannable() { + return isSecurityScannable; + } + + /** + * Get isSyncAwaiting + * @return isSyncAwaiting + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncAwaiting() { + return isSyncAwaiting; + } + + /** + * Get isSyncCompleted + * @return isSyncCompleted + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncCompleted() { + return isSyncCompleted; + } + + /** + * Get isSyncFailed + * @return isSyncFailed + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncFailed() { + return isSyncFailed; + } + + /** + * Get isSyncInFlight + * @return isSyncInFlight + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInFlight() { + return isSyncInFlight; + } + + /** + * Get isSyncInProgress + * @return isSyncInProgress + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInProgress() { + return isSyncInProgress; + } + + /** + * The license of this package. + * @return license + **/ + @ApiModelProperty(value = "The license of this package.") + public String getLicense() { + return license; + } + + /** + * The name of this package. + * @return name + **/ + @ApiModelProperty(value = "The name of this package.") + public String getName() { + return name; + } + + /** + * Get namespace + * @return namespace + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getNamespace() { + return namespace; + } + + /** + * Get namespaceUrl + * @return namespaceUrl + **/ + @ApiModelProperty(value = "") + public String getNamespaceUrl() { + return namespaceUrl; + } + + /** + * Get numFiles + * @return numFiles + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getNumFiles() { + return numFiles; + } + + /** + * Get originRepository + * @return originRepository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getOriginRepository() { + return originRepository; + } + + /** + * Get originRepositoryUrl + * @return originRepositoryUrl + **/ + @ApiModelProperty(value = "") + public String getOriginRepositoryUrl() { + return originRepositoryUrl; + } + + /** + * The type of package contents. + * @return packageType + **/ + @ApiModelProperty(value = "The type of package contents.") + public java.math.BigInteger getPackageType() { + return packageType; + } + + /** + * Whether or not the package has violated any policy. + * @return policyViolated + **/ + @ApiModelProperty(value = "Whether or not the package has violated any policy.") + public Boolean isPolicyViolated() { + return policyViolated; + } + + /** + * The release of the package version (if any). + * @return release + **/ + @ApiModelProperty(value = "The release of the package version (if any).") + public String getRelease() { + return release; + } + + /** + * Get repository + * @return repository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getRepository() { + return repository; + } + + /** + * Get repositoryUrl + * @return repositoryUrl + **/ + @ApiModelProperty(value = "") + public String getRepositoryUrl() { + return repositoryUrl; + } + + /** + * The datetime the security scanning was completed. + * @return securityScanCompletedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was completed.") + public OffsetDateTime getSecurityScanCompletedAt() { + return securityScanCompletedAt; + } + + /** + * The datetime the security scanning was started. + * @return securityScanStartedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was started.") + public OffsetDateTime getSecurityScanStartedAt() { + return securityScanStartedAt; + } + + /** + * Get securityScanStatus + * @return securityScanStatus + **/ + @ApiModelProperty(value = "") + public SecurityScanStatusEnum getSecurityScanStatus() { + return securityScanStatus; + } + + /** + * The datetime the security scanning status was updated. + * @return securityScanStatusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning status was updated.") + public OffsetDateTime getSecurityScanStatusUpdatedAt() { + return securityScanStatusUpdatedAt; + } + + /** + * Get selfHtmlUrl + * @return selfHtmlUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfHtmlUrl() { + return selfHtmlUrl; + } + + /** + * Get selfUrl + * @return selfUrl + **/ + @ApiModelProperty(value = "") + public String getSelfUrl() { + return selfUrl; + } + + /** + * Get signatureUrl + * @return signatureUrl + **/ + @ApiModelProperty(value = "") + public String getSignatureUrl() { + return signatureUrl; + } + + /** + * The calculated size of the package. + * @return size + **/ + @ApiModelProperty(value = "The calculated size of the package.") + public java.math.BigInteger getSize() { + return size; + } + + /** + * The public unique identifier for the package. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The public unique identifier for the package.") + public String getSlug() { + return slug; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * The synchronisation (in progress) stage of the package. + * @return stage + **/ + @ApiModelProperty(value = "The synchronisation (in progress) stage of the package.") + public java.math.BigInteger getStage() { + return stage; + } + + /** + * Get stageStr + * @return stageStr + **/ + @ApiModelProperty(value = "") + public String getStageStr() { + return stageStr; + } + + /** + * The datetime the package stage was updated at. + * @return stageUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package stage was updated at.") + public OffsetDateTime getStageUpdatedAt() { + return stageUpdatedAt; + } + + /** + * The synchronisation status of the package. + * @return status + **/ + @ApiModelProperty(value = "The synchronisation status of the package.") + public java.math.BigInteger getStatus() { + return status; + } + + /** + * A textual description for the synchronous status reason (if any + * @return statusReason + **/ + @ApiModelProperty(value = "A textual description for the synchronous status reason (if any") + public String getStatusReason() { + return statusReason; + } + + /** + * Get statusStr + * @return statusStr + **/ + @ApiModelProperty(value = "") + public String getStatusStr() { + return statusStr; + } + + /** + * The datetime the package status was updated at. + * @return statusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package status was updated at.") + public OffsetDateTime getStatusUpdatedAt() { + return statusUpdatedAt; + } + + /** + * Get statusUrl + * @return statusUrl + **/ + @ApiModelProperty(value = "") + public String getStatusUrl() { + return statusUrl; + } + + /** + * Get subtype + * @return subtype + **/ + @ApiModelProperty(value = "") + public String getSubtype() { + return subtype; + } + + /** + * A one-liner synopsis of this package. + * @return summary + **/ + @ApiModelProperty(value = "A one-liner synopsis of this package.") + public String getSummary() { + return summary; + } + + /** + * The datetime the package sync was finished at. + * @return syncFinishedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package sync was finished at.") + public OffsetDateTime getSyncFinishedAt() { + return syncFinishedAt; + } + + /** + * Synchronisation progress (from 0-100) + * @return syncProgress + **/ + @ApiModelProperty(value = "Synchronisation progress (from 0-100)") + public java.math.BigInteger getSyncProgress() { + return syncProgress; + } + + public HuggingfacePackageUpload tagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + return this; + } + + /** + * Get tagsImmutable + * @return tagsImmutable + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsImmutable() { + return tagsImmutable; + } + + public void setTagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + } + + /** + * Get typeDisplay + * @return typeDisplay + **/ + @ApiModelProperty(value = "") + public String getTypeDisplay() { + return typeDisplay; + } + + /** + * The date this package was uploaded. + * @return uploadedAt + **/ + @Valid + @ApiModelProperty(value = "The date this package was uploaded.") + public OffsetDateTime getUploadedAt() { + return uploadedAt; + } + + /** + * Get uploader + * @return uploader + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUploader() { + return uploader; + } + + /** + * Get uploaderUrl + * @return uploaderUrl + **/ + @ApiModelProperty(value = "") + public String getUploaderUrl() { + return uploaderUrl; + } + + /** + * The raw version for this package. + * @return version + **/ + @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + /** + * Get versionOrig + * @return versionOrig + **/ + @ApiModelProperty(value = "") + public String getVersionOrig() { + return versionOrig; + } + + /** + * Get vulnerabilityScanResultsUrl + * @return vulnerabilityScanResultsUrl + **/ + @ApiModelProperty(value = "") + public String getVulnerabilityScanResultsUrl() { + return vulnerabilityScanResultsUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HuggingfacePackageUpload huggingfacePackageUpload = (HuggingfacePackageUpload) o; + return Objects.equals(this.architectures, huggingfacePackageUpload.architectures) && + Objects.equals(this.cdnUrl, huggingfacePackageUpload.cdnUrl) && + Objects.equals(this.checksumMd5, huggingfacePackageUpload.checksumMd5) && + Objects.equals(this.checksumSha1, huggingfacePackageUpload.checksumSha1) && + Objects.equals(this.checksumSha256, huggingfacePackageUpload.checksumSha256) && + Objects.equals(this.checksumSha512, huggingfacePackageUpload.checksumSha512) && + Objects.equals(this.dependenciesChecksumMd5, huggingfacePackageUpload.dependenciesChecksumMd5) && + Objects.equals(this.dependenciesUrl, huggingfacePackageUpload.dependenciesUrl) && + Objects.equals(this.description, huggingfacePackageUpload.description) && + Objects.equals(this.displayName, huggingfacePackageUpload.displayName) && + Objects.equals(this.distro, huggingfacePackageUpload.distro) && + Objects.equals(this.distroVersion, huggingfacePackageUpload.distroVersion) && + Objects.equals(this.downloads, huggingfacePackageUpload.downloads) && + Objects.equals(this.epoch, huggingfacePackageUpload.epoch) && + Objects.equals(this.extension, huggingfacePackageUpload.extension) && + Objects.equals(this.filename, huggingfacePackageUpload.filename) && + Objects.equals(this.files, huggingfacePackageUpload.files) && + Objects.equals(this.format, huggingfacePackageUpload.format) && + Objects.equals(this.formatUrl, huggingfacePackageUpload.formatUrl) && + Objects.equals(this.freeableStorage, huggingfacePackageUpload.freeableStorage) && + Objects.equals(this.fullyQualifiedName, huggingfacePackageUpload.fullyQualifiedName) && + Objects.equals(this.identifierPerm, huggingfacePackageUpload.identifierPerm) && + Objects.equals(this.identifiers, huggingfacePackageUpload.identifiers) && + Objects.equals(this.indexed, huggingfacePackageUpload.indexed) && + Objects.equals(this.isCancellable, huggingfacePackageUpload.isCancellable) && + Objects.equals(this.isCopyable, huggingfacePackageUpload.isCopyable) && + Objects.equals(this.isDeleteable, huggingfacePackageUpload.isDeleteable) && + Objects.equals(this.isDownloadable, huggingfacePackageUpload.isDownloadable) && + Objects.equals(this.isMoveable, huggingfacePackageUpload.isMoveable) && + Objects.equals(this.isQuarantinable, huggingfacePackageUpload.isQuarantinable) && + Objects.equals(this.isQuarantined, huggingfacePackageUpload.isQuarantined) && + Objects.equals(this.isResyncable, huggingfacePackageUpload.isResyncable) && + Objects.equals(this.isSecurityScannable, huggingfacePackageUpload.isSecurityScannable) && + Objects.equals(this.isSyncAwaiting, huggingfacePackageUpload.isSyncAwaiting) && + Objects.equals(this.isSyncCompleted, huggingfacePackageUpload.isSyncCompleted) && + Objects.equals(this.isSyncFailed, huggingfacePackageUpload.isSyncFailed) && + Objects.equals(this.isSyncInFlight, huggingfacePackageUpload.isSyncInFlight) && + Objects.equals(this.isSyncInProgress, huggingfacePackageUpload.isSyncInProgress) && + Objects.equals(this.license, huggingfacePackageUpload.license) && + Objects.equals(this.name, huggingfacePackageUpload.name) && + Objects.equals(this.namespace, huggingfacePackageUpload.namespace) && + Objects.equals(this.namespaceUrl, huggingfacePackageUpload.namespaceUrl) && + Objects.equals(this.numFiles, huggingfacePackageUpload.numFiles) && + Objects.equals(this.originRepository, huggingfacePackageUpload.originRepository) && + Objects.equals(this.originRepositoryUrl, huggingfacePackageUpload.originRepositoryUrl) && + Objects.equals(this.packageType, huggingfacePackageUpload.packageType) && + Objects.equals(this.policyViolated, huggingfacePackageUpload.policyViolated) && + Objects.equals(this.release, huggingfacePackageUpload.release) && + Objects.equals(this.repository, huggingfacePackageUpload.repository) && + Objects.equals(this.repositoryUrl, huggingfacePackageUpload.repositoryUrl) && + Objects.equals(this.securityScanCompletedAt, huggingfacePackageUpload.securityScanCompletedAt) && + Objects.equals(this.securityScanStartedAt, huggingfacePackageUpload.securityScanStartedAt) && + Objects.equals(this.securityScanStatus, huggingfacePackageUpload.securityScanStatus) && + Objects.equals(this.securityScanStatusUpdatedAt, huggingfacePackageUpload.securityScanStatusUpdatedAt) && + Objects.equals(this.selfHtmlUrl, huggingfacePackageUpload.selfHtmlUrl) && + Objects.equals(this.selfUrl, huggingfacePackageUpload.selfUrl) && + Objects.equals(this.signatureUrl, huggingfacePackageUpload.signatureUrl) && + Objects.equals(this.size, huggingfacePackageUpload.size) && + Objects.equals(this.slug, huggingfacePackageUpload.slug) && + Objects.equals(this.slugPerm, huggingfacePackageUpload.slugPerm) && + Objects.equals(this.stage, huggingfacePackageUpload.stage) && + Objects.equals(this.stageStr, huggingfacePackageUpload.stageStr) && + Objects.equals(this.stageUpdatedAt, huggingfacePackageUpload.stageUpdatedAt) && + Objects.equals(this.status, huggingfacePackageUpload.status) && + Objects.equals(this.statusReason, huggingfacePackageUpload.statusReason) && + Objects.equals(this.statusStr, huggingfacePackageUpload.statusStr) && + Objects.equals(this.statusUpdatedAt, huggingfacePackageUpload.statusUpdatedAt) && + Objects.equals(this.statusUrl, huggingfacePackageUpload.statusUrl) && + Objects.equals(this.subtype, huggingfacePackageUpload.subtype) && + Objects.equals(this.summary, huggingfacePackageUpload.summary) && + Objects.equals(this.syncFinishedAt, huggingfacePackageUpload.syncFinishedAt) && + Objects.equals(this.syncProgress, huggingfacePackageUpload.syncProgress) && + Objects.equals(this.tagsImmutable, huggingfacePackageUpload.tagsImmutable) && + Objects.equals(this.typeDisplay, huggingfacePackageUpload.typeDisplay) && + Objects.equals(this.uploadedAt, huggingfacePackageUpload.uploadedAt) && + Objects.equals(this.uploader, huggingfacePackageUpload.uploader) && + Objects.equals(this.uploaderUrl, huggingfacePackageUpload.uploaderUrl) && + Objects.equals(this.version, huggingfacePackageUpload.version) && + Objects.equals(this.versionOrig, huggingfacePackageUpload.versionOrig) && + Objects.equals(this.vulnerabilityScanResultsUrl, huggingfacePackageUpload.vulnerabilityScanResultsUrl); + } + + @Override + public int hashCode() { + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, packageType, policyViolated, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, signatureUrl, size, slug, slugPerm, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HuggingfacePackageUpload {\n"); + + sb.append(" architectures: ").append(toIndentedString(architectures)).append("\n"); + sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); + sb.append(" checksumMd5: ").append(toIndentedString(checksumMd5)).append("\n"); + sb.append(" checksumSha1: ").append(toIndentedString(checksumSha1)).append("\n"); + sb.append(" checksumSha256: ").append(toIndentedString(checksumSha256)).append("\n"); + sb.append(" checksumSha512: ").append(toIndentedString(checksumSha512)).append("\n"); + sb.append(" dependenciesChecksumMd5: ").append(toIndentedString(dependenciesChecksumMd5)).append("\n"); + sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); + sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); + sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); + sb.append(" epoch: ").append(toIndentedString(epoch)).append("\n"); + sb.append(" extension: ").append(toIndentedString(extension)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" formatUrl: ").append(toIndentedString(formatUrl)).append("\n"); + sb.append(" freeableStorage: ").append(toIndentedString(freeableStorage)).append("\n"); + sb.append(" fullyQualifiedName: ").append(toIndentedString(fullyQualifiedName)).append("\n"); + sb.append(" identifierPerm: ").append(toIndentedString(identifierPerm)).append("\n"); + sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); + sb.append(" indexed: ").append(toIndentedString(indexed)).append("\n"); + sb.append(" isCancellable: ").append(toIndentedString(isCancellable)).append("\n"); + sb.append(" isCopyable: ").append(toIndentedString(isCopyable)).append("\n"); + sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); + sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); + sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); + sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); + sb.append(" isResyncable: ").append(toIndentedString(isResyncable)).append("\n"); + sb.append(" isSecurityScannable: ").append(toIndentedString(isSecurityScannable)).append("\n"); + sb.append(" isSyncAwaiting: ").append(toIndentedString(isSyncAwaiting)).append("\n"); + sb.append(" isSyncCompleted: ").append(toIndentedString(isSyncCompleted)).append("\n"); + sb.append(" isSyncFailed: ").append(toIndentedString(isSyncFailed)).append("\n"); + sb.append(" isSyncInFlight: ").append(toIndentedString(isSyncInFlight)).append("\n"); + sb.append(" isSyncInProgress: ").append(toIndentedString(isSyncInProgress)).append("\n"); + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" namespaceUrl: ").append(toIndentedString(namespaceUrl)).append("\n"); + sb.append(" numFiles: ").append(toIndentedString(numFiles)).append("\n"); + sb.append(" originRepository: ").append(toIndentedString(originRepository)).append("\n"); + sb.append(" originRepositoryUrl: ").append(toIndentedString(originRepositoryUrl)).append("\n"); + sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); + sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); + sb.append(" release: ").append(toIndentedString(release)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); + sb.append(" securityScanCompletedAt: ").append(toIndentedString(securityScanCompletedAt)).append("\n"); + sb.append(" securityScanStartedAt: ").append(toIndentedString(securityScanStartedAt)).append("\n"); + sb.append(" securityScanStatus: ").append(toIndentedString(securityScanStatus)).append("\n"); + sb.append(" securityScanStatusUpdatedAt: ").append(toIndentedString(securityScanStatusUpdatedAt)).append("\n"); + sb.append(" selfHtmlUrl: ").append(toIndentedString(selfHtmlUrl)).append("\n"); + sb.append(" selfUrl: ").append(toIndentedString(selfUrl)).append("\n"); + sb.append(" signatureUrl: ").append(toIndentedString(signatureUrl)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" stageStr: ").append(toIndentedString(stageStr)).append("\n"); + sb.append(" stageUpdatedAt: ").append(toIndentedString(stageUpdatedAt)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusReason: ").append(toIndentedString(statusReason)).append("\n"); + sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); + sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); + sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); + sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); + sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); + sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); + sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); + sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); + sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).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/HuggingfacePackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java new file mode 100644 index 00000000..2f1e3bb8 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java @@ -0,0 +1,146 @@ +/* + * 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; + +/** + * HuggingfacePackageUploadRequest + */ + +public class HuggingfacePackageUploadRequest implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("package_file") + private String packageFile = null; + + @SerializedName("republish") + private Boolean republish = null; + + @SerializedName("tags") + private String tags = null; + + public HuggingfacePackageUploadRequest packageFile(String packageFile) { + this.packageFile = packageFile; + return this; + } + + /** + * The primary file for the package. + * @return packageFile + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The primary file for the package.") + public String getPackageFile() { + return packageFile; + } + + public void setPackageFile(String packageFile) { + this.packageFile = packageFile; + } + + public HuggingfacePackageUploadRequest republish(Boolean republish) { + this.republish = republish; + return this; + } + + /** + * If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + * @return republish + **/ + @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") + public Boolean isRepublish() { + return republish; + } + + public void setRepublish(Boolean republish) { + this.republish = republish; + } + + public HuggingfacePackageUploadRequest tags(String tags) { + this.tags = tags; + return this; + } + + /** + * A comma-separated values list of tags to add to the package. + * @return tags + **/ + @Size(min=1,max=1024) @ApiModelProperty(value = "A comma-separated values list of tags to add to the package.") + public String getTags() { + return tags; + } + + public void setTags(String tags) { + this.tags = tags; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HuggingfacePackageUploadRequest huggingfacePackageUploadRequest = (HuggingfacePackageUploadRequest) o; + return Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && + Objects.equals(this.republish, huggingfacePackageUploadRequest.republish) && + Objects.equals(this.tags, huggingfacePackageUploadRequest.tags); + } + + @Override + public int hashCode() { + return Objects.hash(packageFile, republish, tags); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HuggingfacePackageUploadRequest {\n"); + + sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); + sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).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/HuggingfaceUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstream.java new file mode 100644 index 00000000..f5e9599c --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstream.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; + +/** + * HuggingfaceUpstream + */ + +public class HuggingfaceUpstream 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"), + + TOKEN("Token"); + + 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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 HuggingfaceUpstream 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; + } + HuggingfaceUpstream huggingfaceUpstream = (HuggingfaceUpstream) o; + return Objects.equals(this.authMode, huggingfaceUpstream.authMode) && + Objects.equals(this.authSecret, huggingfaceUpstream.authSecret) && + Objects.equals(this.authUsername, huggingfaceUpstream.authUsername) && + Objects.equals(this.createdAt, huggingfaceUpstream.createdAt) && + Objects.equals(this.disableReason, huggingfaceUpstream.disableReason) && + Objects.equals(this.extraHeader1, huggingfaceUpstream.extraHeader1) && + Objects.equals(this.extraHeader2, huggingfaceUpstream.extraHeader2) && + Objects.equals(this.extraValue1, huggingfaceUpstream.extraValue1) && + Objects.equals(this.extraValue2, huggingfaceUpstream.extraValue2) && + Objects.equals(this.isActive, huggingfaceUpstream.isActive) && + Objects.equals(this.mode, huggingfaceUpstream.mode) && + Objects.equals(this.name, huggingfaceUpstream.name) && + Objects.equals(this.pendingValidation, huggingfaceUpstream.pendingValidation) && + Objects.equals(this.priority, huggingfaceUpstream.priority) && + Objects.equals(this.slugPerm, huggingfaceUpstream.slugPerm) && + Objects.equals(this.updatedAt, huggingfaceUpstream.updatedAt) && + Objects.equals(this.upstreamUrl, huggingfaceUpstream.upstreamUrl) && + Objects.equals(this.verifySsl, huggingfaceUpstream.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 HuggingfaceUpstream {\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/HuggingfaceUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstreamRequest.java new file mode 100644 index 00000000..c50dca6d --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstreamRequest.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; + +/** + * HuggingfaceUpstreamRequest + */ + +public class HuggingfaceUpstreamRequest 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"), + + TOKEN("Token"); + + 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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 HuggingfaceUpstreamRequest 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; + } + HuggingfaceUpstreamRequest huggingfaceUpstreamRequest = (HuggingfaceUpstreamRequest) o; + return Objects.equals(this.authMode, huggingfaceUpstreamRequest.authMode) && + Objects.equals(this.authSecret, huggingfaceUpstreamRequest.authSecret) && + Objects.equals(this.authUsername, huggingfaceUpstreamRequest.authUsername) && + Objects.equals(this.extraHeader1, huggingfaceUpstreamRequest.extraHeader1) && + Objects.equals(this.extraHeader2, huggingfaceUpstreamRequest.extraHeader2) && + Objects.equals(this.extraValue1, huggingfaceUpstreamRequest.extraValue1) && + Objects.equals(this.extraValue2, huggingfaceUpstreamRequest.extraValue2) && + Objects.equals(this.isActive, huggingfaceUpstreamRequest.isActive) && + Objects.equals(this.mode, huggingfaceUpstreamRequest.mode) && + Objects.equals(this.name, huggingfaceUpstreamRequest.name) && + Objects.equals(this.priority, huggingfaceUpstreamRequest.priority) && + Objects.equals(this.upstreamUrl, huggingfaceUpstreamRequest.upstreamUrl) && + Objects.equals(this.verifySsl, huggingfaceUpstreamRequest.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 HuggingfaceUpstreamRequest {\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/HuggingfaceUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstreamRequestPatch.java new file mode 100644 index 00000000..805170fc --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfaceUpstreamRequestPatch.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; + +/** + * HuggingfaceUpstreamRequestPatch + */ + +public class HuggingfaceUpstreamRequestPatch 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"), + + TOKEN("Token"); + + 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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 HuggingfaceUpstreamRequestPatch 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; + } + HuggingfaceUpstreamRequestPatch huggingfaceUpstreamRequestPatch = (HuggingfaceUpstreamRequestPatch) o; + return Objects.equals(this.authMode, huggingfaceUpstreamRequestPatch.authMode) && + Objects.equals(this.authSecret, huggingfaceUpstreamRequestPatch.authSecret) && + Objects.equals(this.authUsername, huggingfaceUpstreamRequestPatch.authUsername) && + Objects.equals(this.extraHeader1, huggingfaceUpstreamRequestPatch.extraHeader1) && + Objects.equals(this.extraHeader2, huggingfaceUpstreamRequestPatch.extraHeader2) && + Objects.equals(this.extraValue1, huggingfaceUpstreamRequestPatch.extraValue1) && + Objects.equals(this.extraValue2, huggingfaceUpstreamRequestPatch.extraValue2) && + Objects.equals(this.isActive, huggingfaceUpstreamRequestPatch.isActive) && + Objects.equals(this.mode, huggingfaceUpstreamRequestPatch.mode) && + Objects.equals(this.name, huggingfaceUpstreamRequestPatch.name) && + Objects.equals(this.priority, huggingfaceUpstreamRequestPatch.priority) && + Objects.equals(this.upstreamUrl, huggingfaceUpstreamRequestPatch.upstreamUrl) && + Objects.equals(this.verifySsl, huggingfaceUpstreamRequestPatch.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 HuggingfaceUpstreamRequestPatch {\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/MavenPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java index 2fa3190c..5a7ffdd9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java @@ -1189,7 +1189,7 @@ public MavenPackageUpload version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java index decac48a..6be42ece 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java @@ -351,7 +351,7 @@ public MavenPackageUploadRequest version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettings.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettings.java index 5dc75e05..25339fdb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettings.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettings.java @@ -42,6 +42,9 @@ public class ProviderSettings implements Serializable { @SerializedName("enabled") private Boolean enabled = null; + @SerializedName("mapping_claim") + private String mappingClaim = null; + @SerializedName("name") private String name = null; @@ -49,7 +52,7 @@ public class ProviderSettings implements Serializable { private String providerUrl = null; @SerializedName("service_accounts") - private List serviceAccounts = new ArrayList<>(); + private List serviceAccounts = null; @SerializedName("slug") private String slug = null; @@ -95,6 +98,24 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } + public ProviderSettings mappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + return this; + } + + /** + * The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return mappingClaim + **/ + @Size(min=1) @ApiModelProperty(value = "The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getMappingClaim() { + return mappingClaim; + } + + public void setMappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + } + public ProviderSettings name(String name) { this.name = name; return this; @@ -139,16 +160,18 @@ public ProviderSettings serviceAccounts(List serviceAccounts) { } public ProviderSettings addServiceAccountsItem(String serviceAccountsItem) { + if (this.serviceAccounts == null) { + this.serviceAccounts = new ArrayList<>(); + } this.serviceAccounts.add(serviceAccountsItem); return this; } /** - * The service accounts associated with these provider settings + * The service accounts associated with these provider settings. * @return serviceAccounts **/ - @NotNull - @ApiModelProperty(required = true, value = "The service accounts associated with these provider settings") + @ApiModelProperty(value = "The service accounts associated with these provider settings.") public List getServiceAccounts() { return serviceAccounts; } @@ -187,6 +210,7 @@ public boolean equals(java.lang.Object o) { ProviderSettings providerSettings = (ProviderSettings) o; return Objects.equals(this.claims, providerSettings.claims) && Objects.equals(this.enabled, providerSettings.enabled) && + Objects.equals(this.mappingClaim, providerSettings.mappingClaim) && Objects.equals(this.name, providerSettings.name) && Objects.equals(this.providerUrl, providerSettings.providerUrl) && Objects.equals(this.serviceAccounts, providerSettings.serviceAccounts) && @@ -196,7 +220,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(claims, enabled, name, providerUrl, serviceAccounts, slug, slugPerm); + return Objects.hash(claims, enabled, mappingClaim, name, providerUrl, serviceAccounts, slug, slugPerm); } @@ -207,6 +231,7 @@ public String toString() { sb.append(" claims: ").append(toIndentedString(claims)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" mappingClaim: ").append(toIndentedString(mappingClaim)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" providerUrl: ").append(toIndentedString(providerUrl)).append("\n"); sb.append(" serviceAccounts: ").append(toIndentedString(serviceAccounts)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWrite.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWrite.java new file mode 100644 index 00000000..08b314b3 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWrite.java @@ -0,0 +1,289 @@ +/* + * 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.DynamicMapping; +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; + +/** + * ProviderSettingsWrite + */ + +public class ProviderSettingsWrite implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("claims") + private Object claims = null; + + @SerializedName("dynamic_mappings") + private List dynamicMappings = null; + + @SerializedName("enabled") + private Boolean enabled = null; + + @SerializedName("mapping_claim") + private String mappingClaim = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("provider_url") + private String providerUrl = null; + + @SerializedName("service_accounts") + private List serviceAccounts = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + public ProviderSettingsWrite claims(Object claims) { + this.claims = claims; + return this; + } + + /** + * The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. + * @return claims + **/ + @NotNull + @ApiModelProperty(required = true, value = "The set of claims that any received tokens from the provider must contain to authenticate as the configured service account.") + public Object getClaims() { + return claims; + } + + public void setClaims(Object claims) { + this.claims = claims; + } + + public ProviderSettingsWrite dynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + return this; + } + + public ProviderSettingsWrite addDynamicMappingsItem(DynamicMapping dynamicMappingsItem) { + if (this.dynamicMappings == null) { + this.dynamicMappings = new ArrayList<>(); + } + this.dynamicMappings.add(dynamicMappingsItem); + return this; + } + + /** + * The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return dynamicMappings + **/ + @Valid + @ApiModelProperty(value = "The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public List getDynamicMappings() { + return dynamicMappings; + } + + public void setDynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + } + + public ProviderSettingsWrite enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Whether the provider settings should be used for incoming OIDC requests. + * @return enabled + **/ + @NotNull + @ApiModelProperty(required = true, value = "Whether the provider settings should be used for incoming OIDC requests.") + public Boolean isEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public ProviderSettingsWrite mappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + return this; + } + + /** + * The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return mappingClaim + **/ + @Size(min=1) @ApiModelProperty(value = "The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getMappingClaim() { + return mappingClaim; + } + + public void setMappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + } + + public ProviderSettingsWrite name(String name) { + this.name = name; + return this; + } + + /** + * The name of the provider settings are being configured for + * @return name + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The name of the provider settings are being configured for") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProviderSettingsWrite providerUrl(String providerUrl) { + this.providerUrl = providerUrl; + return this; + } + + /** + * The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ + * @return providerUrl + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/") + public String getProviderUrl() { + return providerUrl; + } + + public void setProviderUrl(String providerUrl) { + this.providerUrl = providerUrl; + } + + public ProviderSettingsWrite serviceAccounts(List serviceAccounts) { + this.serviceAccounts = serviceAccounts; + return this; + } + + public ProviderSettingsWrite addServiceAccountsItem(String serviceAccountsItem) { + if (this.serviceAccounts == null) { + this.serviceAccounts = new ArrayList<>(); + } + this.serviceAccounts.add(serviceAccountsItem); + return this; + } + + /** + * The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. + * @return serviceAccounts + **/ + @ApiModelProperty(value = "The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified.") + public List getServiceAccounts() { + return serviceAccounts; + } + + public void setServiceAccounts(List serviceAccounts) { + this.serviceAccounts = serviceAccounts; + } + + /** + * The slug of the provider settings + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The slug of the provider settings") + public String getSlug() { + return slug; + } + + /** + * The unique, immutable identifier of the provider settings. + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The unique, immutable identifier of the provider settings.") + public String getSlugPerm() { + return slugPerm; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProviderSettingsWrite providerSettingsWrite = (ProviderSettingsWrite) o; + return Objects.equals(this.claims, providerSettingsWrite.claims) && + Objects.equals(this.dynamicMappings, providerSettingsWrite.dynamicMappings) && + Objects.equals(this.enabled, providerSettingsWrite.enabled) && + Objects.equals(this.mappingClaim, providerSettingsWrite.mappingClaim) && + Objects.equals(this.name, providerSettingsWrite.name) && + Objects.equals(this.providerUrl, providerSettingsWrite.providerUrl) && + Objects.equals(this.serviceAccounts, providerSettingsWrite.serviceAccounts) && + Objects.equals(this.slug, providerSettingsWrite.slug) && + Objects.equals(this.slugPerm, providerSettingsWrite.slugPerm); + } + + @Override + public int hashCode() { + return Objects.hash(claims, dynamicMappings, enabled, mappingClaim, name, providerUrl, serviceAccounts, slug, slugPerm); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProviderSettingsWrite {\n"); + + sb.append(" claims: ").append(toIndentedString(claims)).append("\n"); + sb.append(" dynamicMappings: ").append(toIndentedString(dynamicMappings)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" mappingClaim: ").append(toIndentedString(mappingClaim)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" providerUrl: ").append(toIndentedString(providerUrl)).append("\n"); + sb.append(" serviceAccounts: ").append(toIndentedString(serviceAccounts)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).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/ProviderSettingsRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequest.java similarity index 52% rename from bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsRequest.java rename to bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequest.java index 074553fd..e42f80ef 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequest.java @@ -20,6 +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.DynamicMapping; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -30,18 +31,24 @@ import javax.validation.Valid; /** - * ProviderSettingsRequest + * ProviderSettingsWriteRequest */ -public class ProviderSettingsRequest implements Serializable { +public class ProviderSettingsWriteRequest implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("claims") private Object claims = null; + @SerializedName("dynamic_mappings") + private List dynamicMappings = null; + @SerializedName("enabled") private Boolean enabled = null; + @SerializedName("mapping_claim") + private String mappingClaim = null; + @SerializedName("name") private String name = null; @@ -49,9 +56,9 @@ public class ProviderSettingsRequest implements Serializable { private String providerUrl = null; @SerializedName("service_accounts") - private List serviceAccounts = new ArrayList<>(); + private List serviceAccounts = null; - public ProviderSettingsRequest claims(Object claims) { + public ProviderSettingsWriteRequest claims(Object claims) { this.claims = claims; return this; } @@ -70,7 +77,34 @@ public void setClaims(Object claims) { this.claims = claims; } - public ProviderSettingsRequest enabled(Boolean enabled) { + public ProviderSettingsWriteRequest dynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + return this; + } + + public ProviderSettingsWriteRequest addDynamicMappingsItem(DynamicMapping dynamicMappingsItem) { + if (this.dynamicMappings == null) { + this.dynamicMappings = new ArrayList<>(); + } + this.dynamicMappings.add(dynamicMappingsItem); + return this; + } + + /** + * The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return dynamicMappings + **/ + @Valid + @ApiModelProperty(value = "The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public List getDynamicMappings() { + return dynamicMappings; + } + + public void setDynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + } + + public ProviderSettingsWriteRequest enabled(Boolean enabled) { this.enabled = enabled; return this; } @@ -89,7 +123,25 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public ProviderSettingsRequest name(String name) { + public ProviderSettingsWriteRequest mappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + return this; + } + + /** + * The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return mappingClaim + **/ + @Size(min=1) @ApiModelProperty(value = "The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getMappingClaim() { + return mappingClaim; + } + + public void setMappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + } + + public ProviderSettingsWriteRequest name(String name) { this.name = name; return this; } @@ -108,7 +160,7 @@ public void setName(String name) { this.name = name; } - public ProviderSettingsRequest providerUrl(String providerUrl) { + public ProviderSettingsWriteRequest providerUrl(String providerUrl) { this.providerUrl = providerUrl; return this; } @@ -127,22 +179,24 @@ public void setProviderUrl(String providerUrl) { this.providerUrl = providerUrl; } - public ProviderSettingsRequest serviceAccounts(List serviceAccounts) { + public ProviderSettingsWriteRequest serviceAccounts(List serviceAccounts) { this.serviceAccounts = serviceAccounts; return this; } - public ProviderSettingsRequest addServiceAccountsItem(String serviceAccountsItem) { + public ProviderSettingsWriteRequest addServiceAccountsItem(String serviceAccountsItem) { + if (this.serviceAccounts == null) { + this.serviceAccounts = new ArrayList<>(); + } this.serviceAccounts.add(serviceAccountsItem); return this; } /** - * The service accounts associated with these provider settings + * The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. * @return serviceAccounts **/ - @NotNull - @ApiModelProperty(required = true, value = "The service accounts associated with these provider settings") + @ApiModelProperty(value = "The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified.") public List getServiceAccounts() { return serviceAccounts; } @@ -160,27 +214,31 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProviderSettingsRequest providerSettingsRequest = (ProviderSettingsRequest) o; - return Objects.equals(this.claims, providerSettingsRequest.claims) && - Objects.equals(this.enabled, providerSettingsRequest.enabled) && - Objects.equals(this.name, providerSettingsRequest.name) && - Objects.equals(this.providerUrl, providerSettingsRequest.providerUrl) && - Objects.equals(this.serviceAccounts, providerSettingsRequest.serviceAccounts); + ProviderSettingsWriteRequest providerSettingsWriteRequest = (ProviderSettingsWriteRequest) o; + return Objects.equals(this.claims, providerSettingsWriteRequest.claims) && + Objects.equals(this.dynamicMappings, providerSettingsWriteRequest.dynamicMappings) && + Objects.equals(this.enabled, providerSettingsWriteRequest.enabled) && + Objects.equals(this.mappingClaim, providerSettingsWriteRequest.mappingClaim) && + Objects.equals(this.name, providerSettingsWriteRequest.name) && + Objects.equals(this.providerUrl, providerSettingsWriteRequest.providerUrl) && + Objects.equals(this.serviceAccounts, providerSettingsWriteRequest.serviceAccounts); } @Override public int hashCode() { - return Objects.hash(claims, enabled, name, providerUrl, serviceAccounts); + return Objects.hash(claims, dynamicMappings, enabled, mappingClaim, name, providerUrl, serviceAccounts); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProviderSettingsRequest {\n"); + sb.append("class ProviderSettingsWriteRequest {\n"); sb.append(" claims: ").append(toIndentedString(claims)).append("\n"); + sb.append(" dynamicMappings: ").append(toIndentedString(dynamicMappings)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" mappingClaim: ").append(toIndentedString(mappingClaim)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" providerUrl: ").append(toIndentedString(providerUrl)).append("\n"); sb.append(" serviceAccounts: ").append(toIndentedString(serviceAccounts)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequestPatch.java similarity index 53% rename from bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsRequestPatch.java rename to bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequestPatch.java index 4ffadffb..4e3686a6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ProviderSettingsWriteRequestPatch.java @@ -20,6 +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.DynamicMapping; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -30,18 +31,24 @@ import javax.validation.Valid; /** - * ProviderSettingsRequestPatch + * ProviderSettingsWriteRequestPatch */ -public class ProviderSettingsRequestPatch implements Serializable { +public class ProviderSettingsWriteRequestPatch implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("claims") private Object claims = null; + @SerializedName("dynamic_mappings") + private List dynamicMappings = null; + @SerializedName("enabled") private Boolean enabled = null; + @SerializedName("mapping_claim") + private String mappingClaim = null; + @SerializedName("name") private String name = null; @@ -51,7 +58,7 @@ public class ProviderSettingsRequestPatch implements Serializable { @SerializedName("service_accounts") private List serviceAccounts = null; - public ProviderSettingsRequestPatch claims(Object claims) { + public ProviderSettingsWriteRequestPatch claims(Object claims) { this.claims = claims; return this; } @@ -69,7 +76,34 @@ public void setClaims(Object claims) { this.claims = claims; } - public ProviderSettingsRequestPatch enabled(Boolean enabled) { + public ProviderSettingsWriteRequestPatch dynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + return this; + } + + public ProviderSettingsWriteRequestPatch addDynamicMappingsItem(DynamicMapping dynamicMappingsItem) { + if (this.dynamicMappings == null) { + this.dynamicMappings = new ArrayList<>(); + } + this.dynamicMappings.add(dynamicMappingsItem); + return this; + } + + /** + * The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return dynamicMappings + **/ + @Valid + @ApiModelProperty(value = "The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public List getDynamicMappings() { + return dynamicMappings; + } + + public void setDynamicMappings(List dynamicMappings) { + this.dynamicMappings = dynamicMappings; + } + + public ProviderSettingsWriteRequestPatch enabled(Boolean enabled) { this.enabled = enabled; return this; } @@ -87,7 +121,25 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public ProviderSettingsRequestPatch name(String name) { + public ProviderSettingsWriteRequestPatch mappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + return this; + } + + /** + * The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + * @return mappingClaim + **/ + @Size(min=1) @ApiModelProperty(value = "The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature.") + public String getMappingClaim() { + return mappingClaim; + } + + public void setMappingClaim(String mappingClaim) { + this.mappingClaim = mappingClaim; + } + + public ProviderSettingsWriteRequestPatch name(String name) { this.name = name; return this; } @@ -105,7 +157,7 @@ public void setName(String name) { this.name = name; } - public ProviderSettingsRequestPatch providerUrl(String providerUrl) { + public ProviderSettingsWriteRequestPatch providerUrl(String providerUrl) { this.providerUrl = providerUrl; return this; } @@ -123,12 +175,12 @@ public void setProviderUrl(String providerUrl) { this.providerUrl = providerUrl; } - public ProviderSettingsRequestPatch serviceAccounts(List serviceAccounts) { + public ProviderSettingsWriteRequestPatch serviceAccounts(List serviceAccounts) { this.serviceAccounts = serviceAccounts; return this; } - public ProviderSettingsRequestPatch addServiceAccountsItem(String serviceAccountsItem) { + public ProviderSettingsWriteRequestPatch addServiceAccountsItem(String serviceAccountsItem) { if (this.serviceAccounts == null) { this.serviceAccounts = new ArrayList<>(); } @@ -137,10 +189,10 @@ public ProviderSettingsRequestPatch addServiceAccountsItem(String serviceAccount } /** - * The service accounts associated with these provider settings + * The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. * @return serviceAccounts **/ - @ApiModelProperty(value = "The service accounts associated with these provider settings") + @ApiModelProperty(value = "The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified.") public List getServiceAccounts() { return serviceAccounts; } @@ -158,27 +210,31 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProviderSettingsRequestPatch providerSettingsRequestPatch = (ProviderSettingsRequestPatch) o; - return Objects.equals(this.claims, providerSettingsRequestPatch.claims) && - Objects.equals(this.enabled, providerSettingsRequestPatch.enabled) && - Objects.equals(this.name, providerSettingsRequestPatch.name) && - Objects.equals(this.providerUrl, providerSettingsRequestPatch.providerUrl) && - Objects.equals(this.serviceAccounts, providerSettingsRequestPatch.serviceAccounts); + ProviderSettingsWriteRequestPatch providerSettingsWriteRequestPatch = (ProviderSettingsWriteRequestPatch) o; + return Objects.equals(this.claims, providerSettingsWriteRequestPatch.claims) && + Objects.equals(this.dynamicMappings, providerSettingsWriteRequestPatch.dynamicMappings) && + Objects.equals(this.enabled, providerSettingsWriteRequestPatch.enabled) && + Objects.equals(this.mappingClaim, providerSettingsWriteRequestPatch.mappingClaim) && + Objects.equals(this.name, providerSettingsWriteRequestPatch.name) && + Objects.equals(this.providerUrl, providerSettingsWriteRequestPatch.providerUrl) && + Objects.equals(this.serviceAccounts, providerSettingsWriteRequestPatch.serviceAccounts); } @Override public int hashCode() { - return Objects.hash(claims, enabled, name, providerUrl, serviceAccounts); + return Objects.hash(claims, dynamicMappings, enabled, mappingClaim, name, providerUrl, serviceAccounts); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProviderSettingsRequestPatch {\n"); + sb.append("class ProviderSettingsWriteRequestPatch {\n"); sb.append(" claims: ").append(toIndentedString(claims)).append("\n"); + sb.append(" dynamicMappings: ").append(toIndentedString(dynamicMappings)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" mappingClaim: ").append(toIndentedString(mappingClaim)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" providerUrl: ").append(toIndentedString(providerUrl)).append("\n"); sb.append(" serviceAccounts: ").append(toIndentedString(serviceAccounts)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java index 032c273c..d8b79c43 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java @@ -1111,7 +1111,7 @@ public RawPackageUpload version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java index 04b835af..103741c1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java @@ -194,7 +194,7 @@ public RawPackageUploadRequest version(String version) { * The raw version for this package. * @return version **/ - @Size(max=128) @ApiModelProperty(value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(value = "The raw version for this package.") public String getVersion() { return version; } 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 992ce44e..ee9fb2af 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.736.13"; + private String version = "1.783.2"; /** * The message describing the state of the API. diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java index d79bfff8..1f4b58c9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUpload.java @@ -1210,7 +1210,7 @@ public SwiftPackageUpload version(String version) { * @return version **/ @NotNull - @Size(max=128) @ApiModelProperty(required = true, value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(required = true, value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java index 824a8daa..46676d8e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java @@ -260,7 +260,7 @@ public SwiftPackageUploadRequest version(String version) { * @return version **/ @NotNull - @Size(max=128) @ApiModelProperty(required = true, value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(required = true, value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java index 84b43bf1..407390f6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java @@ -1117,7 +1117,7 @@ public VagrantPackageUpload version(String version) { * @return version **/ @NotNull - @Size(max=128) @ApiModelProperty(required = true, value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(required = true, value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java index 73909a24..b8f85943 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java @@ -155,7 +155,7 @@ public VagrantPackageUploadRequest version(String version) { * @return version **/ @NotNull - @Size(max=128) @ApiModelProperty(required = true, value = "The raw version for this package.") + @Size(max=255) @ApiModelProperty(required = true, value = "The raw version for this package.") public String getVersion() { return version; } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java index df44c9fe..18012e36 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java @@ -13,6 +13,7 @@ package io.cloudsmith.api.apis; +import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; import io.cloudsmith.api.models.Organization; import io.cloudsmith.api.models.OrganizationGroupSync; @@ -50,8 +51,9 @@ import io.cloudsmith.api.models.PackageVulnerabilityPolicyEvaluationRequestRequest; import io.cloudsmith.api.models.PackageVulnerabilityPolicyViolationLogCursorPage; import io.cloudsmith.api.models.ProviderSettings; -import io.cloudsmith.api.models.ProviderSettingsRequest; -import io.cloudsmith.api.models.ProviderSettingsRequestPatch; +import io.cloudsmith.api.models.ProviderSettingsWrite; +import io.cloudsmith.api.models.ProviderSettingsWriteRequest; +import io.cloudsmith.api.models.ProviderSettingsWriteRequestPatch; import io.cloudsmith.api.models.Service; import io.cloudsmith.api.models.ServiceRequest; import io.cloudsmith.api.models.ServiceRequestPatch; @@ -647,8 +649,8 @@ public void orgsMembersUpdateVisibilityTest() throws Exception { @Test public void orgsOpenidConnectCreateTest() throws Exception { String org = null; - ProviderSettingsRequest data = null; - ProviderSettings response = api.orgsOpenidConnectCreate(org, data); + ProviderSettingsWriteRequest data = null; + ProviderSettingsWrite response = api.orgsOpenidConnectCreate(org, data); // TODO: test validations } @@ -670,6 +672,43 @@ public void orgsOpenidConnectDeleteTest() throws Exception { // TODO: test validations } + /** + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * + * Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsOpenidConnectDynamicMappingsListTest() throws Exception { + String org = null; + String providerSetting = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.orgsOpenidConnectDynamicMappingsList(org, providerSetting, page, pageSize); + + // TODO: test validations + } + + /** + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * + * Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsOpenidConnectDynamicMappingsReadTest() throws Exception { + String org = null; + String providerSetting = null; + String claimValue = null; + DynamicMapping response = api.orgsOpenidConnectDynamicMappingsRead(org, providerSetting, claimValue); + + // TODO: test validations + } + /** * Retrieve the list of OpenID Connect provider settings for the org. * @@ -702,8 +741,8 @@ public void orgsOpenidConnectListTest() throws Exception { public void orgsOpenidConnectPartialUpdateTest() throws Exception { String org = null; String slugPerm = null; - ProviderSettingsRequestPatch data = null; - ProviderSettings response = api.orgsOpenidConnectPartialUpdate(org, slugPerm, data); + ProviderSettingsWriteRequestPatch data = null; + ProviderSettingsWrite response = api.orgsOpenidConnectPartialUpdate(org, slugPerm, data); // TODO: test validations } @@ -737,8 +776,8 @@ public void orgsOpenidConnectReadTest() throws Exception { public void orgsOpenidConnectUpdateTest() throws Exception { String org = null; String slugPerm = null; - ProviderSettingsRequest data = null; - ProviderSettings response = api.orgsOpenidConnectUpdate(org, slugPerm, data); + ProviderSettingsWriteRequest data = null; + ProviderSettingsWrite response = api.orgsOpenidConnectUpdate(org, slugPerm, data); // TODO: test validations } 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 d6825ed0..2c21f2aa 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,8 @@ import io.cloudsmith.api.models.HelmPackageUploadRequest; import io.cloudsmith.api.models.HexPackageUpload; import io.cloudsmith.api.models.HexPackageUploadRequest; +import io.cloudsmith.api.models.HuggingfacePackageUpload; +import io.cloudsmith.api.models.HuggingfacePackageUploadRequest; import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; @@ -164,9 +166,10 @@ public void packagesGroupsListTest() throws Exception { java.math.BigInteger page = null; java.math.BigInteger pageSize = null; String groupBy = null; + Boolean hideSubcomponents = null; String query = null; String sort = null; - InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, query, sort); + InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, hideSubcomponents, query, sort); // TODO: test validations } @@ -555,6 +558,24 @@ public void packagesUploadHexTest() throws Exception { // TODO: test validations } + /** + * Create a new Hugging Face package + * + * Create a new Hugging Face package + * + * @throws Exception + * if the Api call fails + */ + @Test + public void packagesUploadHuggingfaceTest() throws Exception { + String owner = null; + String repo = null; + HuggingfacePackageUploadRequest data = null; + HuggingfacePackageUpload response = api.packagesUploadHuggingface(owner, repo, data); + + // TODO: test validations + } + /** * Create a new LuaRocks package * @@ -1005,6 +1026,24 @@ public void packagesValidateUploadHexTest() throws Exception { // TODO: test validations } + /** + * Validate parameters for create Hugging Face package + * + * Validate parameters for create Hugging Face package + * + * @throws Exception + * if the Api call fails + */ + @Test + public void packagesValidateUploadHuggingfaceTest() throws Exception { + String owner = null; + String repo = null; + HuggingfacePackageUploadRequest data = null; + api.packagesValidateUploadHuggingface(owner, repo, data); + + // TODO: test validations + } + /** * Validate parameters for create LuaRocks package * 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 d3a6aff4..be88fc68 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 @@ -19,6 +19,9 @@ import io.cloudsmith.api.models.ComposerUpstream; import io.cloudsmith.api.models.ComposerUpstreamRequest; import io.cloudsmith.api.models.ComposerUpstreamRequestPatch; +import io.cloudsmith.api.models.CondaUpstream; +import io.cloudsmith.api.models.CondaUpstreamRequest; +import io.cloudsmith.api.models.CondaUpstreamRequestPatch; import io.cloudsmith.api.models.CranUpstream; import io.cloudsmith.api.models.CranUpstreamRequest; import io.cloudsmith.api.models.CranUpstreamRequestPatch; @@ -41,6 +44,9 @@ import io.cloudsmith.api.models.HexUpstream; import io.cloudsmith.api.models.HexUpstreamRequest; import io.cloudsmith.api.models.HexUpstreamRequestPatch; +import io.cloudsmith.api.models.HuggingfaceUpstream; +import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; +import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; @@ -802,6 +808,117 @@ public void reposUpstreamComposerUpdateTest() throws Exception { // TODO: test validations } + /** + * Create a Conda upstream config for this repository. + * + * Create a Conda upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaCreateTest() throws Exception { + String owner = null; + String identifier = null; + CondaUpstreamRequest data = null; + CondaUpstream response = api.reposUpstreamCondaCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a Conda upstream config for this repository. + * + * Delete a Conda upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposUpstreamCondaDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List Conda upstream configs for this repository. + * + * List Conda upstream configs for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.reposUpstreamCondaList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a Conda upstream config for this repository. + * + * Partially update a Conda upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaPartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CondaUpstreamRequestPatch data = null; + CondaUpstream response = api.reposUpstreamCondaPartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a Conda upstream config for this repository. + * + * Retrieve a Conda upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CondaUpstream response = api.reposUpstreamCondaRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a Conda upstream config for this repository. + * + * Update a Conda upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCondaUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CondaUpstreamRequest data = null; + CondaUpstream response = api.reposUpstreamCondaUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a CRAN upstream config for this repository. * @@ -1579,6 +1696,117 @@ public void reposUpstreamHexUpdateTest() throws Exception { // TODO: test validations } + /** + * Create a Hugging Face upstream config for this repository. + * + * Create a Hugging Face upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfaceCreateTest() throws Exception { + String owner = null; + String identifier = null; + HuggingfaceUpstreamRequest data = null; + HuggingfaceUpstream response = api.reposUpstreamHuggingfaceCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a Hugging Face upstream config for this repository. + * + * Delete a Hugging Face upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfaceDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposUpstreamHuggingfaceDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List Hugging Face upstream configs for this repository. + * + * List Hugging Face upstream configs for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfaceListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.reposUpstreamHuggingfaceList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a Hugging Face upstream config for this repository. + * + * Partially update a Hugging Face upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfacePartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + HuggingfaceUpstreamRequestPatch data = null; + HuggingfaceUpstream response = api.reposUpstreamHuggingfacePartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a Hugging Face upstream config for this repository. + * + * Retrieve a Hugging Face upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfaceReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + HuggingfaceUpstream response = api.reposUpstreamHuggingfaceRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a Hugging Face upstream config for this repository. + * + * Update a Hugging Face upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamHuggingfaceUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + HuggingfaceUpstreamRequest data = null; + HuggingfaceUpstream response = api.reposUpstreamHuggingfaceUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a Maven upstream config for this repository. * diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index af0f6d97..6725487d 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -6,7 +6,7 @@ This Python package is automatically generated by the [Swagger Codegen](https:// - API version: v1 - Package version: 2.0.21 - Build package: io.swagger.codegen.languages.PythonClientCodegen -For more information, please visit [https://docs.cloudsmith.com](https://docs.cloudsmith.com) +For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) ## Requirements. @@ -145,6 +145,8 @@ Class | Method | HTTP request | Description *OrgsApi* | [**orgs_members_update_visibility**](docs/OrgsApi.md#orgs_members_update_visibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. *OrgsApi* | [**orgs_openid_connect_create**](docs/OrgsApi.md#orgs_openid_connect_create) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. *OrgsApi* | [**orgs_openid_connect_delete**](docs/OrgsApi.md#orgs_openid_connect_delete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +*OrgsApi* | [**orgs_openid_connect_dynamic_mappings_list**](docs/OrgsApi.md#orgs_openid_connect_dynamic_mappings_list) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +*OrgsApi* | [**orgs_openid_connect_dynamic_mappings_read**](docs/OrgsApi.md#orgs_openid_connect_dynamic_mappings_read) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. *OrgsApi* | [**orgs_openid_connect_list**](docs/OrgsApi.md#orgs_openid_connect_list) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. *OrgsApi* | [**orgs_openid_connect_partial_update**](docs/OrgsApi.md#orgs_openid_connect_partial_update) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *OrgsApi* | [**orgs_openid_connect_read**](docs/OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -207,6 +209,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packages_upload_go**](docs/PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package *PackagesApi* | [**packages_upload_helm**](docs/PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package *PackagesApi* | [**packages_upload_hex**](docs/PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +*PackagesApi* | [**packages_upload_huggingface**](docs/PackagesApi.md#packages_upload_huggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package *PackagesApi* | [**packages_upload_luarocks**](docs/PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *PackagesApi* | [**packages_upload_maven**](docs/PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *PackagesApi* | [**packages_upload_npm**](docs/PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -232,6 +235,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packages_validate_upload_go**](docs/PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package *PackagesApi* | [**packages_validate_upload_helm**](docs/PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package *PackagesApi* | [**packages_validate_upload_hex**](docs/PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +*PackagesApi* | [**packages_validate_upload_huggingface**](docs/PackagesApi.md#packages_validate_upload_huggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package *PackagesApi* | [**packages_validate_upload_luarocks**](docs/PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *PackagesApi* | [**packages_validate_upload_maven**](docs/PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *PackagesApi* | [**packages_validate_upload_npm**](docs/PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -288,6 +292,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_upstream_composer_partial_update**](docs/ReposApi.md#repos_upstream_composer_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. *ReposApi* | [**repos_upstream_composer_read**](docs/ReposApi.md#repos_upstream_composer_read) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. *ReposApi* | [**repos_upstream_composer_update**](docs/ReposApi.md#repos_upstream_composer_update) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +*ReposApi* | [**repos_upstream_conda_create**](docs/ReposApi.md#repos_upstream_conda_create) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +*ReposApi* | [**repos_upstream_conda_delete**](docs/ReposApi.md#repos_upstream_conda_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +*ReposApi* | [**repos_upstream_conda_list**](docs/ReposApi.md#repos_upstream_conda_list) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +*ReposApi* | [**repos_upstream_conda_partial_update**](docs/ReposApi.md#repos_upstream_conda_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +*ReposApi* | [**repos_upstream_conda_read**](docs/ReposApi.md#repos_upstream_conda_read) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +*ReposApi* | [**repos_upstream_conda_update**](docs/ReposApi.md#repos_upstream_conda_update) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. *ReposApi* | [**repos_upstream_cran_create**](docs/ReposApi.md#repos_upstream_cran_create) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. *ReposApi* | [**repos_upstream_cran_delete**](docs/ReposApi.md#repos_upstream_cran_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. *ReposApi* | [**repos_upstream_cran_list**](docs/ReposApi.md#repos_upstream_cran_list) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -330,6 +340,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_upstream_hex_partial_update**](docs/ReposApi.md#repos_upstream_hex_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. *ReposApi* | [**repos_upstream_hex_read**](docs/ReposApi.md#repos_upstream_hex_read) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. *ReposApi* | [**repos_upstream_hex_update**](docs/ReposApi.md#repos_upstream_hex_update) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +*ReposApi* | [**repos_upstream_huggingface_create**](docs/ReposApi.md#repos_upstream_huggingface_create) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +*ReposApi* | [**repos_upstream_huggingface_delete**](docs/ReposApi.md#repos_upstream_huggingface_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +*ReposApi* | [**repos_upstream_huggingface_list**](docs/ReposApi.md#repos_upstream_huggingface_list) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +*ReposApi* | [**repos_upstream_huggingface_partial_update**](docs/ReposApi.md#repos_upstream_huggingface_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +*ReposApi* | [**repos_upstream_huggingface_read**](docs/ReposApi.md#repos_upstream_huggingface_read) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +*ReposApi* | [**repos_upstream_huggingface_update**](docs/ReposApi.md#repos_upstream_huggingface_update) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. *ReposApi* | [**repos_upstream_maven_create**](docs/ReposApi.md#repos_upstream_maven_create) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. *ReposApi* | [**repos_upstream_maven_delete**](docs/ReposApi.md#repos_upstream_maven_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. *ReposApi* | [**repos_upstream_maven_list**](docs/ReposApi.md#repos_upstream_maven_list) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -423,6 +439,9 @@ Class | Method | HTTP request | Description - [ConanPackageUploadRequest](docs/ConanPackageUploadRequest.md) - [CondaPackageUpload](docs/CondaPackageUpload.md) - [CondaPackageUploadRequest](docs/CondaPackageUploadRequest.md) + - [CondaUpstream](docs/CondaUpstream.md) + - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) + - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -446,6 +465,7 @@ Class | Method | HTTP request | Description - [DockerUpstream](docs/DockerUpstream.md) - [DockerUpstreamRequest](docs/DockerUpstreamRequest.md) - [DockerUpstreamRequestPatch](docs/DockerUpstreamRequestPatch.md) + - [DynamicMapping](docs/DynamicMapping.md) - [EntitlementUsageMetrics](docs/EntitlementUsageMetrics.md) - [ErrorDetail](docs/ErrorDetail.md) - [Eula](docs/Eula.md) @@ -471,6 +491,11 @@ Class | Method | HTTP request | Description - [History](docs/History.md) - [HistoryFieldset](docs/HistoryFieldset.md) - [HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) + - [HuggingfacePackageUpload](docs/HuggingfacePackageUpload.md) + - [HuggingfacePackageUploadRequest](docs/HuggingfacePackageUploadRequest.md) + - [HuggingfaceUpstream](docs/HuggingfaceUpstream.md) + - [HuggingfaceUpstreamRequest](docs/HuggingfaceUpstreamRequest.md) + - [HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) @@ -559,8 +584,9 @@ Class | Method | HTTP request | Description - [PackageVulnerabilityPolicyViolationLog](docs/PackageVulnerabilityPolicyViolationLog.md) - [PackageVulnerabilityPolicyViolationLogCursorPage](docs/PackageVulnerabilityPolicyViolationLogCursorPage.md) - [ProviderSettings](docs/ProviderSettings.md) - - [ProviderSettingsRequest](docs/ProviderSettingsRequest.md) - - [ProviderSettingsRequestPatch](docs/ProviderSettingsRequestPatch.md) + - [ProviderSettingsWrite](docs/ProviderSettingsWrite.md) + - [ProviderSettingsWriteRequest](docs/ProviderSettingsWriteRequest.md) + - [ProviderSettingsWriteRequestPatch](docs/ProviderSettingsWriteRequestPatch.md) - [PythonPackageUpload](docs/PythonPackageUpload.md) - [PythonPackageUploadRequest](docs/PythonPackageUploadRequest.md) - [PythonUpstream](docs/PythonUpstream.md) diff --git a/bindings/python/src/cloudsmith_api/__init__.py b/bindings/python/src/cloudsmith_api/__init__.py index 06723c70..cd03fbfb 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -66,6 +66,9 @@ from cloudsmith_api.models.conan_package_upload_request import ConanPackageUploadRequest from cloudsmith_api.models.conda_package_upload import CondaPackageUpload from cloudsmith_api.models.conda_package_upload_request import CondaPackageUploadRequest +from cloudsmith_api.models.conda_upstream import CondaUpstream +from cloudsmith_api.models.conda_upstream_request import CondaUpstreamRequest +from cloudsmith_api.models.conda_upstream_request_patch import CondaUpstreamRequestPatch from cloudsmith_api.models.cran_package_upload import CranPackageUpload from cloudsmith_api.models.cran_package_upload_request import CranPackageUploadRequest from cloudsmith_api.models.cran_upstream import CranUpstream @@ -89,6 +92,7 @@ from cloudsmith_api.models.docker_upstream import DockerUpstream from cloudsmith_api.models.docker_upstream_request import DockerUpstreamRequest from cloudsmith_api.models.docker_upstream_request_patch import DockerUpstreamRequestPatch +from cloudsmith_api.models.dynamic_mapping import DynamicMapping from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics from cloudsmith_api.models.error_detail import ErrorDetail from cloudsmith_api.models.eula import Eula @@ -114,6 +118,11 @@ from cloudsmith_api.models.history import History from cloudsmith_api.models.history_fieldset import HistoryFieldset from cloudsmith_api.models.history_fieldset_raw import HistoryFieldsetRaw +from cloudsmith_api.models.huggingface_package_upload import HuggingfacePackageUpload +from cloudsmith_api.models.huggingface_package_upload_request import HuggingfacePackageUploadRequest +from cloudsmith_api.models.huggingface_upstream import HuggingfaceUpstream +from cloudsmith_api.models.huggingface_upstream_request import HuggingfaceUpstreamRequest +from cloudsmith_api.models.huggingface_upstream_request_patch import HuggingfaceUpstreamRequestPatch 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 @@ -202,8 +211,9 @@ from cloudsmith_api.models.package_vulnerability_policy_violation_log import PackageVulnerabilityPolicyViolationLog from cloudsmith_api.models.package_vulnerability_policy_violation_log_cursor_page import PackageVulnerabilityPolicyViolationLogCursorPage from cloudsmith_api.models.provider_settings import ProviderSettings -from cloudsmith_api.models.provider_settings_request import ProviderSettingsRequest -from cloudsmith_api.models.provider_settings_request_patch import ProviderSettingsRequestPatch +from cloudsmith_api.models.provider_settings_write import ProviderSettingsWrite +from cloudsmith_api.models.provider_settings_write_request import ProviderSettingsWriteRequest +from cloudsmith_api.models.provider_settings_write_request_patch import ProviderSettingsWriteRequestPatch from cloudsmith_api.models.python_package_upload import PythonPackageUpload from cloudsmith_api.models.python_package_upload_request import PythonPackageUploadRequest from cloudsmith_api.models.python_upstream import PythonUpstream diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py index 36e0a145..3ba16159 100644 --- a/bindings/python/src/cloudsmith_api/api/orgs_api.py +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -3504,8 +3504,8 @@ def orgs_openid_connect_create(self, org, **kwargs): # noqa: E501 :param async_req bool :param str org: (required) - :param ProviderSettingsRequest data: - :return: ProviderSettings + :param ProviderSettingsWriteRequest data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -3527,8 +3527,8 @@ def orgs_openid_connect_create_with_http_info(self, org, **kwargs): # noqa: E50 :param async_req bool :param str org: (required) - :param ProviderSettingsRequest data: - :return: ProviderSettings + :param ProviderSettingsWriteRequest data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -3588,7 +3588,7 @@ def orgs_openid_connect_create_with_http_info(self, org, **kwargs): # noqa: E50 body=body_params, post_params=form_params, files=local_var_files, - response_type='ProviderSettings', # noqa: E501 + response_type='ProviderSettingsWrite', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3703,6 +3703,236 @@ def orgs_openid_connect_delete_with_http_info(self, org, slug_perm, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def orgs_openid_connect_dynamic_mappings_list(self, org, provider_setting, **kwargs): # noqa: E501 + """Retrieve the list of OpenID Connect dynamic mappings for the provider setting. # noqa: E501 + + Retrieve the list of OpenID Connect dynamic mappings for the provider setting. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_openid_connect_dynamic_mappings_list(org, provider_setting, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str provider_setting: (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[DynamicMapping] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_openid_connect_dynamic_mappings_list_with_http_info(org, provider_setting, **kwargs) # noqa: E501 + else: + (data) = self.orgs_openid_connect_dynamic_mappings_list_with_http_info(org, provider_setting, **kwargs) # noqa: E501 + return data + + def orgs_openid_connect_dynamic_mappings_list_with_http_info(self, org, provider_setting, **kwargs): # noqa: E501 + """Retrieve the list of OpenID Connect dynamic mappings for the provider setting. # noqa: E501 + + Retrieve the list of OpenID Connect dynamic mappings for the provider setting. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_openid_connect_dynamic_mappings_list_with_http_info(org, provider_setting, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str provider_setting: (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[DynamicMapping] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'provider_setting', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_openid_connect_dynamic_mappings_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_openid_connect_dynamic_mappings_list`") # noqa: E501 + # verify the required parameter 'provider_setting' is set + if self.api_client.client_side_validation and ('provider_setting' not in params or + params['provider_setting'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `provider_setting` when calling `orgs_openid_connect_dynamic_mappings_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + if 'provider_setting' in params: + path_params['provider_setting'] = params['provider_setting'] # 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( + '/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[DynamicMapping]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def orgs_openid_connect_dynamic_mappings_read(self, org, provider_setting, claim_value, **kwargs): # noqa: E501 + """Retrieve a specific OpenID Connect dynamic mapping for the provider setting. # noqa: E501 + + Retrieve a specific OpenID Connect dynamic mapping for the provider setting. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str provider_setting: (required) + :param str claim_value: (required) + :return: DynamicMapping + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_openid_connect_dynamic_mappings_read_with_http_info(org, provider_setting, claim_value, **kwargs) # noqa: E501 + else: + (data) = self.orgs_openid_connect_dynamic_mappings_read_with_http_info(org, provider_setting, claim_value, **kwargs) # noqa: E501 + return data + + def orgs_openid_connect_dynamic_mappings_read_with_http_info(self, org, provider_setting, claim_value, **kwargs): # noqa: E501 + """Retrieve a specific OpenID Connect dynamic mapping for the provider setting. # noqa: E501 + + Retrieve a specific OpenID Connect dynamic mapping for the provider setting. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_openid_connect_dynamic_mappings_read_with_http_info(org, provider_setting, claim_value, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str provider_setting: (required) + :param str claim_value: (required) + :return: DynamicMapping + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'provider_setting', 'claim_value'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_openid_connect_dynamic_mappings_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_openid_connect_dynamic_mappings_read`") # noqa: E501 + # verify the required parameter 'provider_setting' is set + if self.api_client.client_side_validation and ('provider_setting' not in params or + params['provider_setting'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `provider_setting` when calling `orgs_openid_connect_dynamic_mappings_read`") # noqa: E501 + # verify the required parameter 'claim_value' is set + if self.api_client.client_side_validation and ('claim_value' not in params or + params['claim_value'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `claim_value` when calling `orgs_openid_connect_dynamic_mappings_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + if 'provider_setting' in params: + path_params['provider_setting'] = params['provider_setting'] # noqa: E501 + if 'claim_value' in params: + path_params['claim_value'] = params['claim_value'] # 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( + '/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DynamicMapping', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def orgs_openid_connect_list(self, org, **kwargs): # noqa: E501 """Retrieve the list of OpenID Connect provider settings for the org. # noqa: E501 @@ -3830,8 +4060,8 @@ def orgs_openid_connect_partial_update(self, org, slug_perm, **kwargs): # noqa: :param async_req bool :param str org: (required) :param str slug_perm: (required) - :param ProviderSettingsRequestPatch data: - :return: ProviderSettings + :param ProviderSettingsWriteRequestPatch data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -3854,8 +4084,8 @@ def orgs_openid_connect_partial_update_with_http_info(self, org, slug_perm, **kw :param async_req bool :param str org: (required) :param str slug_perm: (required) - :param ProviderSettingsRequestPatch data: - :return: ProviderSettings + :param ProviderSettingsWriteRequestPatch data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -3921,7 +4151,7 @@ def orgs_openid_connect_partial_update_with_http_info(self, org, slug_perm, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='ProviderSettings', # noqa: E501 + response_type='ProviderSettingsWrite', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4048,8 +4278,8 @@ def orgs_openid_connect_update(self, org, slug_perm, **kwargs): # noqa: E501 :param async_req bool :param str org: (required) :param str slug_perm: (required) - :param ProviderSettingsRequest data: - :return: ProviderSettings + :param ProviderSettingsWriteRequest data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -4072,8 +4302,8 @@ def orgs_openid_connect_update_with_http_info(self, org, slug_perm, **kwargs): :param async_req bool :param str org: (required) :param str slug_perm: (required) - :param ProviderSettingsRequest data: - :return: ProviderSettings + :param ProviderSettingsWriteRequest data: + :return: ProviderSettingsWrite If the method is called asynchronously, returns the request thread. """ @@ -4139,7 +4369,7 @@ def orgs_openid_connect_update_with_http_info(self, org, slug_perm, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='ProviderSettings', # noqa: E501 + response_type='ProviderSettingsWrite', # 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/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index 0c059171..957a7907 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -397,6 +397,7 @@ def packages_groups_list(self, owner, repo, **kwargs): # noqa: E501 :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 bool hide_subcomponents: Whether to hide packages which are subcomponents of another package in the results :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 @@ -425,6 +426,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E :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 bool hide_subcomponents: Whether to hide packages which are subcomponents of another package in the results :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 @@ -432,7 +434,7 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'group_by', 'query', 'sort'] # noqa: E501 + all_params = ['owner', 'repo', 'page', 'page_size', 'group_by', 'hide_subcomponents', 'query', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -471,6 +473,8 @@ def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E 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 'hide_subcomponents' in params: + query_params.append(('hide_subcomponents', params['hide_subcomponents'])) # noqa: E501 if 'query' in params: query_params.append(('query', params['query'])) # noqa: E501 if 'sort' in params: @@ -2892,6 +2896,117 @@ def packages_upload_hex_with_http_info(self, owner, repo, **kwargs): # noqa: E5 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def packages_upload_huggingface(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Hugging Face package # noqa: E501 + + Create a new Hugging Face package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_huggingface(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param HuggingfacePackageUploadRequest data: + :return: HuggingfacePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_huggingface_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_huggingface_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_huggingface_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Hugging Face package # noqa: E501 + + Create a new Hugging Face package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_huggingface_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param HuggingfacePackageUploadRequest data: + :return: HuggingfacePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_huggingface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_huggingface`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_huggingface`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `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}/upload/huggingface/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HuggingfacePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def packages_upload_luarocks(self, owner, repo, **kwargs): # noqa: E501 """Create a new LuaRocks package # noqa: E501 @@ -5667,6 +5782,117 @@ def packages_validate_upload_hex_with_http_info(self, owner, repo, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def packages_validate_upload_huggingface(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Hugging Face package # noqa: E501 + + Validate parameters for create Hugging Face package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_huggingface(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param HuggingfacePackageUploadRequest data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_huggingface_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_huggingface_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_huggingface_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Hugging Face package # noqa: E501 + + Validate parameters for create Hugging Face package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_huggingface_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param HuggingfacePackageUploadRequest data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_huggingface" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_huggingface`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_huggingface`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `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}/validate-upload/huggingface/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def packages_validate_upload_luarocks(self, owner, repo, **kwargs): # noqa: E501 """Validate parameters for create LuaRocks package # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py index a0bc09c6..0de67142 100644 --- a/bindings/python/src/cloudsmith_api/api/repos_api.py +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -4366,44 +4366,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_conda_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Conda upstream config for this repository. # noqa: E501 - Create a CRAN upstream config for this repository. # noqa: E501 + Create a Conda 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_conda_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 CondaUpstreamRequest data: + :return: CondaUpstream 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_conda_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_conda_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_conda_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Conda upstream config for this repository. # noqa: E501 - Create a CRAN upstream config for this repository. # noqa: E501 + Create a Conda 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_conda_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 CondaUpstreamRequest data: + :return: CondaUpstream If the method is called asynchronously, returns the request thread. """ @@ -4419,18 +4419,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_conda_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_conda_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_conda_create`") # noqa: E501 collection_formats = {} @@ -4462,14 +4462,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/conda/', '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='CondaUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4477,13 +4477,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_conda_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Conda upstream config for this repository. # noqa: E501 - Delete a CRAN upstream config for this repository. # noqa: E501 + Delete a Conda 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_conda_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -4496,18 +4496,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_conda_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_conda_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_conda_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Conda upstream config for this repository. # noqa: E501 - Delete a CRAN upstream config for this repository. # noqa: E501 + Delete a Conda 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_conda_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -4530,22 +4530,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_conda_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_conda_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_conda_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_conda_delete`") # noqa: E501 collection_formats = {} @@ -4577,7 +4577,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/conda/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -4592,13 +4592,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_conda_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Conda upstream configs for this repository. # noqa: E501 - List CRAN upstream configs for this repository. # noqa: E501 + List Conda 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_conda_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -4606,24 +4606,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[CondaUpstream] 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_conda_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_conda_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_conda_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Conda upstream configs for this repository. # noqa: E501 - List CRAN upstream configs for this repository. # noqa: E501 + List Conda 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_conda_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -4631,7 +4631,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[CondaUpstream] If the method is called asynchronously, returns the request thread. """ @@ -4647,18 +4647,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_conda_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_conda_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_conda_list`") # noqa: E501 collection_formats = {} @@ -4692,14 +4692,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/conda/', '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[CondaUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4707,46 +4707,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_conda_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Conda upstream config for this repository. # noqa: E501 - Partially update a CRAN upstream config for this repository. # noqa: E501 + Partially update a Conda 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_conda_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 CondaUpstreamRequestPatch data: + :return: CondaUpstream 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_conda_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_conda_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_conda_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Conda upstream config for this repository. # noqa: E501 - Partially update a CRAN upstream config for this repository. # noqa: E501 + Partially update a Conda 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_conda_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 CondaUpstreamRequestPatch data: + :return: CondaUpstream If the method is called asynchronously, returns the request thread. """ @@ -4762,22 +4762,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_conda_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_conda_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_conda_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_conda_partial_update`") # noqa: E501 collection_formats = {} @@ -4811,14 +4811,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/conda/{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='CondaUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4826,44 +4826,44 @@ 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_conda_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Conda upstream config for this repository. # noqa: E501 - Retrieve a CRAN upstream config for this repository. # noqa: E501 + Retrieve a Conda 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_conda_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 + :return: CondaUpstream 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_conda_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 + (data) = self.repos_upstream_conda_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 + def repos_upstream_conda_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Conda upstream config for this repository. # noqa: E501 - Retrieve a CRAN upstream config for this repository. # noqa: E501 + Retrieve a Conda 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_conda_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 + :return: CondaUpstream If the method is called asynchronously, returns the request thread. """ @@ -4879,22 +4879,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_conda_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 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_conda_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 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_conda_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 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_conda_read`") # noqa: E501 collection_formats = {} @@ -4926,14 +4926,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/conda/{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='CondaUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4941,46 +4941,46 @@ 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_conda_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Conda upstream config for this repository. # noqa: E501 - Update a CRAN upstream config for this repository. # noqa: E501 + Update a Conda 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_conda_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 + :param CondaUpstreamRequest data: + :return: CondaUpstream 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_conda_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 + (data) = self.repos_upstream_conda_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 + def repos_upstream_conda_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Conda upstream config for this repository. # noqa: E501 - Update a CRAN upstream config for this repository. # noqa: E501 + Update a Conda 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_conda_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 + :param CondaUpstreamRequest data: + :return: CondaUpstream If the method is called asynchronously, returns the request thread. """ @@ -4996,22 +4996,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_conda_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 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_conda_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 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_conda_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 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_conda_update`") # noqa: E501 collection_formats = {} @@ -5045,14 +5045,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/conda/{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 + response_type='CondaUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5060,44 +5060,44 @@ 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_cran_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a CRAN upstream config for this repository. # noqa: E501 - Create a Dart 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_dart_create(owner, identifier, 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 DartUpstreamRequest data: - :return: DartUpstream + :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_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_cran_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cran_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 + 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 Dart 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_dart_create_with_http_info(owner, identifier, 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 DartUpstreamRequest data: - :return: DartUpstream + :param CranUpstreamRequest data: + :return: CranUpstream If the method is called asynchronously, returns the request thread. """ @@ -5113,18 +5113,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_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_dart_create`") # 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_dart_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cran_create`") # noqa: E501 collection_formats = {} @@ -5156,14 +5156,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/cran/', '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='CranUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5171,13 +5171,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_cran_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a CRAN upstream config for this repository. # noqa: E501 - Delete a Dart 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_dart_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cran_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5190,18 +5190,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_cran_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_cran_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_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 Dart 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_dart_delete_with_http_info(owner, identifier, slug_perm, 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 @@ -5224,22 +5224,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_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_dart_delete`") # 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_dart_delete`") # 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_dart_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_delete`") # noqa: E501 collection_formats = {} @@ -5271,7 +5271,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/cran/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -5286,13 +5286,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_cran_list(self, owner, identifier, **kwargs): # noqa: E501 + """List CRAN upstream configs for this repository. # noqa: E501 - List Dart 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_dart_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cran_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5300,24 +5300,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[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_dart_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_cran_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_cran_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_cran_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List CRAN upstream configs for this repository. # noqa: E501 - List Dart 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_dart_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cran_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5325,7 +5325,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[CranUpstream] If the method is called asynchronously, returns the request thread. """ @@ -5341,18 +5341,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_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_dart_list`") # 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_dart_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cran_list`") # noqa: E501 collection_formats = {} @@ -5386,14 +5386,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/cran/', '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[CranUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5401,46 +5401,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_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 Dart 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_dart_partial_update(owner, identifier, slug_perm, 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 DartUpstreamRequestPatch data: - :return: DartUpstream + :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_dart_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cran_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_cran_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_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 Dart 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_dart_partial_update_with_http_info(owner, identifier, slug_perm, 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 DartUpstreamRequestPatch data: - :return: DartUpstream + :param CranUpstreamRequestPatch data: + :return: CranUpstream If the method is called asynchronously, returns the request thread. """ @@ -5456,22 +5456,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_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_dart_partial_update`") # 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_dart_partial_update`") # 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_dart_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_partial_update`") # noqa: E501 collection_formats = {} @@ -5505,14 +5505,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/cran/{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='CranUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5520,44 +5520,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_cran_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a CRAN upstream config for this repository. # noqa: E501 - Retrieve a Dart 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_dart_read(owner, identifier, slug_perm, 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: DartUpstream + :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_dart_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cran_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_cran_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_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 Dart 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_dart_read_with_http_info(owner, identifier, slug_perm, 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: DartUpstream + :return: CranUpstream If the method is called asynchronously, returns the request thread. """ @@ -5573,22 +5573,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_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_dart_read`") # 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_dart_read`") # 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_dart_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_read`") # noqa: E501 collection_formats = {} @@ -5620,14 +5620,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/cran/{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='CranUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5635,46 +5635,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_cran_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a CRAN upstream config for this repository. # noqa: E501 - Update a Dart 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_dart_update(owner, identifier, slug_perm, 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 DartUpstreamRequest data: - :return: DartUpstream + :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_dart_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cran_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_cran_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_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 Dart 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_dart_update_with_http_info(owner, identifier, slug_perm, 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 DartUpstreamRequest data: - :return: DartUpstream + :param CranUpstreamRequest data: + :return: CranUpstream If the method is called asynchronously, returns the request thread. """ @@ -5690,22 +5690,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_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_dart_update`") # 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_dart_update`") # 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_dart_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_update`") # noqa: E501 collection_formats = {} @@ -5739,14 +5739,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/cran/{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='CranUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5754,44 +5754,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_dart_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Dart upstream config for this repository. # noqa: E501 - Create a Debian 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_deb_create(owner, identifier, 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 DebUpstreamRequest data: - :return: DebUpstream + :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_deb_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_dart_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_dart_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_dart_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Dart upstream config for this repository. # noqa: E501 - Create a Debian 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_deb_create_with_http_info(owner, identifier, 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 DebUpstreamRequest data: - :return: DebUpstream + :param DartUpstreamRequest data: + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ @@ -5807,18 +5807,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_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_deb_create`") # 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_deb_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_dart_create`") # noqa: E501 collection_formats = {} @@ -5850,14 +5850,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/dart/', '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='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5865,13 +5865,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_dart_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Dart upstream config for this repository. # noqa: E501 - Delete a Debian 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_deb_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_dart_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5884,18 +5884,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_dart_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_dart_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_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 Debian 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_deb_delete_with_http_info(owner, identifier, slug_perm, 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 @@ -5918,22 +5918,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_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_deb_delete`") # 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_deb_delete`") # 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_deb_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_delete`") # noqa: E501 collection_formats = {} @@ -5965,7 +5965,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/dart/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -5980,13 +5980,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_dart_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Dart upstream configs for this repository. # noqa: E501 - List Debian 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_deb_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_dart_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5994,24 +5994,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[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_deb_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_dart_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_dart_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_dart_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Dart upstream configs for this repository. # noqa: E501 - List Debian 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_deb_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_dart_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -6019,7 +6019,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[DartUpstream] If the method is called asynchronously, returns the request thread. """ @@ -6035,18 +6035,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_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_deb_list`") # 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_deb_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_dart_list`") # noqa: E501 collection_formats = {} @@ -6080,14 +6080,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/dart/', '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[DartUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6095,46 +6095,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_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 Debian 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_deb_partial_update(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) - :param DebUpstreamRequestPatch data: - :return: DebUpstream + :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_deb_partial_update_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_deb_partial_update_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_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_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 - Partially update a Debian 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_deb_partial_update_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) - :param DebUpstreamRequestPatch data: - :return: DebUpstream + :param DartUpstreamRequestPatch data: + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ @@ -6150,22 +6150,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_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_deb_partial_update`") # 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_deb_partial_update`") # 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_deb_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_partial_update`") # noqa: E501 collection_formats = {} @@ -6199,14 +6199,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/dart/{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='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6214,44 +6214,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_dart_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Dart upstream config for this repository. # noqa: E501 - Retrieve a Debian 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_deb_read(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) - :return: DebUpstream + :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_deb_read_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_deb_read_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_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_dart_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Dart upstream config for this repository. # noqa: E501 - Retrieve a Debian 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_deb_read_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) - :return: DebUpstream + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ @@ -6267,22 +6267,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_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_deb_read`") # 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_deb_read`") # 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_deb_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_read`") # noqa: E501 collection_formats = {} @@ -6314,14 +6314,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/dart/{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='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6329,46 +6329,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_dart_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Dart upstream config for this repository. # noqa: E501 - Update a Debian 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_deb_update(owner, identifier, slug_perm, 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 DebUpstreamRequest data: - :return: DebUpstream + :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_deb_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_dart_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_dart_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_dart_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Dart upstream config for this repository. # noqa: E501 - Update a Debian 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_deb_update_with_http_info(owner, identifier, slug_perm, 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 DebUpstreamRequest data: - :return: DebUpstream + :param DartUpstreamRequest data: + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ @@ -6384,22 +6384,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_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_deb_update`") # 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_deb_update`") # 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_deb_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_update`") # noqa: E501 collection_formats = {} @@ -6433,14 +6433,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/dart/{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='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6448,44 +6448,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_deb_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Debian upstream config for this repository. # noqa: E501 - Create a Docker 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_docker_create(owner, identifier, 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 DockerUpstreamRequest data: - :return: DockerUpstream + :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_docker_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_deb_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_deb_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_deb_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Debian upstream config for this repository. # noqa: E501 - Create a Docker 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_docker_create_with_http_info(owner, identifier, 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 DockerUpstreamRequest data: - :return: DockerUpstream + :param DebUpstreamRequest data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -6501,18 +6501,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_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_docker_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_docker_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_create`") # noqa: E501 collection_formats = {} @@ -6544,14 +6544,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/deb/', '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='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6559,13 +6559,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_deb_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Debian upstream config for this repository. # noqa: E501 - Delete a Docker 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_docker_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 @@ -6578,18 +6578,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_deb_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_deb_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_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 Docker 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_docker_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 @@ -6612,22 +6612,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_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_docker_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_docker_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_docker_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_delete`") # noqa: E501 collection_formats = {} @@ -6659,7 +6659,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/deb/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -6674,13 +6674,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_deb_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Debian upstream configs for this repository. # noqa: E501 - List Docker 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_docker_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_deb_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -6688,24 +6688,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[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_docker_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_docker_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_docker_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Docker 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 Docker 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_docker_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 @@ -6713,7 +6713,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[DebUpstream] If the method is called asynchronously, returns the request thread. """ @@ -6729,18 +6729,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_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_docker_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_docker_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_list`") # noqa: E501 collection_formats = {} @@ -6774,14 +6774,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/deb/', '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[DebUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6789,46 +6789,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_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 Docker 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_docker_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 DockerUpstreamRequestPatch data: - :return: DockerUpstream + :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_docker_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_docker_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_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_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 Docker 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_docker_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 DockerUpstreamRequestPatch data: - :return: DockerUpstream + :param DebUpstreamRequestPatch data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -6844,22 +6844,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_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_docker_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_docker_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_docker_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_partial_update`") # noqa: E501 collection_formats = {} @@ -6893,14 +6893,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/deb/{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='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6908,44 +6908,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_deb_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Debian upstream config for this repository. # noqa: E501 - Retrieve a Docker 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_docker_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: DockerUpstream + :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_docker_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_docker_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_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_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 Docker 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_docker_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: DockerUpstream + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -6961,22 +6961,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_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_docker_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_docker_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_docker_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_read`") # noqa: E501 collection_formats = {} @@ -7008,14 +7008,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/deb/{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='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7023,46 +7023,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_deb_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Debian upstream config for this repository. # noqa: E501 - Update a Docker 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_docker_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 DockerUpstreamRequest data: - :return: DockerUpstream + :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_docker_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_docker_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_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_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 Docker 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_docker_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 DockerUpstreamRequest data: - :return: DockerUpstream + :param DebUpstreamRequest data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -7078,22 +7078,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_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_docker_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_docker_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_docker_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_update`") # noqa: E501 collection_formats = {} @@ -7127,14 +7127,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/deb/{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='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7142,18 +7142,1288 @@ def repos_upstream_docker_update_with_http_info(self, owner, identifier, slug_pe _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_go_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Go 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 Go 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_docker_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 + 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 + else: + (data) = self.repos_upstream_docker_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 + + 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_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 DockerUpstreamRequest data: + :return: DockerUpstream + 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_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_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_docker_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/docker/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _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 + + 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_docker_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_docker_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 + 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 + + 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_docker_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_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_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_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_docker_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/docker/{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_docker_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Docker 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_docker_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[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_docker_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_docker_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 + + 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_docker_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[DockerUpstream] + 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_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_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_docker_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/docker/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _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 + + 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_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 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_docker_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 + 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 + + 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_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 DockerUpstreamRequestPatch data: + :return: DockerUpstream + 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_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_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_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_docker_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/docker/{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 + 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_docker_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Docker 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_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: 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_docker_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 + 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 + + 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_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: DockerUpstream + 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_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_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_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_docker_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/docker/{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 + 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_docker_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Docker 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_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 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_docker_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 + 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 + + 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_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 DockerUpstreamRequest data: + :return: DockerUpstream + 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_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_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_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_docker_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/docker/{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 + 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_go_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Go 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_go_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :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_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + 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 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_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 GoUpstreamRequest data: + :return: GoUpstream + 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_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_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_go_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/go/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + 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 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_go_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_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + 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 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_go_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_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_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_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_go_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/go/{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_go_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Go 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_go_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[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_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_go_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Go 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_go_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[GoUpstream] + 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_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_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_go_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/go/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + 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 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_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 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_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + 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 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_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 GoUpstreamRequestPatch data: + :return: GoUpstream + 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_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_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_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_go_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/go/{slug_perm}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + 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 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_go_create(owner, identifier, 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: 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_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + 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 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_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: GoUpstream + 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_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_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_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_go_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/go/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + 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 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_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 GoUpstreamRequest data: :return: GoUpstream If the method is called asynchronously, @@ -7161,29 +8431,147 @@ def repos_upstream_go_create(self, owner, identifier, **kwargs): # noqa: E501 """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_go_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Go 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 - Create a Go 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_go_create_with_http_info(owner, identifier, 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 GoUpstreamRequest data: :return: GoUpstream 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_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_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_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_go_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/go/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_upstream_helm_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Helm upstream config for this repository. # noqa: E501 + + Create a Helm 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_helm_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param HelmUpstreamRequest data: + :return: HelmUpstream + 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_helm_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_helm_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_helm_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Helm upstream config for this repository. # noqa: E501 + + Create a Helm 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_helm_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 HelmUpstreamRequest data: + :return: HelmUpstream + 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') @@ -7195,18 +8583,18 @@ def repos_upstream_go_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_go_create" % key + " to method repos_upstream_helm_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_go_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_create`") # noqa: E501 collection_formats = {} @@ -7238,14 +8626,14 @@ def repos_upstream_go_create_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/go/', 'POST', + '/repos/{owner}/{identifier}/upstream/helm/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='GoUpstream', # noqa: E501 + response_type='HelmUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7253,13 +8641,13 @@ def repos_upstream_go_create_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_go_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Go upstream config for this repository. # noqa: E501 + def repos_upstream_helm_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Helm upstream config for this repository. # noqa: E501 - Delete a Go upstream config for this repository. # noqa: E501 + Delete a Helm 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_go_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -7272,18 +8660,18 @@ def repos_upstream_go_delete(self, owner, identifier, slug_perm, **kwargs): # n """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - 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 + def repos_upstream_helm_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Helm upstream config for this repository. # noqa: E501 - Delete a Go upstream config for this repository. # noqa: E501 + Delete a Helm 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_go_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -7306,22 +8694,22 @@ def repos_upstream_go_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_go_delete" % key + " to method repos_upstream_helm_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_go_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_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_go_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_helm_delete`") # noqa: E501 collection_formats = {} @@ -7353,7 +8741,7 @@ def repos_upstream_go_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/go/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -7368,13 +8756,13 @@ def repos_upstream_go_delete_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_go_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Go upstream configs for this repository. # noqa: E501 + def repos_upstream_helm_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Helm upstream configs for this repository. # noqa: E501 - List Go upstream configs for this repository. # noqa: E501 + List Helm 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_go_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_helm_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -7382,24 +8770,24 @@ def repos_upstream_go_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[GoUpstream] + :return: list[HelmUpstream] 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_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_helm_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_helm_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_go_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Go upstream configs for this repository. # noqa: E501 + def repos_upstream_helm_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Helm upstream configs for this repository. # noqa: E501 - List Go upstream configs for this repository. # noqa: E501 + List Helm 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_go_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_helm_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -7407,7 +8795,7 @@ def repos_upstream_go_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[GoUpstream] + :return: list[HelmUpstream] If the method is called asynchronously, returns the request thread. """ @@ -7423,18 +8811,18 @@ def repos_upstream_go_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_go_list" % key + " to method repos_upstream_helm_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_go_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_list`") # noqa: E501 collection_formats = {} @@ -7468,14 +8856,14 @@ def repos_upstream_go_list_with_http_info(self, owner, identifier, **kwargs): # auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/go/', 'GET', + '/repos/{owner}/{identifier}/upstream/helm/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[GoUpstream]', # noqa: E501 + response_type='list[HelmUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7483,46 +8871,46 @@ def repos_upstream_go_list_with_http_info(self, owner, identifier, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - 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 + def repos_upstream_helm_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Helm upstream config for this repository. # noqa: E501 - Partially update a Go upstream config for this repository. # noqa: E501 + Partially update a Helm 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_go_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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 GoUpstreamRequestPatch data: - :return: GoUpstream + :param HelmUpstreamRequestPatch data: + :return: HelmUpstream 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_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - 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 + def repos_upstream_helm_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Helm upstream config for this repository. # noqa: E501 - Partially update a Go upstream config for this repository. # noqa: E501 + Partially update a Helm 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_go_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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 GoUpstreamRequestPatch data: - :return: GoUpstream + :param HelmUpstreamRequestPatch data: + :return: HelmUpstream If the method is called asynchronously, returns the request thread. """ @@ -7538,22 +8926,22 @@ def repos_upstream_go_partial_update_with_http_info(self, owner, identifier, slu if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_go_partial_update" % key + " to method repos_upstream_helm_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_go_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_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_go_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_helm_partial_update`") # noqa: E501 collection_formats = {} @@ -7587,14 +8975,14 @@ def repos_upstream_go_partial_update_with_http_info(self, owner, identifier, slu auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='GoUpstream', # noqa: E501 + response_type='HelmUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7602,44 +8990,44 @@ def repos_upstream_go_partial_update_with_http_info(self, owner, identifier, slu _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_go_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Go upstream config for this repository. # noqa: E501 + def repos_upstream_helm_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Helm upstream config for this repository. # noqa: E501 - Retrieve a Go upstream config for this repository. # noqa: E501 + Retrieve a Helm 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_go_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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: GoUpstream + :return: HelmUpstream 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_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - 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 + def repos_upstream_helm_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Helm upstream config for this repository. # noqa: E501 - Retrieve a Go upstream config for this repository. # noqa: E501 + Retrieve a Helm 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_go_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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: GoUpstream + :return: HelmUpstream If the method is called asynchronously, returns the request thread. """ @@ -7655,22 +9043,22 @@ def repos_upstream_go_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_go_read" % key + " to method repos_upstream_helm_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_go_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_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_go_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_helm_read`") # noqa: E501 collection_formats = {} @@ -7702,14 +9090,14 @@ def repos_upstream_go_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/go/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='GoUpstream', # noqa: E501 + response_type='HelmUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7717,46 +9105,46 @@ def repos_upstream_go_read_with_http_info(self, owner, identifier, slug_perm, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_go_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Go upstream config for this repository. # noqa: E501 + def repos_upstream_helm_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Helm upstream config for this repository. # noqa: E501 - Update a Go upstream config for this repository. # noqa: E501 + Update a Helm 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_go_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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 GoUpstreamRequest data: - :return: GoUpstream + :param HelmUpstreamRequest data: + :return: HelmUpstream 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_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - 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 + def repos_upstream_helm_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Helm upstream config for this repository. # noqa: E501 - Update a Go upstream config for this repository. # noqa: E501 + Update a Helm 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_go_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_helm_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 GoUpstreamRequest data: - :return: GoUpstream + :param HelmUpstreamRequest data: + :return: HelmUpstream If the method is called asynchronously, returns the request thread. """ @@ -7772,22 +9160,22 @@ def repos_upstream_go_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_go_update" % key + " to method repos_upstream_helm_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_go_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_helm_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_go_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_helm_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_go_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_helm_update`") # noqa: E501 collection_formats = {} @@ -7821,14 +9209,14 @@ def repos_upstream_go_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/go/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='GoUpstream', # noqa: E501 + response_type='HelmUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7836,44 +9224,44 @@ def repos_upstream_go_update_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Hex upstream config for this repository. # noqa: E501 - Create a Helm upstream config for this repository. # noqa: E501 + Create a Hex 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_helm_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_hex_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param HelmUpstreamRequest data: - :return: HelmUpstream + :param HexUpstreamRequest data: + :return: HexUpstream 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_helm_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_hex_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_helm_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Hex upstream config for this repository. # noqa: E501 - Create a Helm upstream config for this repository. # noqa: E501 + Create a Hex 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_helm_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_hex_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 HelmUpstreamRequest data: - :return: HelmUpstream + :param HexUpstreamRequest data: + :return: HexUpstream If the method is called asynchronously, returns the request thread. """ @@ -7889,18 +9277,18 @@ def repos_upstream_helm_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_helm_create" % key + " to method repos_upstream_hex_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_helm_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_create`") # noqa: E501 collection_formats = {} @@ -7932,14 +9320,14 @@ def repos_upstream_helm_create_with_http_info(self, owner, identifier, **kwargs) auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/helm/', 'POST', + '/repos/{owner}/{identifier}/upstream/hex/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HelmUpstream', # noqa: E501 + response_type='HexUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7947,13 +9335,13 @@ def repos_upstream_helm_create_with_http_info(self, owner, identifier, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Hex upstream config for this repository. # noqa: E501 - Delete a Helm upstream config for this repository. # noqa: E501 + Delete a Hex 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_helm_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -7966,18 +9354,18 @@ def repos_upstream_helm_delete(self, owner, identifier, slug_perm, **kwargs): # """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_helm_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Hex upstream config for this repository. # noqa: E501 - Delete a Helm upstream config for this repository. # noqa: E501 + Delete a Hex 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_helm_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -8000,22 +9388,22 @@ def repos_upstream_helm_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_helm_delete" % key + " to method repos_upstream_hex_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_helm_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_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_helm_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_hex_delete`") # noqa: E501 collection_formats = {} @@ -8047,7 +9435,7 @@ def repos_upstream_helm_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/helm/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -8062,13 +9450,13 @@ def repos_upstream_helm_delete_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Helm upstream configs for this repository. # noqa: E501 + def repos_upstream_hex_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Hex upstream configs for this repository. # noqa: E501 - List Helm upstream configs for this repository. # noqa: E501 + List Hex 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_helm_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_hex_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -8076,24 +9464,24 @@ def repos_upstream_helm_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[HelmUpstream] + :return: list[HexUpstream] 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_helm_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_hex_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_helm_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Helm upstream configs for this repository. # noqa: E501 + def repos_upstream_hex_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Hex upstream configs for this repository. # noqa: E501 - List Helm upstream configs for this repository. # noqa: E501 + List Hex 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_helm_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_hex_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -8101,7 +9489,7 @@ def repos_upstream_helm_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[HelmUpstream] + :return: list[HexUpstream] If the method is called asynchronously, returns the request thread. """ @@ -8117,18 +9505,18 @@ def repos_upstream_helm_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_helm_list" % key + " to method repos_upstream_hex_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_helm_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_list`") # noqa: E501 collection_formats = {} @@ -8162,14 +9550,14 @@ def repos_upstream_helm_list_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/helm/', 'GET', + '/repos/{owner}/{identifier}/upstream/hex/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[HelmUpstream]', # noqa: E501 + response_type='list[HexUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8177,46 +9565,46 @@ def repos_upstream_helm_list_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Hex upstream config for this repository. # noqa: E501 - Partially update a Helm upstream config for this repository. # noqa: E501 + Partially update a Hex 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_helm_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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 HelmUpstreamRequestPatch data: - :return: HelmUpstream + :param HexUpstreamRequestPatch data: + :return: HexUpstream 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_helm_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_helm_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Hex upstream config for this repository. # noqa: E501 - Partially update a Helm upstream config for this repository. # noqa: E501 + Partially update a Hex 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_helm_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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 HelmUpstreamRequestPatch data: - :return: HelmUpstream + :param HexUpstreamRequestPatch data: + :return: HexUpstream If the method is called asynchronously, returns the request thread. """ @@ -8232,22 +9620,22 @@ def repos_upstream_helm_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_helm_partial_update" % key + " to method repos_upstream_hex_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_helm_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_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_helm_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_hex_partial_update`") # noqa: E501 collection_formats = {} @@ -8281,14 +9669,14 @@ def repos_upstream_helm_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/helm/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HelmUpstream', # noqa: E501 + response_type='HexUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8296,44 +9684,44 @@ def repos_upstream_helm_partial_update_with_http_info(self, owner, identifier, s _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Hex upstream config for this repository. # noqa: E501 - Retrieve a Helm upstream config for this repository. # noqa: E501 + Retrieve a Hex 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_helm_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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: HelmUpstream + :return: HexUpstream 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_helm_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_helm_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Hex upstream config for this repository. # noqa: E501 - Retrieve a Helm upstream config for this repository. # noqa: E501 + Retrieve a Hex 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_helm_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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: HelmUpstream + :return: HexUpstream If the method is called asynchronously, returns the request thread. """ @@ -8349,22 +9737,22 @@ def repos_upstream_helm_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_helm_read" % key + " to method repos_upstream_hex_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_helm_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_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_helm_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_hex_read`") # noqa: E501 collection_formats = {} @@ -8396,14 +9784,14 @@ def repos_upstream_helm_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/helm/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HelmUpstream', # noqa: E501 + response_type='HexUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8411,46 +9799,46 @@ def repos_upstream_helm_read_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_helm_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Hex upstream config for this repository. # noqa: E501 - Update a Helm upstream config for this repository. # noqa: E501 + Update a Hex 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_helm_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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 HelmUpstreamRequest data: - :return: HelmUpstream + :param HexUpstreamRequest data: + :return: HexUpstream 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_helm_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_helm_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Helm upstream config for this repository. # noqa: E501 + def repos_upstream_hex_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Hex upstream config for this repository. # noqa: E501 - Update a Helm upstream config for this repository. # noqa: E501 + Update a Hex 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_helm_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_hex_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 HelmUpstreamRequest data: - :return: HelmUpstream + :param HexUpstreamRequest data: + :return: HexUpstream If the method is called asynchronously, returns the request thread. """ @@ -8466,22 +9854,22 @@ def repos_upstream_helm_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_helm_update" % key + " to method repos_upstream_hex_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_helm_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_hex_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_helm_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_hex_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_helm_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_hex_update`") # noqa: E501 collection_formats = {} @@ -8515,14 +9903,14 @@ def repos_upstream_helm_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/helm/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HelmUpstream', # noqa: E501 + response_type='HexUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8530,44 +9918,44 @@ def repos_upstream_helm_update_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Hugging Face upstream config for this repository. # noqa: E501 - Create a Hex upstream config for this repository. # noqa: E501 + Create a Hugging Face 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_hex_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_huggingface_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param HexUpstreamRequest data: - :return: HexUpstream + :param HuggingfaceUpstreamRequest data: + :return: HuggingfaceUpstream 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_hex_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_hex_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Hugging Face upstream config for this repository. # noqa: E501 - Create a Hex upstream config for this repository. # noqa: E501 + Create a Hugging Face 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_hex_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_huggingface_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 HexUpstreamRequest data: - :return: HexUpstream + :param HuggingfaceUpstreamRequest data: + :return: HuggingfaceUpstream If the method is called asynchronously, returns the request thread. """ @@ -8583,18 +9971,18 @@ def repos_upstream_hex_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_hex_create" % key + " to method repos_upstream_huggingface_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_hex_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_create`") # noqa: E501 collection_formats = {} @@ -8626,14 +10014,14 @@ def repos_upstream_hex_create_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/hex/', 'POST', + '/repos/{owner}/{identifier}/upstream/huggingface/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HexUpstream', # noqa: E501 + response_type='HuggingfaceUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8641,13 +10029,13 @@ def repos_upstream_hex_create_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Hugging Face upstream config for this repository. # noqa: E501 - Delete a Hex upstream config for this repository. # noqa: E501 + Delete a Hugging Face 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_hex_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -8660,18 +10048,18 @@ def repos_upstream_hex_delete(self, owner, identifier, slug_perm, **kwargs): # """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_hex_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Hugging Face upstream config for this repository. # noqa: E501 - Delete a Hex upstream config for this repository. # noqa: E501 + Delete a Hugging Face 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_hex_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -8694,22 +10082,22 @@ def repos_upstream_hex_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_hex_delete" % key + " to method repos_upstream_huggingface_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_hex_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_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_hex_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_huggingface_delete`") # noqa: E501 collection_formats = {} @@ -8741,7 +10129,7 @@ def repos_upstream_hex_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/hex/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -8756,13 +10144,13 @@ def repos_upstream_hex_delete_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Hex upstream configs for this repository. # noqa: E501 + def repos_upstream_huggingface_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Hugging Face upstream configs for this repository. # noqa: E501 - List Hex upstream configs for this repository. # noqa: E501 + List Hugging Face 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_hex_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_huggingface_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -8770,24 +10158,24 @@ def repos_upstream_hex_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[HexUpstream] + :return: list[HuggingfaceUpstream] 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_hex_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_hex_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Hex upstream configs for this repository. # noqa: E501 + def repos_upstream_huggingface_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Hugging Face upstream configs for this repository. # noqa: E501 - List Hex upstream configs for this repository. # noqa: E501 + List Hugging Face 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_hex_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_huggingface_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -8795,7 +10183,7 @@ def repos_upstream_hex_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[HexUpstream] + :return: list[HuggingfaceUpstream] If the method is called asynchronously, returns the request thread. """ @@ -8811,18 +10199,18 @@ def repos_upstream_hex_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_hex_list" % key + " to method repos_upstream_huggingface_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_hex_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_list`") # noqa: E501 collection_formats = {} @@ -8856,14 +10244,14 @@ def repos_upstream_hex_list_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/hex/', 'GET', + '/repos/{owner}/{identifier}/upstream/huggingface/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[HexUpstream]', # noqa: E501 + response_type='list[HuggingfaceUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8871,46 +10259,46 @@ def repos_upstream_hex_list_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Hugging Face upstream config for this repository. # noqa: E501 - Partially update a Hex upstream config for this repository. # noqa: E501 + Partially update a Hugging Face 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_hex_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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 HexUpstreamRequestPatch data: - :return: HexUpstream + :param HuggingfaceUpstreamRequestPatch data: + :return: HuggingfaceUpstream 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_hex_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_hex_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Hugging Face upstream config for this repository. # noqa: E501 - Partially update a Hex upstream config for this repository. # noqa: E501 + Partially update a Hugging Face 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_hex_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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 HexUpstreamRequestPatch data: - :return: HexUpstream + :param HuggingfaceUpstreamRequestPatch data: + :return: HuggingfaceUpstream If the method is called asynchronously, returns the request thread. """ @@ -8926,22 +10314,22 @@ def repos_upstream_hex_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_hex_partial_update" % key + " to method repos_upstream_huggingface_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_hex_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_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_hex_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_huggingface_partial_update`") # noqa: E501 collection_formats = {} @@ -8975,14 +10363,14 @@ def repos_upstream_hex_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/hex/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HexUpstream', # noqa: E501 + response_type='HuggingfaceUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8990,44 +10378,44 @@ def repos_upstream_hex_partial_update_with_http_info(self, owner, identifier, sl _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Hugging Face upstream config for this repository. # noqa: E501 - Retrieve a Hex upstream config for this repository. # noqa: E501 + Retrieve a Hugging Face 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_hex_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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: HexUpstream + :return: HuggingfaceUpstream 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_hex_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_hex_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Hugging Face upstream config for this repository. # noqa: E501 - Retrieve a Hex upstream config for this repository. # noqa: E501 + Retrieve a Hugging Face 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_hex_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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: HexUpstream + :return: HuggingfaceUpstream If the method is called asynchronously, returns the request thread. """ @@ -9043,22 +10431,22 @@ def repos_upstream_hex_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_hex_read" % key + " to method repos_upstream_huggingface_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_hex_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_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_hex_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_huggingface_read`") # noqa: E501 collection_formats = {} @@ -9090,14 +10478,14 @@ def repos_upstream_hex_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/hex/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HexUpstream', # noqa: E501 + response_type='HuggingfaceUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9105,46 +10493,46 @@ def repos_upstream_hex_read_with_http_info(self, owner, identifier, slug_perm, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_hex_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Hugging Face upstream config for this repository. # noqa: E501 - Update a Hex upstream config for this repository. # noqa: E501 + Update a Hugging Face 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_hex_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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 HexUpstreamRequest data: - :return: HexUpstream + :param HuggingfaceUpstreamRequest data: + :return: HuggingfaceUpstream 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_hex_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_huggingface_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_huggingface_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_hex_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Hex upstream config for this repository. # noqa: E501 + def repos_upstream_huggingface_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Hugging Face upstream config for this repository. # noqa: E501 - Update a Hex upstream config for this repository. # noqa: E501 + Update a Hugging Face 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_hex_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_huggingface_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 HexUpstreamRequest data: - :return: HexUpstream + :param HuggingfaceUpstreamRequest data: + :return: HuggingfaceUpstream If the method is called asynchronously, returns the request thread. """ @@ -9160,22 +10548,22 @@ def repos_upstream_hex_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_hex_update" % key + " to method repos_upstream_huggingface_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_hex_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_huggingface_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_hex_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_huggingface_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_hex_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_huggingface_update`") # noqa: E501 collection_formats = {} @@ -9209,14 +10597,14 @@ def repos_upstream_hex_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/hex/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HexUpstream', # noqa: E501 + response_type='HuggingfaceUpstream', # 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/models/__init__.py b/bindings/python/src/cloudsmith_api/models/__init__.py index db6b4fa4..935514dd 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -41,6 +41,9 @@ from cloudsmith_api.models.conan_package_upload_request import ConanPackageUploadRequest from cloudsmith_api.models.conda_package_upload import CondaPackageUpload from cloudsmith_api.models.conda_package_upload_request import CondaPackageUploadRequest +from cloudsmith_api.models.conda_upstream import CondaUpstream +from cloudsmith_api.models.conda_upstream_request import CondaUpstreamRequest +from cloudsmith_api.models.conda_upstream_request_patch import CondaUpstreamRequestPatch from cloudsmith_api.models.cran_package_upload import CranPackageUpload from cloudsmith_api.models.cran_package_upload_request import CranPackageUploadRequest from cloudsmith_api.models.cran_upstream import CranUpstream @@ -64,6 +67,7 @@ from cloudsmith_api.models.docker_upstream import DockerUpstream from cloudsmith_api.models.docker_upstream_request import DockerUpstreamRequest from cloudsmith_api.models.docker_upstream_request_patch import DockerUpstreamRequestPatch +from cloudsmith_api.models.dynamic_mapping import DynamicMapping from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics from cloudsmith_api.models.error_detail import ErrorDetail from cloudsmith_api.models.eula import Eula @@ -89,6 +93,11 @@ from cloudsmith_api.models.history import History from cloudsmith_api.models.history_fieldset import HistoryFieldset from cloudsmith_api.models.history_fieldset_raw import HistoryFieldsetRaw +from cloudsmith_api.models.huggingface_package_upload import HuggingfacePackageUpload +from cloudsmith_api.models.huggingface_package_upload_request import HuggingfacePackageUploadRequest +from cloudsmith_api.models.huggingface_upstream import HuggingfaceUpstream +from cloudsmith_api.models.huggingface_upstream_request import HuggingfaceUpstreamRequest +from cloudsmith_api.models.huggingface_upstream_request_patch import HuggingfaceUpstreamRequestPatch 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 @@ -177,8 +186,9 @@ from cloudsmith_api.models.package_vulnerability_policy_violation_log import PackageVulnerabilityPolicyViolationLog from cloudsmith_api.models.package_vulnerability_policy_violation_log_cursor_page import PackageVulnerabilityPolicyViolationLogCursorPage from cloudsmith_api.models.provider_settings import ProviderSettings -from cloudsmith_api.models.provider_settings_request import ProviderSettingsRequest -from cloudsmith_api.models.provider_settings_request_patch import ProviderSettingsRequestPatch +from cloudsmith_api.models.provider_settings_write import ProviderSettingsWrite +from cloudsmith_api.models.provider_settings_write_request import ProviderSettingsWriteRequest +from cloudsmith_api.models.provider_settings_write_request_patch import ProviderSettingsWriteRequestPatch from cloudsmith_api.models.python_package_upload import PythonPackageUpload from cloudsmith_api.models.python_package_upload_request import PythonPackageUploadRequest from cloudsmith_api.models.python_upstream import PythonUpstream diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream.py index a1cb178d..58959d9e 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_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/cargo_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py index d712128c..d950cd4c 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_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/cargo_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py index 5d11417c..c36e601d 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_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/composer_package_upload.py b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py index 724d929f..20a3873a 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py @@ -2181,8 +2181,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py index dd7a28a9..738575fd 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py @@ -167,8 +167,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version 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/conan_package_upload.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py index abe78954..d39e21b7 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -2252,8 +2252,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py index 81bd241b..c7c436d3 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py @@ -362,8 +362,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream.py b/bindings/python/src/cloudsmith_api/models/conda_upstream.py new file mode 100644 index 00000000..ec4f4722 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/conda_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 CondaUpstream(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 + """CondaUpstream - 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 CondaUpstream. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CondaUpstream. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CondaUpstream. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CondaUpstream. + :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 CondaUpstream. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CondaUpstream. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CondaUpstream. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CondaUpstream. + :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 CondaUpstream. + + Username to provide with requests to upstream. + + :return: The auth_username of this CondaUpstream. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CondaUpstream. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CondaUpstream. + :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 CondaUpstream. + + The datetime the upstream source was created. + + :return: The created_at of this CondaUpstream. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this CondaUpstream. + + The datetime the upstream source was created. + + :param created_at: The created_at of this CondaUpstream. + :type: datetime + """ + + self._created_at = created_at + + @property + def disable_reason(self): + """Gets the disable_reason of this CondaUpstream. + + + :return: The disable_reason of this CondaUpstream. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this CondaUpstream. + + + :param disable_reason: The disable_reason of this CondaUpstream. + :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 CondaUpstream. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CondaUpstream. + :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 CondaUpstream. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CondaUpstream. + :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 CondaUpstream. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CondaUpstream. + :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 CondaUpstream. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CondaUpstream. + :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 CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CondaUpstream. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CondaUpstream. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CondaUpstream. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CondaUpstream. + + 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 CondaUpstream. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CondaUpstream. + + 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 CondaUpstream. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # 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 CondaUpstream. + + 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 CondaUpstream. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + When true, this upstream source is pending validation. + + :return: The pending_validation of this CondaUpstream. + :rtype: bool + """ + return self._pending_validation + + @pending_validation.setter + def pending_validation(self, pending_validation): + """Sets the pending_validation of this CondaUpstream. + + When true, this upstream source is pending validation. + + :param pending_validation: The pending_validation of this CondaUpstream. + :type: bool + """ + + self._pending_validation = pending_validation + + @property + def priority(self): + """Gets the priority of this CondaUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CondaUpstream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CondaUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CondaUpstream. + :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 CondaUpstream. + + + :return: The slug_perm of this CondaUpstream. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this CondaUpstream. + + + :param slug_perm: The slug_perm of this CondaUpstream. + :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 CondaUpstream. + + + :return: The updated_at of this CondaUpstream. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this CondaUpstream. + + + :param updated_at: The updated_at of this CondaUpstream. + :type: datetime + """ + + self._updated_at = updated_at + + @property + def upstream_url(self): + """Gets the upstream_url of this CondaUpstream. + + 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 CondaUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this CondaUpstream. + + 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 CondaUpstream. + :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 CondaUpstream. + + 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 CondaUpstream. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CondaUpstream. + + 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 CondaUpstream. + :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(CondaUpstream, 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, CondaUpstream): + 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, CondaUpstream): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py b/bindings/python/src/cloudsmith_api/models/conda_upstream_request.py new file mode 100644 index 00000000..e03af589 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/conda_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 CondaUpstreamRequest(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 + """CondaUpstreamRequest - 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 CondaUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CondaUpstreamRequest. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CondaUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CondaUpstreamRequest. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CondaUpstreamRequest. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + Username to provide with requests to upstream. + + :return: The auth_username of this CondaUpstreamRequest. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CondaUpstreamRequest. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CondaUpstreamRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CondaUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CondaUpstreamRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # 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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CondaUpstreamRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CondaUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CondaUpstreamRequest. + :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(self): + """Gets the upstream_url of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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 CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CondaUpstreamRequest. + + 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 CondaUpstreamRequest. + :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(CondaUpstreamRequest, 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, CondaUpstreamRequest): + 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, CondaUpstreamRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/conda_upstream_request_patch.py new file mode 100644 index 00000000..18384c0b --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/conda_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 CondaUpstreamRequestPatch(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 + """CondaUpstreamRequestPatch - 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 CondaUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CondaUpstreamRequestPatch. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CondaUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CondaUpstreamRequestPatch. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CondaUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :return: The auth_username of this CondaUpstreamRequestPatch. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CondaUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CondaUpstreamRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CondaUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CondaUpstreamRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :type: str + """ + allowed_values = ["Proxy Only", "Cache and Proxy"] # 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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CondaUpstreamRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CondaUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CondaUpstreamRequestPatch. + :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(self): + """Gets the upstream_url of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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 CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CondaUpstreamRequestPatch. + + 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 CondaUpstreamRequestPatch. + :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(CondaUpstreamRequestPatch, 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, CondaUpstreamRequestPatch): + 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, CondaUpstreamRequestPatch): + return True + + return self.to_dict() != other.to_dict() + 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/dynamic_mapping.py b/bindings/python/src/cloudsmith_api/models/dynamic_mapping.py new file mode 100644 index 00000000..3c57b808 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/dynamic_mapping.py @@ -0,0 +1,162 @@ +# 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 DynamicMapping(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 = { + 'claim_value': 'str', + 'service_account': 'str' + } + + attribute_map = { + 'claim_value': 'claim_value', + 'service_account': 'service_account' + } + + def __init__(self, claim_value=None, service_account=None, _configuration=None): # noqa: E501 + """DynamicMapping - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._claim_value = None + self._service_account = None + self.discriminator = None + + self.claim_value = claim_value + self.service_account = service_account + + @property + def claim_value(self): + """Gets the claim_value of this DynamicMapping. + + The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The claim_value of this DynamicMapping. + :rtype: str + """ + return self._claim_value + + @claim_value.setter + def claim_value(self, claim_value): + """Sets the claim_value of this DynamicMapping. + + The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param claim_value: The claim_value of this DynamicMapping. + :type: str + """ + if self._configuration.client_side_validation and claim_value is None: + raise ValueError("Invalid value for `claim_value`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + claim_value is not None and len(claim_value) < 1): + raise ValueError("Invalid value for `claim_value`, length must be greater than or equal to `1`") # noqa: E501 + + self._claim_value = claim_value + + @property + def service_account(self): + """Gets the service_account of this DynamicMapping. + + The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The service_account of this DynamicMapping. + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """Sets the service_account of this DynamicMapping. + + The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param service_account: The service_account of this DynamicMapping. + :type: str + """ + if self._configuration.client_side_validation and service_account is None: + raise ValueError("Invalid value for `service_account`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + service_account is not None and len(service_account) < 1): + raise ValueError("Invalid value for `service_account`, length must be greater than or equal to `1`") # noqa: E501 + + self._service_account = service_account + + 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(DynamicMapping, 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, DynamicMapping): + 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, DynamicMapping): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/go_upstream.py b/bindings/python/src/cloudsmith_api/models/go_upstream.py index 8414f000..6a520846 100644 --- a/bindings/python/src/cloudsmith_api/models/go_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/go_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/go_upstream_request.py b/bindings/python/src/cloudsmith_api/models/go_upstream_request.py index 7f46697b..7a59b632 100644 --- a/bindings/python/src/cloudsmith_api/models/go_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/go_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/go_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py index b4df5e33..59e3809a 100644 --- a/bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/go_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/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/huggingface_package_upload.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py new file mode 100644 index 00000000..31841796 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py @@ -0,0 +1,2276 @@ +# 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 HuggingfacePackageUpload(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 = { + 'architectures': 'list[Architecture]', + 'cdn_url': 'str', + 'checksum_md5': 'str', + 'checksum_sha1': 'str', + 'checksum_sha256': 'str', + 'checksum_sha512': 'str', + 'dependencies_checksum_md5': 'str', + 'dependencies_url': 'str', + 'description': 'str', + 'display_name': 'str', + 'distro': 'Distribution', + 'distro_version': 'DistributionVersion', + 'downloads': 'int', + 'epoch': 'int', + 'extension': 'str', + 'filename': 'str', + 'files': 'list[PackageFile]', + 'format': 'str', + 'format_url': 'str', + 'freeable_storage': 'int', + 'fully_qualified_name': 'str', + 'identifier_perm': 'str', + 'identifiers': 'dict(str, str)', + 'indexed': 'bool', + 'is_cancellable': 'bool', + 'is_copyable': 'bool', + 'is_deleteable': 'bool', + 'is_downloadable': 'bool', + 'is_moveable': 'bool', + 'is_quarantinable': 'bool', + 'is_quarantined': 'bool', + 'is_resyncable': 'bool', + 'is_security_scannable': 'bool', + 'is_sync_awaiting': 'bool', + 'is_sync_completed': 'bool', + 'is_sync_failed': 'bool', + 'is_sync_in_flight': 'bool', + 'is_sync_in_progress': 'bool', + 'license': 'str', + 'name': 'str', + 'namespace': 'str', + 'namespace_url': 'str', + 'num_files': 'int', + 'origin_repository': 'str', + 'origin_repository_url': 'str', + 'package_type': 'int', + 'policy_violated': 'bool', + 'release': 'str', + 'repository': 'str', + 'repository_url': 'str', + 'security_scan_completed_at': 'datetime', + 'security_scan_started_at': 'datetime', + 'security_scan_status': 'str', + 'security_scan_status_updated_at': 'datetime', + 'self_html_url': 'str', + 'self_url': 'str', + 'signature_url': 'str', + 'size': 'int', + 'slug': 'str', + 'slug_perm': 'str', + 'stage': 'int', + 'stage_str': 'str', + 'stage_updated_at': 'datetime', + 'status': 'int', + 'status_reason': 'str', + 'status_str': 'str', + 'status_updated_at': 'datetime', + 'status_url': 'str', + 'subtype': 'str', + 'summary': 'str', + 'sync_finished_at': 'datetime', + 'sync_progress': 'int', + 'tags_immutable': 'Tags', + 'type_display': 'str', + 'uploaded_at': 'datetime', + 'uploader': 'str', + 'uploader_url': 'str', + 'version': 'str', + 'version_orig': 'str', + 'vulnerability_scan_results_url': 'str' + } + + attribute_map = { + 'architectures': 'architectures', + 'cdn_url': 'cdn_url', + 'checksum_md5': 'checksum_md5', + 'checksum_sha1': 'checksum_sha1', + 'checksum_sha256': 'checksum_sha256', + 'checksum_sha512': 'checksum_sha512', + 'dependencies_checksum_md5': 'dependencies_checksum_md5', + 'dependencies_url': 'dependencies_url', + 'description': 'description', + 'display_name': 'display_name', + 'distro': 'distro', + 'distro_version': 'distro_version', + 'downloads': 'downloads', + 'epoch': 'epoch', + 'extension': 'extension', + 'filename': 'filename', + 'files': 'files', + 'format': 'format', + 'format_url': 'format_url', + 'freeable_storage': 'freeable_storage', + 'fully_qualified_name': 'fully_qualified_name', + 'identifier_perm': 'identifier_perm', + 'identifiers': 'identifiers', + 'indexed': 'indexed', + 'is_cancellable': 'is_cancellable', + 'is_copyable': 'is_copyable', + 'is_deleteable': 'is_deleteable', + 'is_downloadable': 'is_downloadable', + 'is_moveable': 'is_moveable', + 'is_quarantinable': 'is_quarantinable', + 'is_quarantined': 'is_quarantined', + 'is_resyncable': 'is_resyncable', + 'is_security_scannable': 'is_security_scannable', + 'is_sync_awaiting': 'is_sync_awaiting', + 'is_sync_completed': 'is_sync_completed', + 'is_sync_failed': 'is_sync_failed', + 'is_sync_in_flight': 'is_sync_in_flight', + 'is_sync_in_progress': 'is_sync_in_progress', + 'license': 'license', + 'name': 'name', + 'namespace': 'namespace', + 'namespace_url': 'namespace_url', + 'num_files': 'num_files', + 'origin_repository': 'origin_repository', + 'origin_repository_url': 'origin_repository_url', + 'package_type': 'package_type', + 'policy_violated': 'policy_violated', + 'release': 'release', + 'repository': 'repository', + 'repository_url': 'repository_url', + 'security_scan_completed_at': 'security_scan_completed_at', + 'security_scan_started_at': 'security_scan_started_at', + 'security_scan_status': 'security_scan_status', + 'security_scan_status_updated_at': 'security_scan_status_updated_at', + 'self_html_url': 'self_html_url', + 'self_url': 'self_url', + 'signature_url': 'signature_url', + 'size': 'size', + 'slug': 'slug', + 'slug_perm': 'slug_perm', + 'stage': 'stage', + 'stage_str': 'stage_str', + 'stage_updated_at': 'stage_updated_at', + 'status': 'status', + 'status_reason': 'status_reason', + 'status_str': 'status_str', + 'status_updated_at': 'status_updated_at', + 'status_url': 'status_url', + 'subtype': 'subtype', + 'summary': 'summary', + 'sync_finished_at': 'sync_finished_at', + 'sync_progress': 'sync_progress', + 'tags_immutable': 'tags_immutable', + 'type_display': 'type_display', + 'uploaded_at': 'uploaded_at', + 'uploader': 'uploader', + 'uploader_url': 'uploader_url', + 'version': 'version', + 'version_orig': 'version_orig', + 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' + } + + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, freeable_storage=None, fully_qualified_name=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, package_type=None, policy_violated=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """HuggingfacePackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._architectures = None + self._cdn_url = None + self._checksum_md5 = None + self._checksum_sha1 = None + self._checksum_sha256 = None + self._checksum_sha512 = None + self._dependencies_checksum_md5 = None + self._dependencies_url = None + self._description = None + self._display_name = None + self._distro = None + self._distro_version = None + self._downloads = None + self._epoch = None + self._extension = None + self._filename = None + self._files = None + self._format = None + self._format_url = None + self._freeable_storage = None + self._fully_qualified_name = None + self._identifier_perm = None + self._identifiers = None + self._indexed = None + self._is_cancellable = None + self._is_copyable = None + self._is_deleteable = None + self._is_downloadable = None + self._is_moveable = None + self._is_quarantinable = None + self._is_quarantined = None + self._is_resyncable = None + self._is_security_scannable = None + self._is_sync_awaiting = None + self._is_sync_completed = None + self._is_sync_failed = None + self._is_sync_in_flight = None + self._is_sync_in_progress = None + self._license = None + self._name = None + self._namespace = None + self._namespace_url = None + self._num_files = None + self._origin_repository = None + self._origin_repository_url = None + self._package_type = None + self._policy_violated = None + self._release = None + self._repository = None + self._repository_url = None + self._security_scan_completed_at = None + self._security_scan_started_at = None + self._security_scan_status = None + self._security_scan_status_updated_at = None + self._self_html_url = None + self._self_url = None + self._signature_url = None + self._size = None + self._slug = None + self._slug_perm = None + self._stage = None + self._stage_str = None + self._stage_updated_at = None + self._status = None + self._status_reason = None + self._status_str = None + self._status_updated_at = None + self._status_url = None + self._subtype = None + self._summary = None + self._sync_finished_at = None + self._sync_progress = None + self._tags_immutable = None + self._type_display = None + self._uploaded_at = None + self._uploader = None + self._uploader_url = None + self._version = None + self._version_orig = None + self._vulnerability_scan_results_url = None + self.discriminator = None + + if architectures is not None: + self.architectures = architectures + if cdn_url is not None: + self.cdn_url = cdn_url + if checksum_md5 is not None: + self.checksum_md5 = checksum_md5 + if checksum_sha1 is not None: + self.checksum_sha1 = checksum_sha1 + if checksum_sha256 is not None: + self.checksum_sha256 = checksum_sha256 + if checksum_sha512 is not None: + self.checksum_sha512 = checksum_sha512 + if dependencies_checksum_md5 is not None: + self.dependencies_checksum_md5 = dependencies_checksum_md5 + if dependencies_url is not None: + self.dependencies_url = dependencies_url + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if distro is not None: + self.distro = distro + if distro_version is not None: + self.distro_version = distro_version + if downloads is not None: + self.downloads = downloads + if epoch is not None: + self.epoch = epoch + if extension is not None: + self.extension = extension + if filename is not None: + self.filename = filename + if files is not None: + self.files = files + if format is not None: + self.format = format + if format_url is not None: + self.format_url = format_url + if freeable_storage is not None: + self.freeable_storage = freeable_storage + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name + if identifier_perm is not None: + self.identifier_perm = identifier_perm + if identifiers is not None: + self.identifiers = identifiers + if indexed is not None: + self.indexed = indexed + if is_cancellable is not None: + self.is_cancellable = is_cancellable + if is_copyable is not None: + self.is_copyable = is_copyable + if is_deleteable is not None: + self.is_deleteable = is_deleteable + if is_downloadable is not None: + self.is_downloadable = is_downloadable + if is_moveable is not None: + self.is_moveable = is_moveable + if is_quarantinable is not None: + self.is_quarantinable = is_quarantinable + if is_quarantined is not None: + self.is_quarantined = is_quarantined + if is_resyncable is not None: + self.is_resyncable = is_resyncable + if is_security_scannable is not None: + self.is_security_scannable = is_security_scannable + if is_sync_awaiting is not None: + self.is_sync_awaiting = is_sync_awaiting + if is_sync_completed is not None: + self.is_sync_completed = is_sync_completed + if is_sync_failed is not None: + self.is_sync_failed = is_sync_failed + if is_sync_in_flight is not None: + self.is_sync_in_flight = is_sync_in_flight + if is_sync_in_progress is not None: + self.is_sync_in_progress = is_sync_in_progress + if license is not None: + self.license = license + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if namespace_url is not None: + self.namespace_url = namespace_url + if num_files is not None: + self.num_files = num_files + if origin_repository is not None: + self.origin_repository = origin_repository + if origin_repository_url is not None: + self.origin_repository_url = origin_repository_url + if package_type is not None: + self.package_type = package_type + if policy_violated is not None: + self.policy_violated = policy_violated + if release is not None: + self.release = release + if repository is not None: + self.repository = repository + if repository_url is not None: + self.repository_url = repository_url + if security_scan_completed_at is not None: + self.security_scan_completed_at = security_scan_completed_at + if security_scan_started_at is not None: + self.security_scan_started_at = security_scan_started_at + if security_scan_status is not None: + self.security_scan_status = security_scan_status + if security_scan_status_updated_at is not None: + self.security_scan_status_updated_at = security_scan_status_updated_at + if self_html_url is not None: + self.self_html_url = self_html_url + if self_url is not None: + self.self_url = self_url + if signature_url is not None: + self.signature_url = signature_url + if size is not None: + self.size = size + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + if stage is not None: + self.stage = stage + if stage_str is not None: + self.stage_str = stage_str + if stage_updated_at is not None: + self.stage_updated_at = stage_updated_at + if status is not None: + self.status = status + if status_reason is not None: + self.status_reason = status_reason + if status_str is not None: + self.status_str = status_str + if status_updated_at is not None: + self.status_updated_at = status_updated_at + if status_url is not None: + self.status_url = status_url + if subtype is not None: + self.subtype = subtype + if summary is not None: + self.summary = summary + if sync_finished_at is not None: + self.sync_finished_at = sync_finished_at + if sync_progress is not None: + self.sync_progress = sync_progress + if tags_immutable is not None: + self.tags_immutable = tags_immutable + if type_display is not None: + self.type_display = type_display + if uploaded_at is not None: + self.uploaded_at = uploaded_at + if uploader is not None: + self.uploader = uploader + if uploader_url is not None: + self.uploader_url = uploader_url + if version is not None: + self.version = version + if version_orig is not None: + self.version_orig = version_orig + if vulnerability_scan_results_url is not None: + self.vulnerability_scan_results_url = vulnerability_scan_results_url + + @property + def architectures(self): + """Gets the architectures of this HuggingfacePackageUpload. + + + :return: The architectures of this HuggingfacePackageUpload. + :rtype: list[Architecture] + """ + return self._architectures + + @architectures.setter + def architectures(self, architectures): + """Sets the architectures of this HuggingfacePackageUpload. + + + :param architectures: The architectures of this HuggingfacePackageUpload. + :type: list[Architecture] + """ + + self._architectures = architectures + + @property + def cdn_url(self): + """Gets the cdn_url of this HuggingfacePackageUpload. + + + :return: The cdn_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._cdn_url + + @cdn_url.setter + def cdn_url(self, cdn_url): + """Sets the cdn_url of this HuggingfacePackageUpload. + + + :param cdn_url: The cdn_url of this HuggingfacePackageUpload. + :type: str + """ + + self._cdn_url = cdn_url + + @property + def checksum_md5(self): + """Gets the checksum_md5 of this HuggingfacePackageUpload. + + + :return: The checksum_md5 of this HuggingfacePackageUpload. + :rtype: str + """ + return self._checksum_md5 + + @checksum_md5.setter + def checksum_md5(self, checksum_md5): + """Sets the checksum_md5 of this HuggingfacePackageUpload. + + + :param checksum_md5: The checksum_md5 of this HuggingfacePackageUpload. + :type: str + """ + + self._checksum_md5 = checksum_md5 + + @property + def checksum_sha1(self): + """Gets the checksum_sha1 of this HuggingfacePackageUpload. + + + :return: The checksum_sha1 of this HuggingfacePackageUpload. + :rtype: str + """ + return self._checksum_sha1 + + @checksum_sha1.setter + def checksum_sha1(self, checksum_sha1): + """Sets the checksum_sha1 of this HuggingfacePackageUpload. + + + :param checksum_sha1: The checksum_sha1 of this HuggingfacePackageUpload. + :type: str + """ + + self._checksum_sha1 = checksum_sha1 + + @property + def checksum_sha256(self): + """Gets the checksum_sha256 of this HuggingfacePackageUpload. + + + :return: The checksum_sha256 of this HuggingfacePackageUpload. + :rtype: str + """ + return self._checksum_sha256 + + @checksum_sha256.setter + def checksum_sha256(self, checksum_sha256): + """Sets the checksum_sha256 of this HuggingfacePackageUpload. + + + :param checksum_sha256: The checksum_sha256 of this HuggingfacePackageUpload. + :type: str + """ + + self._checksum_sha256 = checksum_sha256 + + @property + def checksum_sha512(self): + """Gets the checksum_sha512 of this HuggingfacePackageUpload. + + + :return: The checksum_sha512 of this HuggingfacePackageUpload. + :rtype: str + """ + return self._checksum_sha512 + + @checksum_sha512.setter + def checksum_sha512(self, checksum_sha512): + """Sets the checksum_sha512 of this HuggingfacePackageUpload. + + + :param checksum_sha512: The checksum_sha512 of this HuggingfacePackageUpload. + :type: str + """ + + self._checksum_sha512 = checksum_sha512 + + @property + def dependencies_checksum_md5(self): + """Gets the dependencies_checksum_md5 of this HuggingfacePackageUpload. + + A checksum of all of the package's dependencies. + + :return: The dependencies_checksum_md5 of this HuggingfacePackageUpload. + :rtype: str + """ + return self._dependencies_checksum_md5 + + @dependencies_checksum_md5.setter + def dependencies_checksum_md5(self, dependencies_checksum_md5): + """Sets the dependencies_checksum_md5 of this HuggingfacePackageUpload. + + A checksum of all of the package's dependencies. + + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this HuggingfacePackageUpload. + :type: str + """ + + self._dependencies_checksum_md5 = dependencies_checksum_md5 + + @property + def dependencies_url(self): + """Gets the dependencies_url of this HuggingfacePackageUpload. + + + :return: The dependencies_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._dependencies_url + + @dependencies_url.setter + def dependencies_url(self, dependencies_url): + """Sets the dependencies_url of this HuggingfacePackageUpload. + + + :param dependencies_url: The dependencies_url of this HuggingfacePackageUpload. + :type: str + """ + + self._dependencies_url = dependencies_url + + @property + def description(self): + """Gets the description of this HuggingfacePackageUpload. + + A textual description of this package. + + :return: The description of this HuggingfacePackageUpload. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this HuggingfacePackageUpload. + + A textual description of this package. + + :param description: The description of this HuggingfacePackageUpload. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this HuggingfacePackageUpload. + + + :return: The display_name of this HuggingfacePackageUpload. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this HuggingfacePackageUpload. + + + :param display_name: The display_name of this HuggingfacePackageUpload. + :type: str + """ + + self._display_name = display_name + + @property + def distro(self): + """Gets the distro of this HuggingfacePackageUpload. + + + :return: The distro of this HuggingfacePackageUpload. + :rtype: Distribution + """ + return self._distro + + @distro.setter + def distro(self, distro): + """Sets the distro of this HuggingfacePackageUpload. + + + :param distro: The distro of this HuggingfacePackageUpload. + :type: Distribution + """ + + self._distro = distro + + @property + def distro_version(self): + """Gets the distro_version of this HuggingfacePackageUpload. + + + :return: The distro_version of this HuggingfacePackageUpload. + :rtype: DistributionVersion + """ + return self._distro_version + + @distro_version.setter + def distro_version(self, distro_version): + """Sets the distro_version of this HuggingfacePackageUpload. + + + :param distro_version: The distro_version of this HuggingfacePackageUpload. + :type: DistributionVersion + """ + + self._distro_version = distro_version + + @property + def downloads(self): + """Gets the downloads of this HuggingfacePackageUpload. + + + :return: The downloads of this HuggingfacePackageUpload. + :rtype: int + """ + return self._downloads + + @downloads.setter + def downloads(self, downloads): + """Sets the downloads of this HuggingfacePackageUpload. + + + :param downloads: The downloads of this HuggingfacePackageUpload. + :type: int + """ + + self._downloads = downloads + + @property + def epoch(self): + """Gets the epoch of this HuggingfacePackageUpload. + + The epoch of the package version (if any). + + :return: The epoch of this HuggingfacePackageUpload. + :rtype: int + """ + return self._epoch + + @epoch.setter + def epoch(self, epoch): + """Sets the epoch of this HuggingfacePackageUpload. + + The epoch of the package version (if any). + + :param epoch: The epoch of this HuggingfacePackageUpload. + :type: int + """ + + self._epoch = epoch + + @property + def extension(self): + """Gets the extension of this HuggingfacePackageUpload. + + + :return: The extension of this HuggingfacePackageUpload. + :rtype: str + """ + return self._extension + + @extension.setter + def extension(self, extension): + """Sets the extension of this HuggingfacePackageUpload. + + + :param extension: The extension of this HuggingfacePackageUpload. + :type: str + """ + + self._extension = extension + + @property + def filename(self): + """Gets the filename of this HuggingfacePackageUpload. + + + :return: The filename of this HuggingfacePackageUpload. + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this HuggingfacePackageUpload. + + + :param filename: The filename of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + filename is not None and len(filename) < 1): + raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 + + self._filename = filename + + @property + def files(self): + """Gets the files of this HuggingfacePackageUpload. + + + :return: The files of this HuggingfacePackageUpload. + :rtype: list[PackageFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this HuggingfacePackageUpload. + + + :param files: The files of this HuggingfacePackageUpload. + :type: list[PackageFile] + """ + + self._files = files + + @property + def format(self): + """Gets the format of this HuggingfacePackageUpload. + + + :return: The format of this HuggingfacePackageUpload. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this HuggingfacePackageUpload. + + + :param format: The format of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + format is not None and len(format) < 1): + raise ValueError("Invalid value for `format`, length must be greater than or equal to `1`") # noqa: E501 + + self._format = format + + @property + def format_url(self): + """Gets the format_url of this HuggingfacePackageUpload. + + + :return: The format_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._format_url + + @format_url.setter + def format_url(self, format_url): + """Sets the format_url of this HuggingfacePackageUpload. + + + :param format_url: The format_url of this HuggingfacePackageUpload. + :type: str + """ + + self._format_url = format_url + + @property + def freeable_storage(self): + """Gets the freeable_storage of this HuggingfacePackageUpload. + + Amount of storage that will be freed if this package is deleted + + :return: The freeable_storage of this HuggingfacePackageUpload. + :rtype: int + """ + return self._freeable_storage + + @freeable_storage.setter + def freeable_storage(self, freeable_storage): + """Sets the freeable_storage of this HuggingfacePackageUpload. + + Amount of storage that will be freed if this package is deleted + + :param freeable_storage: The freeable_storage of this HuggingfacePackageUpload. + :type: int + """ + + self._freeable_storage = freeable_storage + + @property + def fully_qualified_name(self): + """Gets the fully_qualified_name of this HuggingfacePackageUpload. + + + :return: The fully_qualified_name of this HuggingfacePackageUpload. + :rtype: str + """ + return self._fully_qualified_name + + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this HuggingfacePackageUpload. + + + :param fully_qualified_name: The fully_qualified_name of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + fully_qualified_name is not None and len(fully_qualified_name) < 1): + raise ValueError("Invalid value for `fully_qualified_name`, length must be greater than or equal to `1`") # noqa: E501 + + self._fully_qualified_name = fully_qualified_name + + @property + def identifier_perm(self): + """Gets the identifier_perm of this HuggingfacePackageUpload. + + Unique and permanent identifier for the package. + + :return: The identifier_perm of this HuggingfacePackageUpload. + :rtype: str + """ + return self._identifier_perm + + @identifier_perm.setter + def identifier_perm(self, identifier_perm): + """Sets the identifier_perm of this HuggingfacePackageUpload. + + Unique and permanent identifier for the package. + + :param identifier_perm: The identifier_perm of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + identifier_perm is not None and len(identifier_perm) < 1): + raise ValueError("Invalid value for `identifier_perm`, length must be greater than or equal to `1`") # noqa: E501 + + self._identifier_perm = identifier_perm + + @property + def identifiers(self): + """Gets the identifiers of this HuggingfacePackageUpload. + + Return a map of identifier field names and their values. + + :return: The identifiers of this HuggingfacePackageUpload. + :rtype: dict(str, str) + """ + return self._identifiers + + @identifiers.setter + def identifiers(self, identifiers): + """Sets the identifiers of this HuggingfacePackageUpload. + + Return a map of identifier field names and their values. + + :param identifiers: The identifiers of this HuggingfacePackageUpload. + :type: dict(str, str) + """ + + self._identifiers = identifiers + + @property + def indexed(self): + """Gets the indexed of this HuggingfacePackageUpload. + + + :return: The indexed of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._indexed + + @indexed.setter + def indexed(self, indexed): + """Sets the indexed of this HuggingfacePackageUpload. + + + :param indexed: The indexed of this HuggingfacePackageUpload. + :type: bool + """ + + self._indexed = indexed + + @property + def is_cancellable(self): + """Gets the is_cancellable of this HuggingfacePackageUpload. + + + :return: The is_cancellable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_cancellable + + @is_cancellable.setter + def is_cancellable(self, is_cancellable): + """Sets the is_cancellable of this HuggingfacePackageUpload. + + + :param is_cancellable: The is_cancellable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_cancellable = is_cancellable + + @property + def is_copyable(self): + """Gets the is_copyable of this HuggingfacePackageUpload. + + + :return: The is_copyable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_copyable + + @is_copyable.setter + def is_copyable(self, is_copyable): + """Sets the is_copyable of this HuggingfacePackageUpload. + + + :param is_copyable: The is_copyable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_copyable = is_copyable + + @property + def is_deleteable(self): + """Gets the is_deleteable of this HuggingfacePackageUpload. + + + :return: The is_deleteable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_deleteable + + @is_deleteable.setter + def is_deleteable(self, is_deleteable): + """Sets the is_deleteable of this HuggingfacePackageUpload. + + + :param is_deleteable: The is_deleteable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_deleteable = is_deleteable + + @property + def is_downloadable(self): + """Gets the is_downloadable of this HuggingfacePackageUpload. + + + :return: The is_downloadable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_downloadable + + @is_downloadable.setter + def is_downloadable(self, is_downloadable): + """Sets the is_downloadable of this HuggingfacePackageUpload. + + + :param is_downloadable: The is_downloadable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_downloadable = is_downloadable + + @property + def is_moveable(self): + """Gets the is_moveable of this HuggingfacePackageUpload. + + + :return: The is_moveable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_moveable + + @is_moveable.setter + def is_moveable(self, is_moveable): + """Sets the is_moveable of this HuggingfacePackageUpload. + + + :param is_moveable: The is_moveable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_moveable = is_moveable + + @property + def is_quarantinable(self): + """Gets the is_quarantinable of this HuggingfacePackageUpload. + + + :return: The is_quarantinable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_quarantinable + + @is_quarantinable.setter + def is_quarantinable(self, is_quarantinable): + """Sets the is_quarantinable of this HuggingfacePackageUpload. + + + :param is_quarantinable: The is_quarantinable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_quarantinable = is_quarantinable + + @property + def is_quarantined(self): + """Gets the is_quarantined of this HuggingfacePackageUpload. + + + :return: The is_quarantined of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_quarantined + + @is_quarantined.setter + def is_quarantined(self, is_quarantined): + """Sets the is_quarantined of this HuggingfacePackageUpload. + + + :param is_quarantined: The is_quarantined of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_quarantined = is_quarantined + + @property + def is_resyncable(self): + """Gets the is_resyncable of this HuggingfacePackageUpload. + + + :return: The is_resyncable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_resyncable + + @is_resyncable.setter + def is_resyncable(self, is_resyncable): + """Sets the is_resyncable of this HuggingfacePackageUpload. + + + :param is_resyncable: The is_resyncable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_resyncable = is_resyncable + + @property + def is_security_scannable(self): + """Gets the is_security_scannable of this HuggingfacePackageUpload. + + + :return: The is_security_scannable of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_security_scannable + + @is_security_scannable.setter + def is_security_scannable(self, is_security_scannable): + """Sets the is_security_scannable of this HuggingfacePackageUpload. + + + :param is_security_scannable: The is_security_scannable of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_security_scannable = is_security_scannable + + @property + def is_sync_awaiting(self): + """Gets the is_sync_awaiting of this HuggingfacePackageUpload. + + + :return: The is_sync_awaiting of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_sync_awaiting + + @is_sync_awaiting.setter + def is_sync_awaiting(self, is_sync_awaiting): + """Sets the is_sync_awaiting of this HuggingfacePackageUpload. + + + :param is_sync_awaiting: The is_sync_awaiting of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_sync_awaiting = is_sync_awaiting + + @property + def is_sync_completed(self): + """Gets the is_sync_completed of this HuggingfacePackageUpload. + + + :return: The is_sync_completed of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_sync_completed + + @is_sync_completed.setter + def is_sync_completed(self, is_sync_completed): + """Sets the is_sync_completed of this HuggingfacePackageUpload. + + + :param is_sync_completed: The is_sync_completed of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_sync_completed = is_sync_completed + + @property + def is_sync_failed(self): + """Gets the is_sync_failed of this HuggingfacePackageUpload. + + + :return: The is_sync_failed of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_sync_failed + + @is_sync_failed.setter + def is_sync_failed(self, is_sync_failed): + """Sets the is_sync_failed of this HuggingfacePackageUpload. + + + :param is_sync_failed: The is_sync_failed of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_sync_failed = is_sync_failed + + @property + def is_sync_in_flight(self): + """Gets the is_sync_in_flight of this HuggingfacePackageUpload. + + + :return: The is_sync_in_flight of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_sync_in_flight + + @is_sync_in_flight.setter + def is_sync_in_flight(self, is_sync_in_flight): + """Sets the is_sync_in_flight of this HuggingfacePackageUpload. + + + :param is_sync_in_flight: The is_sync_in_flight of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_sync_in_flight = is_sync_in_flight + + @property + def is_sync_in_progress(self): + """Gets the is_sync_in_progress of this HuggingfacePackageUpload. + + + :return: The is_sync_in_progress of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_sync_in_progress + + @is_sync_in_progress.setter + def is_sync_in_progress(self, is_sync_in_progress): + """Sets the is_sync_in_progress of this HuggingfacePackageUpload. + + + :param is_sync_in_progress: The is_sync_in_progress of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_sync_in_progress = is_sync_in_progress + + @property + def license(self): + """Gets the license of this HuggingfacePackageUpload. + + The license of this package. + + :return: The license of this HuggingfacePackageUpload. + :rtype: str + """ + return self._license + + @license.setter + def license(self, license): + """Sets the license of this HuggingfacePackageUpload. + + The license of this package. + + :param license: The license of this HuggingfacePackageUpload. + :type: str + """ + + self._license = license + + @property + def name(self): + """Gets the name of this HuggingfacePackageUpload. + + The name of this package. + + :return: The name of this HuggingfacePackageUpload. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this HuggingfacePackageUpload. + + The name of this package. + + :param name: The name of this HuggingfacePackageUpload. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this HuggingfacePackageUpload. + + + :return: The namespace of this HuggingfacePackageUpload. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this HuggingfacePackageUpload. + + + :param namespace: The namespace of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + namespace is not None and len(namespace) < 1): + raise ValueError("Invalid value for `namespace`, length must be greater than or equal to `1`") # noqa: E501 + + self._namespace = namespace + + @property + def namespace_url(self): + """Gets the namespace_url of this HuggingfacePackageUpload. + + + :return: The namespace_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._namespace_url + + @namespace_url.setter + def namespace_url(self, namespace_url): + """Sets the namespace_url of this HuggingfacePackageUpload. + + + :param namespace_url: The namespace_url of this HuggingfacePackageUpload. + :type: str + """ + + self._namespace_url = namespace_url + + @property + def num_files(self): + """Gets the num_files of this HuggingfacePackageUpload. + + + :return: The num_files of this HuggingfacePackageUpload. + :rtype: int + """ + return self._num_files + + @num_files.setter + def num_files(self, num_files): + """Sets the num_files of this HuggingfacePackageUpload. + + + :param num_files: The num_files of this HuggingfacePackageUpload. + :type: int + """ + + self._num_files = num_files + + @property + def origin_repository(self): + """Gets the origin_repository of this HuggingfacePackageUpload. + + + :return: The origin_repository of this HuggingfacePackageUpload. + :rtype: str + """ + return self._origin_repository + + @origin_repository.setter + def origin_repository(self, origin_repository): + """Sets the origin_repository of this HuggingfacePackageUpload. + + + :param origin_repository: The origin_repository of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + origin_repository is not None and len(origin_repository) < 1): + raise ValueError("Invalid value for `origin_repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._origin_repository = origin_repository + + @property + def origin_repository_url(self): + """Gets the origin_repository_url of this HuggingfacePackageUpload. + + + :return: The origin_repository_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._origin_repository_url + + @origin_repository_url.setter + def origin_repository_url(self, origin_repository_url): + """Sets the origin_repository_url of this HuggingfacePackageUpload. + + + :param origin_repository_url: The origin_repository_url of this HuggingfacePackageUpload. + :type: str + """ + + self._origin_repository_url = origin_repository_url + + @property + def package_type(self): + """Gets the package_type of this HuggingfacePackageUpload. + + The type of package contents. + + :return: The package_type of this HuggingfacePackageUpload. + :rtype: int + """ + return self._package_type + + @package_type.setter + def package_type(self, package_type): + """Sets the package_type of this HuggingfacePackageUpload. + + The type of package contents. + + :param package_type: The package_type of this HuggingfacePackageUpload. + :type: int + """ + + self._package_type = package_type + + @property + def policy_violated(self): + """Gets the policy_violated of this HuggingfacePackageUpload. + + Whether or not the package has violated any policy. + + :return: The policy_violated of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._policy_violated + + @policy_violated.setter + def policy_violated(self, policy_violated): + """Sets the policy_violated of this HuggingfacePackageUpload. + + Whether or not the package has violated any policy. + + :param policy_violated: The policy_violated of this HuggingfacePackageUpload. + :type: bool + """ + + self._policy_violated = policy_violated + + @property + def release(self): + """Gets the release of this HuggingfacePackageUpload. + + The release of the package version (if any). + + :return: The release of this HuggingfacePackageUpload. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this HuggingfacePackageUpload. + + The release of the package version (if any). + + :param release: The release of this HuggingfacePackageUpload. + :type: str + """ + + self._release = release + + @property + def repository(self): + """Gets the repository of this HuggingfacePackageUpload. + + + :return: The repository of this HuggingfacePackageUpload. + :rtype: str + """ + return self._repository + + @repository.setter + def repository(self, repository): + """Sets the repository of this HuggingfacePackageUpload. + + + :param repository: The repository of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + repository is not None and len(repository) < 1): + raise ValueError("Invalid value for `repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._repository = repository + + @property + def repository_url(self): + """Gets the repository_url of this HuggingfacePackageUpload. + + + :return: The repository_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._repository_url + + @repository_url.setter + def repository_url(self, repository_url): + """Sets the repository_url of this HuggingfacePackageUpload. + + + :param repository_url: The repository_url of this HuggingfacePackageUpload. + :type: str + """ + + self._repository_url = repository_url + + @property + def security_scan_completed_at(self): + """Gets the security_scan_completed_at of this HuggingfacePackageUpload. + + The datetime the security scanning was completed. + + :return: The security_scan_completed_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._security_scan_completed_at + + @security_scan_completed_at.setter + def security_scan_completed_at(self, security_scan_completed_at): + """Sets the security_scan_completed_at of this HuggingfacePackageUpload. + + The datetime the security scanning was completed. + + :param security_scan_completed_at: The security_scan_completed_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._security_scan_completed_at = security_scan_completed_at + + @property + def security_scan_started_at(self): + """Gets the security_scan_started_at of this HuggingfacePackageUpload. + + The datetime the security scanning was started. + + :return: The security_scan_started_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._security_scan_started_at + + @security_scan_started_at.setter + def security_scan_started_at(self, security_scan_started_at): + """Sets the security_scan_started_at of this HuggingfacePackageUpload. + + The datetime the security scanning was started. + + :param security_scan_started_at: The security_scan_started_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._security_scan_started_at = security_scan_started_at + + @property + def security_scan_status(self): + """Gets the security_scan_status of this HuggingfacePackageUpload. + + + :return: The security_scan_status of this HuggingfacePackageUpload. + :rtype: str + """ + return self._security_scan_status + + @security_scan_status.setter + def security_scan_status(self, security_scan_status): + """Sets the security_scan_status of this HuggingfacePackageUpload. + + + :param security_scan_status: The security_scan_status of this HuggingfacePackageUpload. + :type: str + """ + allowed_values = ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"] # noqa: E501 + if (self._configuration.client_side_validation and + security_scan_status not in allowed_values): + raise ValueError( + "Invalid value for `security_scan_status` ({0}), must be one of {1}" # noqa: E501 + .format(security_scan_status, allowed_values) + ) + + self._security_scan_status = security_scan_status + + @property + def security_scan_status_updated_at(self): + """Gets the security_scan_status_updated_at of this HuggingfacePackageUpload. + + The datetime the security scanning status was updated. + + :return: The security_scan_status_updated_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._security_scan_status_updated_at + + @security_scan_status_updated_at.setter + def security_scan_status_updated_at(self, security_scan_status_updated_at): + """Sets the security_scan_status_updated_at of this HuggingfacePackageUpload. + + The datetime the security scanning status was updated. + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._security_scan_status_updated_at = security_scan_status_updated_at + + @property + def self_html_url(self): + """Gets the self_html_url of this HuggingfacePackageUpload. + + + :return: The self_html_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._self_html_url + + @self_html_url.setter + def self_html_url(self, self_html_url): + """Sets the self_html_url of this HuggingfacePackageUpload. + + + :param self_html_url: The self_html_url of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + self_html_url is not None and len(self_html_url) < 1): + raise ValueError("Invalid value for `self_html_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_html_url = self_html_url + + @property + def self_url(self): + """Gets the self_url of this HuggingfacePackageUpload. + + + :return: The self_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._self_url + + @self_url.setter + def self_url(self, self_url): + """Sets the self_url of this HuggingfacePackageUpload. + + + :param self_url: The self_url of this HuggingfacePackageUpload. + :type: str + """ + + self._self_url = self_url + + @property + def signature_url(self): + """Gets the signature_url of this HuggingfacePackageUpload. + + + :return: The signature_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._signature_url + + @signature_url.setter + def signature_url(self, signature_url): + """Sets the signature_url of this HuggingfacePackageUpload. + + + :param signature_url: The signature_url of this HuggingfacePackageUpload. + :type: str + """ + + self._signature_url = signature_url + + @property + def size(self): + """Gets the size of this HuggingfacePackageUpload. + + The calculated size of the package. + + :return: The size of this HuggingfacePackageUpload. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this HuggingfacePackageUpload. + + The calculated size of the package. + + :param size: The size of this HuggingfacePackageUpload. + :type: int + """ + + self._size = size + + @property + def slug(self): + """Gets the slug of this HuggingfacePackageUpload. + + The public unique identifier for the package. + + :return: The slug of this HuggingfacePackageUpload. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this HuggingfacePackageUpload. + + The public unique identifier for the package. + + :param slug: The slug of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + slug is not None and len(slug) < 1): + raise ValueError("Invalid value for `slug`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug is not None and not re.search('^[-a-zA-Z0-9_]+$', slug)): # noqa: E501 + raise ValueError(r"Invalid value for `slug`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug = slug + + @property + def slug_perm(self): + """Gets the slug_perm of this HuggingfacePackageUpload. + + + :return: The slug_perm of this HuggingfacePackageUpload. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this HuggingfacePackageUpload. + + + :param slug_perm: The slug_perm of this HuggingfacePackageUpload. + :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 stage(self): + """Gets the stage of this HuggingfacePackageUpload. + + The synchronisation (in progress) stage of the package. + + :return: The stage of this HuggingfacePackageUpload. + :rtype: int + """ + return self._stage + + @stage.setter + def stage(self, stage): + """Sets the stage of this HuggingfacePackageUpload. + + The synchronisation (in progress) stage of the package. + + :param stage: The stage of this HuggingfacePackageUpload. + :type: int + """ + + self._stage = stage + + @property + def stage_str(self): + """Gets the stage_str of this HuggingfacePackageUpload. + + + :return: The stage_str of this HuggingfacePackageUpload. + :rtype: str + """ + return self._stage_str + + @stage_str.setter + def stage_str(self, stage_str): + """Sets the stage_str of this HuggingfacePackageUpload. + + + :param stage_str: The stage_str of this HuggingfacePackageUpload. + :type: str + """ + + self._stage_str = stage_str + + @property + def stage_updated_at(self): + """Gets the stage_updated_at of this HuggingfacePackageUpload. + + The datetime the package stage was updated at. + + :return: The stage_updated_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._stage_updated_at + + @stage_updated_at.setter + def stage_updated_at(self, stage_updated_at): + """Sets the stage_updated_at of this HuggingfacePackageUpload. + + The datetime the package stage was updated at. + + :param stage_updated_at: The stage_updated_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._stage_updated_at = stage_updated_at + + @property + def status(self): + """Gets the status of this HuggingfacePackageUpload. + + The synchronisation status of the package. + + :return: The status of this HuggingfacePackageUpload. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this HuggingfacePackageUpload. + + The synchronisation status of the package. + + :param status: The status of this HuggingfacePackageUpload. + :type: int + """ + + self._status = status + + @property + def status_reason(self): + """Gets the status_reason of this HuggingfacePackageUpload. + + A textual description for the synchronous status reason (if any + + :return: The status_reason of this HuggingfacePackageUpload. + :rtype: str + """ + return self._status_reason + + @status_reason.setter + def status_reason(self, status_reason): + """Sets the status_reason of this HuggingfacePackageUpload. + + A textual description for the synchronous status reason (if any + + :param status_reason: The status_reason of this HuggingfacePackageUpload. + :type: str + """ + + self._status_reason = status_reason + + @property + def status_str(self): + """Gets the status_str of this HuggingfacePackageUpload. + + + :return: The status_str of this HuggingfacePackageUpload. + :rtype: str + """ + return self._status_str + + @status_str.setter + def status_str(self, status_str): + """Sets the status_str of this HuggingfacePackageUpload. + + + :param status_str: The status_str of this HuggingfacePackageUpload. + :type: str + """ + + self._status_str = status_str + + @property + def status_updated_at(self): + """Gets the status_updated_at of this HuggingfacePackageUpload. + + The datetime the package status was updated at. + + :return: The status_updated_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._status_updated_at + + @status_updated_at.setter + def status_updated_at(self, status_updated_at): + """Sets the status_updated_at of this HuggingfacePackageUpload. + + The datetime the package status was updated at. + + :param status_updated_at: The status_updated_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._status_updated_at = status_updated_at + + @property + def status_url(self): + """Gets the status_url of this HuggingfacePackageUpload. + + + :return: The status_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._status_url + + @status_url.setter + def status_url(self, status_url): + """Sets the status_url of this HuggingfacePackageUpload. + + + :param status_url: The status_url of this HuggingfacePackageUpload. + :type: str + """ + + self._status_url = status_url + + @property + def subtype(self): + """Gets the subtype of this HuggingfacePackageUpload. + + + :return: The subtype of this HuggingfacePackageUpload. + :rtype: str + """ + return self._subtype + + @subtype.setter + def subtype(self, subtype): + """Sets the subtype of this HuggingfacePackageUpload. + + + :param subtype: The subtype of this HuggingfacePackageUpload. + :type: str + """ + + self._subtype = subtype + + @property + def summary(self): + """Gets the summary of this HuggingfacePackageUpload. + + A one-liner synopsis of this package. + + :return: The summary of this HuggingfacePackageUpload. + :rtype: str + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this HuggingfacePackageUpload. + + A one-liner synopsis of this package. + + :param summary: The summary of this HuggingfacePackageUpload. + :type: str + """ + + self._summary = summary + + @property + def sync_finished_at(self): + """Gets the sync_finished_at of this HuggingfacePackageUpload. + + The datetime the package sync was finished at. + + :return: The sync_finished_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._sync_finished_at + + @sync_finished_at.setter + def sync_finished_at(self, sync_finished_at): + """Sets the sync_finished_at of this HuggingfacePackageUpload. + + The datetime the package sync was finished at. + + :param sync_finished_at: The sync_finished_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._sync_finished_at = sync_finished_at + + @property + def sync_progress(self): + """Gets the sync_progress of this HuggingfacePackageUpload. + + Synchronisation progress (from 0-100) + + :return: The sync_progress of this HuggingfacePackageUpload. + :rtype: int + """ + return self._sync_progress + + @sync_progress.setter + def sync_progress(self, sync_progress): + """Sets the sync_progress of this HuggingfacePackageUpload. + + Synchronisation progress (from 0-100) + + :param sync_progress: The sync_progress of this HuggingfacePackageUpload. + :type: int + """ + + self._sync_progress = sync_progress + + @property + def tags_immutable(self): + """Gets the tags_immutable of this HuggingfacePackageUpload. + + + :return: The tags_immutable of this HuggingfacePackageUpload. + :rtype: Tags + """ + return self._tags_immutable + + @tags_immutable.setter + def tags_immutable(self, tags_immutable): + """Sets the tags_immutable of this HuggingfacePackageUpload. + + + :param tags_immutable: The tags_immutable of this HuggingfacePackageUpload. + :type: Tags + """ + + self._tags_immutable = tags_immutable + + @property + def type_display(self): + """Gets the type_display of this HuggingfacePackageUpload. + + + :return: The type_display of this HuggingfacePackageUpload. + :rtype: str + """ + return self._type_display + + @type_display.setter + def type_display(self, type_display): + """Sets the type_display of this HuggingfacePackageUpload. + + + :param type_display: The type_display of this HuggingfacePackageUpload. + :type: str + """ + + self._type_display = type_display + + @property + def uploaded_at(self): + """Gets the uploaded_at of this HuggingfacePackageUpload. + + The date this package was uploaded. + + :return: The uploaded_at of this HuggingfacePackageUpload. + :rtype: datetime + """ + return self._uploaded_at + + @uploaded_at.setter + def uploaded_at(self, uploaded_at): + """Sets the uploaded_at of this HuggingfacePackageUpload. + + The date this package was uploaded. + + :param uploaded_at: The uploaded_at of this HuggingfacePackageUpload. + :type: datetime + """ + + self._uploaded_at = uploaded_at + + @property + def uploader(self): + """Gets the uploader of this HuggingfacePackageUpload. + + + :return: The uploader of this HuggingfacePackageUpload. + :rtype: str + """ + return self._uploader + + @uploader.setter + def uploader(self, uploader): + """Sets the uploader of this HuggingfacePackageUpload. + + + :param uploader: The uploader of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + uploader is not None and len(uploader) < 1): + raise ValueError("Invalid value for `uploader`, length must be greater than or equal to `1`") # noqa: E501 + + self._uploader = uploader + + @property + def uploader_url(self): + """Gets the uploader_url of this HuggingfacePackageUpload. + + + :return: The uploader_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._uploader_url + + @uploader_url.setter + def uploader_url(self, uploader_url): + """Sets the uploader_url of this HuggingfacePackageUpload. + + + :param uploader_url: The uploader_url of this HuggingfacePackageUpload. + :type: str + """ + + self._uploader_url = uploader_url + + @property + def version(self): + """Gets the version of this HuggingfacePackageUpload. + + The raw version for this package. + + :return: The version of this HuggingfacePackageUpload. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this HuggingfacePackageUpload. + + The raw version for this package. + + :param version: The version of this HuggingfacePackageUpload. + :type: str + """ + + self._version = version + + @property + def version_orig(self): + """Gets the version_orig of this HuggingfacePackageUpload. + + + :return: The version_orig of this HuggingfacePackageUpload. + :rtype: str + """ + return self._version_orig + + @version_orig.setter + def version_orig(self, version_orig): + """Sets the version_orig of this HuggingfacePackageUpload. + + + :param version_orig: The version_orig of this HuggingfacePackageUpload. + :type: str + """ + + self._version_orig = version_orig + + @property + def vulnerability_scan_results_url(self): + """Gets the vulnerability_scan_results_url of this HuggingfacePackageUpload. + + + :return: The vulnerability_scan_results_url of this HuggingfacePackageUpload. + :rtype: str + """ + return self._vulnerability_scan_results_url + + @vulnerability_scan_results_url.setter + def vulnerability_scan_results_url(self, vulnerability_scan_results_url): + """Sets the vulnerability_scan_results_url of this HuggingfacePackageUpload. + + + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this HuggingfacePackageUpload. + :type: str + """ + + self._vulnerability_scan_results_url = vulnerability_scan_results_url + + 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(HuggingfacePackageUpload, 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, HuggingfacePackageUpload): + 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, HuggingfacePackageUpload): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py new file mode 100644 index 00000000..0a7a6c47 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py @@ -0,0 +1,192 @@ +# 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 HuggingfacePackageUploadRequest(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 = { + 'package_file': 'str', + 'republish': 'bool', + 'tags': 'str' + } + + attribute_map = { + 'package_file': 'package_file', + 'republish': 'republish', + 'tags': 'tags' + } + + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """HuggingfacePackageUploadRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._package_file = None + self._republish = None + self._tags = None + self.discriminator = None + + self.package_file = package_file + if republish is not None: + self.republish = republish + if tags is not None: + self.tags = tags + + @property + def package_file(self): + """Gets the package_file of this HuggingfacePackageUploadRequest. + + The primary file for the package. + + :return: The package_file of this HuggingfacePackageUploadRequest. + :rtype: str + """ + return self._package_file + + @package_file.setter + def package_file(self, package_file): + """Sets the package_file of this HuggingfacePackageUploadRequest. + + The primary file for the package. + + :param package_file: The package_file of this HuggingfacePackageUploadRequest. + :type: str + """ + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + package_file is not None and len(package_file) < 1): + raise ValueError("Invalid value for `package_file`, length must be greater than or equal to `1`") # noqa: E501 + + self._package_file = package_file + + @property + def republish(self): + """Gets the republish of this HuggingfacePackageUploadRequest. + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + + :return: The republish of this HuggingfacePackageUploadRequest. + :rtype: bool + """ + return self._republish + + @republish.setter + def republish(self, republish): + """Sets the republish of this HuggingfacePackageUploadRequest. + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + + :param republish: The republish of this HuggingfacePackageUploadRequest. + :type: bool + """ + + self._republish = republish + + @property + def tags(self): + """Gets the tags of this HuggingfacePackageUploadRequest. + + A comma-separated values list of tags to add to the package. + + :return: The tags of this HuggingfacePackageUploadRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this HuggingfacePackageUploadRequest. + + A comma-separated values list of tags to add to the package. + + :param tags: The tags of this HuggingfacePackageUploadRequest. + :type: str + """ + if (self._configuration.client_side_validation and + tags is not None and len(tags) > 1024): + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1024`") # noqa: E501 + if (self._configuration.client_side_validation and + tags is not None and len(tags) < 1): + raise ValueError("Invalid value for `tags`, length must be greater than or equal to `1`") # noqa: E501 + + self._tags = tags + + 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(HuggingfacePackageUploadRequest, 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, HuggingfacePackageUploadRequest): + 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, HuggingfacePackageUploadRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_upstream.py b/bindings/python/src/cloudsmith_api/models/huggingface_upstream.py new file mode 100644 index 00000000..565fc3de --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/huggingface_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 HuggingfaceUpstream(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 + """HuggingfaceUpstream - 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 HuggingfaceUpstream. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this HuggingfaceUpstream. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this HuggingfaceUpstream. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this HuggingfaceUpstream. + :type: str + """ + allowed_values = ["None", "Token"] # 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 HuggingfaceUpstream. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this HuggingfaceUpstream. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this HuggingfaceUpstream. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + Username to provide with requests to upstream. + + :return: The auth_username of this HuggingfaceUpstream. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this HuggingfaceUpstream. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + The datetime the upstream source was created. + + :return: The created_at of this HuggingfaceUpstream. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this HuggingfaceUpstream. + + The datetime the upstream source was created. + + :param created_at: The created_at of this HuggingfaceUpstream. + :type: datetime + """ + + self._created_at = created_at + + @property + def disable_reason(self): + """Gets the disable_reason of this HuggingfaceUpstream. + + + :return: The disable_reason of this HuggingfaceUpstream. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this HuggingfaceUpstream. + + + :param disable_reason: The disable_reason of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this HuggingfaceUpstream. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this HuggingfaceUpstream. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this HuggingfaceUpstream. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + When true, this upstream source is pending validation. + + :return: The pending_validation of this HuggingfaceUpstream. + :rtype: bool + """ + return self._pending_validation + + @pending_validation.setter + def pending_validation(self, pending_validation): + """Sets the pending_validation of this HuggingfaceUpstream. + + When true, this upstream source is pending validation. + + :param pending_validation: The pending_validation of this HuggingfaceUpstream. + :type: bool + """ + + self._pending_validation = pending_validation + + @property + def priority(self): + """Gets the priority of this HuggingfaceUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this HuggingfaceUpstream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this HuggingfaceUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + + :return: The slug_perm of this HuggingfaceUpstream. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this HuggingfaceUpstream. + + + :param slug_perm: The slug_perm of this HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + + :return: The updated_at of this HuggingfaceUpstream. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this HuggingfaceUpstream. + + + :param updated_at: The updated_at of this HuggingfaceUpstream. + :type: datetime + """ + + self._updated_at = updated_at + + @property + def upstream_url(self): + """Gets the upstream_url of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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 HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this HuggingfaceUpstream. + + 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 HuggingfaceUpstream. + :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(HuggingfaceUpstream, 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, HuggingfaceUpstream): + 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, HuggingfaceUpstream): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_upstream_request.py b/bindings/python/src/cloudsmith_api/models/huggingface_upstream_request.py new file mode 100644 index 00000000..389ac733 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/huggingface_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 HuggingfaceUpstreamRequest(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 + """HuggingfaceUpstreamRequest - 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 HuggingfaceUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this HuggingfaceUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this HuggingfaceUpstreamRequest. + :type: str + """ + allowed_values = ["None", "Token"] # 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 HuggingfaceUpstreamRequest. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this HuggingfaceUpstreamRequest. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + Username to provide with requests to upstream. + + :return: The auth_username of this HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this HuggingfaceUpstreamRequest. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this HuggingfaceUpstreamRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this HuggingfaceUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this HuggingfaceUpstreamRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this HuggingfaceUpstreamRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this HuggingfaceUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this HuggingfaceUpstreamRequest. + :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(self): + """Gets the upstream_url of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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 HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this HuggingfaceUpstreamRequest. + + 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 HuggingfaceUpstreamRequest. + :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(HuggingfaceUpstreamRequest, 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, HuggingfaceUpstreamRequest): + 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, HuggingfaceUpstreamRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/huggingface_upstream_request_patch.py new file mode 100644 index 00000000..89e91c3f --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/huggingface_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 HuggingfaceUpstreamRequestPatch(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 + """HuggingfaceUpstreamRequestPatch - 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 HuggingfaceUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this HuggingfaceUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this HuggingfaceUpstreamRequestPatch. + :type: str + """ + allowed_values = ["None", "Token"] # 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 HuggingfaceUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this HuggingfaceUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :return: The auth_username of this HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this HuggingfaceUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this HuggingfaceUpstreamRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this HuggingfaceUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this HuggingfaceUpstreamRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this HuggingfaceUpstreamRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this HuggingfaceUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this HuggingfaceUpstreamRequestPatch. + :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(self): + """Gets the upstream_url of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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 HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this HuggingfaceUpstreamRequestPatch. + + 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 HuggingfaceUpstreamRequestPatch. + :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(HuggingfaceUpstreamRequestPatch, 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, HuggingfaceUpstreamRequestPatch): + 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, HuggingfaceUpstreamRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py index 0df8f5ce..dd6f8f87 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -2332,8 +2332,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py index 3da86891..9f6369f7 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py @@ -501,8 +501,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version 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/provider_settings.py b/bindings/python/src/cloudsmith_api/models/provider_settings.py index 442b8c95..48a0e8fa 100644 --- a/bindings/python/src/cloudsmith_api/models/provider_settings.py +++ b/bindings/python/src/cloudsmith_api/models/provider_settings.py @@ -35,6 +35,7 @@ class ProviderSettings(object): swagger_types = { 'claims': 'object', 'enabled': 'bool', + 'mapping_claim': 'str', 'name': 'str', 'provider_url': 'str', 'service_accounts': 'list[str]', @@ -45,6 +46,7 @@ class ProviderSettings(object): attribute_map = { 'claims': 'claims', 'enabled': 'enabled', + 'mapping_claim': 'mapping_claim', 'name': 'name', 'provider_url': 'provider_url', 'service_accounts': 'service_accounts', @@ -52,7 +54,7 @@ class ProviderSettings(object): 'slug_perm': 'slug_perm' } - def __init__(self, claims=None, enabled=None, name=None, provider_url=None, service_accounts=None, slug=None, slug_perm=None, _configuration=None): # noqa: E501 + def __init__(self, claims=None, enabled=None, mapping_claim=None, name=None, provider_url=None, service_accounts=None, slug=None, slug_perm=None, _configuration=None): # noqa: E501 """ProviderSettings - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -60,6 +62,7 @@ def __init__(self, claims=None, enabled=None, name=None, provider_url=None, serv self._claims = None self._enabled = None + self._mapping_claim = None self._name = None self._provider_url = None self._service_accounts = None @@ -69,9 +72,12 @@ def __init__(self, claims=None, enabled=None, name=None, provider_url=None, serv self.claims = claims self.enabled = enabled + if mapping_claim is not None: + self.mapping_claim = mapping_claim self.name = name self.provider_url = provider_url - self.service_accounts = service_accounts + if service_accounts is not None: + self.service_accounts = service_accounts if slug is not None: self.slug = slug if slug_perm is not None: @@ -127,6 +133,32 @@ def enabled(self, enabled): self._enabled = enabled + @property + def mapping_claim(self): + """Gets the mapping_claim of this ProviderSettings. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The mapping_claim of this ProviderSettings. + :rtype: str + """ + return self._mapping_claim + + @mapping_claim.setter + def mapping_claim(self, mapping_claim): + """Sets the mapping_claim of this ProviderSettings. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param mapping_claim: The mapping_claim of this ProviderSettings. + :type: str + """ + if (self._configuration.client_side_validation and + mapping_claim is not None and len(mapping_claim) < 1): + raise ValueError("Invalid value for `mapping_claim`, length must be greater than or equal to `1`") # noqa: E501 + + self._mapping_claim = mapping_claim + @property def name(self): """Gets the name of this ProviderSettings. @@ -187,7 +219,7 @@ def provider_url(self, provider_url): def service_accounts(self): """Gets the service_accounts of this ProviderSettings. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. :return: The service_accounts of this ProviderSettings. :rtype: list[str] @@ -198,13 +230,11 @@ def service_accounts(self): def service_accounts(self, service_accounts): """Sets the service_accounts of this ProviderSettings. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. :param service_accounts: The service_accounts of this ProviderSettings. :type: list[str] """ - if self._configuration.client_side_validation and service_accounts is None: - raise ValueError("Invalid value for `service_accounts`, must not be `None`") # noqa: E501 self._service_accounts = service_accounts diff --git a/bindings/python/src/cloudsmith_api/models/provider_settings_write.py b/bindings/python/src/cloudsmith_api/models/provider_settings_write.py new file mode 100644 index 00000000..fd8cb8a5 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/provider_settings_write.py @@ -0,0 +1,375 @@ +# 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 ProviderSettingsWrite(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 = { + 'claims': 'object', + 'dynamic_mappings': 'list[DynamicMapping]', + 'enabled': 'bool', + 'mapping_claim': 'str', + 'name': 'str', + 'provider_url': 'str', + 'service_accounts': 'list[str]', + 'slug': 'str', + 'slug_perm': 'str' + } + + attribute_map = { + 'claims': 'claims', + 'dynamic_mappings': 'dynamic_mappings', + 'enabled': 'enabled', + 'mapping_claim': 'mapping_claim', + 'name': 'name', + 'provider_url': 'provider_url', + 'service_accounts': 'service_accounts', + 'slug': 'slug', + 'slug_perm': 'slug_perm' + } + + def __init__(self, claims=None, dynamic_mappings=None, enabled=None, mapping_claim=None, name=None, provider_url=None, service_accounts=None, slug=None, slug_perm=None, _configuration=None): # noqa: E501 + """ProviderSettingsWrite - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._claims = None + self._dynamic_mappings = None + self._enabled = None + self._mapping_claim = None + self._name = None + self._provider_url = None + self._service_accounts = None + self._slug = None + self._slug_perm = None + self.discriminator = None + + self.claims = claims + if dynamic_mappings is not None: + self.dynamic_mappings = dynamic_mappings + self.enabled = enabled + if mapping_claim is not None: + self.mapping_claim = mapping_claim + self.name = name + self.provider_url = provider_url + if service_accounts is not None: + self.service_accounts = service_accounts + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + + @property + def claims(self): + """Gets the claims of this ProviderSettingsWrite. + + The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. + + :return: The claims of this ProviderSettingsWrite. + :rtype: object + """ + return self._claims + + @claims.setter + def claims(self, claims): + """Sets the claims of this ProviderSettingsWrite. + + The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. + + :param claims: The claims of this ProviderSettingsWrite. + :type: object + """ + if self._configuration.client_side_validation and claims is None: + raise ValueError("Invalid value for `claims`, must not be `None`") # noqa: E501 + + self._claims = claims + + @property + def dynamic_mappings(self): + """Gets the dynamic_mappings of this ProviderSettingsWrite. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The dynamic_mappings of this ProviderSettingsWrite. + :rtype: list[DynamicMapping] + """ + return self._dynamic_mappings + + @dynamic_mappings.setter + def dynamic_mappings(self, dynamic_mappings): + """Sets the dynamic_mappings of this ProviderSettingsWrite. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param dynamic_mappings: The dynamic_mappings of this ProviderSettingsWrite. + :type: list[DynamicMapping] + """ + + self._dynamic_mappings = dynamic_mappings + + @property + def enabled(self): + """Gets the enabled of this ProviderSettingsWrite. + + Whether the provider settings should be used for incoming OIDC requests. + + :return: The enabled of this ProviderSettingsWrite. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ProviderSettingsWrite. + + Whether the provider settings should be used for incoming OIDC requests. + + :param enabled: The enabled of this ProviderSettingsWrite. + :type: bool + """ + if self._configuration.client_side_validation and enabled is None: + raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 + + self._enabled = enabled + + @property + def mapping_claim(self): + """Gets the mapping_claim of this ProviderSettingsWrite. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The mapping_claim of this ProviderSettingsWrite. + :rtype: str + """ + return self._mapping_claim + + @mapping_claim.setter + def mapping_claim(self, mapping_claim): + """Sets the mapping_claim of this ProviderSettingsWrite. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param mapping_claim: The mapping_claim of this ProviderSettingsWrite. + :type: str + """ + if (self._configuration.client_side_validation and + mapping_claim is not None and len(mapping_claim) < 1): + raise ValueError("Invalid value for `mapping_claim`, length must be greater than or equal to `1`") # noqa: E501 + + self._mapping_claim = mapping_claim + + @property + def name(self): + """Gets the name of this ProviderSettingsWrite. + + The name of the provider settings are being configured for + + :return: The name of this ProviderSettingsWrite. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ProviderSettingsWrite. + + The name of the provider settings are being configured for + + :param name: The name of this ProviderSettingsWrite. + :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) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + @property + def provider_url(self): + """Gets the provider_url of this ProviderSettingsWrite. + + The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ + + :return: The provider_url of this ProviderSettingsWrite. + :rtype: str + """ + return self._provider_url + + @provider_url.setter + def provider_url(self, provider_url): + """Sets the provider_url of this ProviderSettingsWrite. + + The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ + + :param provider_url: The provider_url of this ProviderSettingsWrite. + :type: str + """ + if self._configuration.client_side_validation and provider_url is None: + raise ValueError("Invalid value for `provider_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + provider_url is not None and len(provider_url) < 1): + raise ValueError("Invalid value for `provider_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._provider_url = provider_url + + @property + def service_accounts(self): + """Gets the service_accounts of this ProviderSettingsWrite. + + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. + + :return: The service_accounts of this ProviderSettingsWrite. + :rtype: list[str] + """ + return self._service_accounts + + @service_accounts.setter + def service_accounts(self, service_accounts): + """Sets the service_accounts of this ProviderSettingsWrite. + + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. + + :param service_accounts: The service_accounts of this ProviderSettingsWrite. + :type: list[str] + """ + + self._service_accounts = service_accounts + + @property + def slug(self): + """Gets the slug of this ProviderSettingsWrite. + + The slug of the provider settings + + :return: The slug of this ProviderSettingsWrite. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this ProviderSettingsWrite. + + The slug of the provider settings + + :param slug: The slug of this ProviderSettingsWrite. + :type: str + """ + if (self._configuration.client_side_validation and + slug is not None and len(slug) < 1): + raise ValueError("Invalid value for `slug`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug is not None and not re.search('^[-a-zA-Z0-9_]+$', slug)): # noqa: E501 + raise ValueError(r"Invalid value for `slug`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug = slug + + @property + def slug_perm(self): + """Gets the slug_perm of this ProviderSettingsWrite. + + The unique, immutable identifier of the provider settings. + + :return: The slug_perm of this ProviderSettingsWrite. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this ProviderSettingsWrite. + + The unique, immutable identifier of the provider settings. + + :param slug_perm: The slug_perm of this ProviderSettingsWrite. + :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 + + 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(ProviderSettingsWrite, 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, ProviderSettingsWrite): + 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, ProviderSettingsWrite): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/provider_settings_request.py b/bindings/python/src/cloudsmith_api/models/provider_settings_write_request.py similarity index 57% rename from bindings/python/src/cloudsmith_api/models/provider_settings_request.py rename to bindings/python/src/cloudsmith_api/models/provider_settings_write_request.py index 757a329d..f3656ce0 100644 --- a/bindings/python/src/cloudsmith_api/models/provider_settings_request.py +++ b/bindings/python/src/cloudsmith_api/models/provider_settings_write_request.py @@ -19,7 +19,7 @@ from cloudsmith_api.configuration import Configuration -class ProviderSettingsRequest(object): +class ProviderSettingsWriteRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,9 @@ class ProviderSettingsRequest(object): """ swagger_types = { 'claims': 'object', + 'dynamic_mappings': 'list[DynamicMapping]', 'enabled': 'bool', + 'mapping_claim': 'str', 'name': 'str', 'provider_url': 'str', 'service_accounts': 'list[str]' @@ -42,49 +44,58 @@ class ProviderSettingsRequest(object): attribute_map = { 'claims': 'claims', + 'dynamic_mappings': 'dynamic_mappings', 'enabled': 'enabled', + 'mapping_claim': 'mapping_claim', 'name': 'name', 'provider_url': 'provider_url', 'service_accounts': 'service_accounts' } - def __init__(self, claims=None, enabled=None, name=None, provider_url=None, service_accounts=None, _configuration=None): # noqa: E501 - """ProviderSettingsRequest - a model defined in Swagger""" # noqa: E501 + def __init__(self, claims=None, dynamic_mappings=None, enabled=None, mapping_claim=None, name=None, provider_url=None, service_accounts=None, _configuration=None): # noqa: E501 + """ProviderSettingsWriteRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._claims = None + self._dynamic_mappings = None self._enabled = None + self._mapping_claim = None self._name = None self._provider_url = None self._service_accounts = None self.discriminator = None self.claims = claims + if dynamic_mappings is not None: + self.dynamic_mappings = dynamic_mappings self.enabled = enabled + if mapping_claim is not None: + self.mapping_claim = mapping_claim self.name = name self.provider_url = provider_url - self.service_accounts = service_accounts + if service_accounts is not None: + self.service_accounts = service_accounts @property def claims(self): - """Gets the claims of this ProviderSettingsRequest. + """Gets the claims of this ProviderSettingsWriteRequest. The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. - :return: The claims of this ProviderSettingsRequest. + :return: The claims of this ProviderSettingsWriteRequest. :rtype: object """ return self._claims @claims.setter def claims(self, claims): - """Sets the claims of this ProviderSettingsRequest. + """Sets the claims of this ProviderSettingsWriteRequest. The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. - :param claims: The claims of this ProviderSettingsRequest. + :param claims: The claims of this ProviderSettingsWriteRequest. :type: object """ if self._configuration.client_side_validation and claims is None: @@ -92,24 +103,47 @@ def claims(self, claims): self._claims = claims + @property + def dynamic_mappings(self): + """Gets the dynamic_mappings of this ProviderSettingsWriteRequest. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The dynamic_mappings of this ProviderSettingsWriteRequest. + :rtype: list[DynamicMapping] + """ + return self._dynamic_mappings + + @dynamic_mappings.setter + def dynamic_mappings(self, dynamic_mappings): + """Sets the dynamic_mappings of this ProviderSettingsWriteRequest. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param dynamic_mappings: The dynamic_mappings of this ProviderSettingsWriteRequest. + :type: list[DynamicMapping] + """ + + self._dynamic_mappings = dynamic_mappings + @property def enabled(self): - """Gets the enabled of this ProviderSettingsRequest. + """Gets the enabled of this ProviderSettingsWriteRequest. Whether the provider settings should be used for incoming OIDC requests. - :return: The enabled of this ProviderSettingsRequest. + :return: The enabled of this ProviderSettingsWriteRequest. :rtype: bool """ return self._enabled @enabled.setter def enabled(self, enabled): - """Sets the enabled of this ProviderSettingsRequest. + """Sets the enabled of this ProviderSettingsWriteRequest. Whether the provider settings should be used for incoming OIDC requests. - :param enabled: The enabled of this ProviderSettingsRequest. + :param enabled: The enabled of this ProviderSettingsWriteRequest. :type: bool """ if self._configuration.client_side_validation and enabled is None: @@ -117,24 +151,50 @@ def enabled(self, enabled): self._enabled = enabled + @property + def mapping_claim(self): + """Gets the mapping_claim of this ProviderSettingsWriteRequest. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The mapping_claim of this ProviderSettingsWriteRequest. + :rtype: str + """ + return self._mapping_claim + + @mapping_claim.setter + def mapping_claim(self, mapping_claim): + """Sets the mapping_claim of this ProviderSettingsWriteRequest. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param mapping_claim: The mapping_claim of this ProviderSettingsWriteRequest. + :type: str + """ + if (self._configuration.client_side_validation and + mapping_claim is not None and len(mapping_claim) < 1): + raise ValueError("Invalid value for `mapping_claim`, length must be greater than or equal to `1`") # noqa: E501 + + self._mapping_claim = mapping_claim + @property def name(self): - """Gets the name of this ProviderSettingsRequest. + """Gets the name of this ProviderSettingsWriteRequest. The name of the provider settings are being configured for - :return: The name of this ProviderSettingsRequest. + :return: The name of this ProviderSettingsWriteRequest. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this ProviderSettingsRequest. + """Sets the name of this ProviderSettingsWriteRequest. The name of the provider settings are being configured for - :param name: The name of this ProviderSettingsRequest. + :param name: The name of this ProviderSettingsWriteRequest. :type: str """ if self._configuration.client_side_validation and name is None: @@ -147,22 +207,22 @@ def name(self, name): @property def provider_url(self): - """Gets the provider_url of this ProviderSettingsRequest. + """Gets the provider_url of this ProviderSettingsWriteRequest. The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ - :return: The provider_url of this ProviderSettingsRequest. + :return: The provider_url of this ProviderSettingsWriteRequest. :rtype: str """ return self._provider_url @provider_url.setter def provider_url(self, provider_url): - """Sets the provider_url of this ProviderSettingsRequest. + """Sets the provider_url of this ProviderSettingsWriteRequest. The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ - :param provider_url: The provider_url of this ProviderSettingsRequest. + :param provider_url: The provider_url of this ProviderSettingsWriteRequest. :type: str """ if self._configuration.client_side_validation and provider_url is None: @@ -175,26 +235,24 @@ def provider_url(self, provider_url): @property def service_accounts(self): - """Gets the service_accounts of this ProviderSettingsRequest. + """Gets the service_accounts of this ProviderSettingsWriteRequest. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. - :return: The service_accounts of this ProviderSettingsRequest. + :return: The service_accounts of this ProviderSettingsWriteRequest. :rtype: list[str] """ return self._service_accounts @service_accounts.setter def service_accounts(self, service_accounts): - """Sets the service_accounts of this ProviderSettingsRequest. + """Sets the service_accounts of this ProviderSettingsWriteRequest. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. - :param service_accounts: The service_accounts of this ProviderSettingsRequest. + :param service_accounts: The service_accounts of this ProviderSettingsWriteRequest. :type: list[str] """ - if self._configuration.client_side_validation and service_accounts is None: - raise ValueError("Invalid value for `service_accounts`, must not be `None`") # noqa: E501 self._service_accounts = service_accounts @@ -219,7 +277,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ProviderSettingsRequest, dict): + if issubclass(ProviderSettingsWriteRequest, dict): for key, value in self.items(): result[key] = value @@ -235,14 +293,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProviderSettingsRequest): + if not isinstance(other, ProviderSettingsWriteRequest): 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, ProviderSettingsRequest): + if not isinstance(other, ProviderSettingsWriteRequest): return True return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/provider_settings_request_patch.py b/bindings/python/src/cloudsmith_api/models/provider_settings_write_request_patch.py similarity index 55% rename from bindings/python/src/cloudsmith_api/models/provider_settings_request_patch.py rename to bindings/python/src/cloudsmith_api/models/provider_settings_write_request_patch.py index 8ac06d50..860d3b27 100644 --- a/bindings/python/src/cloudsmith_api/models/provider_settings_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/provider_settings_write_request_patch.py @@ -19,7 +19,7 @@ from cloudsmith_api.configuration import Configuration -class ProviderSettingsRequestPatch(object): +class ProviderSettingsWriteRequestPatch(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,7 +34,9 @@ class ProviderSettingsRequestPatch(object): """ swagger_types = { 'claims': 'object', + 'dynamic_mappings': 'list[DynamicMapping]', 'enabled': 'bool', + 'mapping_claim': 'str', 'name': 'str', 'provider_url': 'str', 'service_accounts': 'list[str]' @@ -42,20 +44,24 @@ class ProviderSettingsRequestPatch(object): attribute_map = { 'claims': 'claims', + 'dynamic_mappings': 'dynamic_mappings', 'enabled': 'enabled', + 'mapping_claim': 'mapping_claim', 'name': 'name', 'provider_url': 'provider_url', 'service_accounts': 'service_accounts' } - def __init__(self, claims=None, enabled=None, name=None, provider_url=None, service_accounts=None, _configuration=None): # noqa: E501 - """ProviderSettingsRequestPatch - a model defined in Swagger""" # noqa: E501 + def __init__(self, claims=None, dynamic_mappings=None, enabled=None, mapping_claim=None, name=None, provider_url=None, service_accounts=None, _configuration=None): # noqa: E501 + """ProviderSettingsWriteRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._claims = None + self._dynamic_mappings = None self._enabled = None + self._mapping_claim = None self._name = None self._provider_url = None self._service_accounts = None @@ -63,8 +69,12 @@ def __init__(self, claims=None, enabled=None, name=None, provider_url=None, serv if claims is not None: self.claims = claims + if dynamic_mappings is not None: + self.dynamic_mappings = dynamic_mappings if enabled is not None: self.enabled = enabled + if mapping_claim is not None: + self.mapping_claim = mapping_claim if name is not None: self.name = name if provider_url is not None: @@ -74,68 +84,117 @@ def __init__(self, claims=None, enabled=None, name=None, provider_url=None, serv @property def claims(self): - """Gets the claims of this ProviderSettingsRequestPatch. + """Gets the claims of this ProviderSettingsWriteRequestPatch. The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. - :return: The claims of this ProviderSettingsRequestPatch. + :return: The claims of this ProviderSettingsWriteRequestPatch. :rtype: object """ return self._claims @claims.setter def claims(self, claims): - """Sets the claims of this ProviderSettingsRequestPatch. + """Sets the claims of this ProviderSettingsWriteRequestPatch. The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. - :param claims: The claims of this ProviderSettingsRequestPatch. + :param claims: The claims of this ProviderSettingsWriteRequestPatch. :type: object """ self._claims = claims + @property + def dynamic_mappings(self): + """Gets the dynamic_mappings of this ProviderSettingsWriteRequestPatch. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The dynamic_mappings of this ProviderSettingsWriteRequestPatch. + :rtype: list[DynamicMapping] + """ + return self._dynamic_mappings + + @dynamic_mappings.setter + def dynamic_mappings(self, dynamic_mappings): + """Sets the dynamic_mappings of this ProviderSettingsWriteRequestPatch. + + The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param dynamic_mappings: The dynamic_mappings of this ProviderSettingsWriteRequestPatch. + :type: list[DynamicMapping] + """ + + self._dynamic_mappings = dynamic_mappings + @property def enabled(self): - """Gets the enabled of this ProviderSettingsRequestPatch. + """Gets the enabled of this ProviderSettingsWriteRequestPatch. Whether the provider settings should be used for incoming OIDC requests. - :return: The enabled of this ProviderSettingsRequestPatch. + :return: The enabled of this ProviderSettingsWriteRequestPatch. :rtype: bool """ return self._enabled @enabled.setter def enabled(self, enabled): - """Sets the enabled of this ProviderSettingsRequestPatch. + """Sets the enabled of this ProviderSettingsWriteRequestPatch. Whether the provider settings should be used for incoming OIDC requests. - :param enabled: The enabled of this ProviderSettingsRequestPatch. + :param enabled: The enabled of this ProviderSettingsWriteRequestPatch. :type: bool """ self._enabled = enabled + @property + def mapping_claim(self): + """Gets the mapping_claim of this ProviderSettingsWriteRequestPatch. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :return: The mapping_claim of this ProviderSettingsWriteRequestPatch. + :rtype: str + """ + return self._mapping_claim + + @mapping_claim.setter + def mapping_claim(self, mapping_claim): + """Sets the mapping_claim of this ProviderSettingsWriteRequestPatch. + + The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + + :param mapping_claim: The mapping_claim of this ProviderSettingsWriteRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + mapping_claim is not None and len(mapping_claim) < 1): + raise ValueError("Invalid value for `mapping_claim`, length must be greater than or equal to `1`") # noqa: E501 + + self._mapping_claim = mapping_claim + @property def name(self): - """Gets the name of this ProviderSettingsRequestPatch. + """Gets the name of this ProviderSettingsWriteRequestPatch. The name of the provider settings are being configured for - :return: The name of this ProviderSettingsRequestPatch. + :return: The name of this ProviderSettingsWriteRequestPatch. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this ProviderSettingsRequestPatch. + """Sets the name of this ProviderSettingsWriteRequestPatch. The name of the provider settings are being configured for - :param name: The name of this ProviderSettingsRequestPatch. + :param name: The name of this ProviderSettingsWriteRequestPatch. :type: str """ if (self._configuration.client_side_validation and @@ -146,22 +205,22 @@ def name(self, name): @property def provider_url(self): - """Gets the provider_url of this ProviderSettingsRequestPatch. + """Gets the provider_url of this ProviderSettingsWriteRequestPatch. The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ - :return: The provider_url of this ProviderSettingsRequestPatch. + :return: The provider_url of this ProviderSettingsWriteRequestPatch. :rtype: str """ return self._provider_url @provider_url.setter def provider_url(self, provider_url): - """Sets the provider_url of this ProviderSettingsRequestPatch. + """Sets the provider_url of this ProviderSettingsWriteRequestPatch. The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ - :param provider_url: The provider_url of this ProviderSettingsRequestPatch. + :param provider_url: The provider_url of this ProviderSettingsWriteRequestPatch. :type: str """ if (self._configuration.client_side_validation and @@ -172,22 +231,22 @@ def provider_url(self, provider_url): @property def service_accounts(self): - """Gets the service_accounts of this ProviderSettingsRequestPatch. + """Gets the service_accounts of this ProviderSettingsWriteRequestPatch. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. - :return: The service_accounts of this ProviderSettingsRequestPatch. + :return: The service_accounts of this ProviderSettingsWriteRequestPatch. :rtype: list[str] """ return self._service_accounts @service_accounts.setter def service_accounts(self, service_accounts): - """Sets the service_accounts of this ProviderSettingsRequestPatch. + """Sets the service_accounts of this ProviderSettingsWriteRequestPatch. - The service accounts associated with these provider settings + The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. - :param service_accounts: The service_accounts of this ProviderSettingsRequestPatch. + :param service_accounts: The service_accounts of this ProviderSettingsWriteRequestPatch. :type: list[str] """ @@ -214,7 +273,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ProviderSettingsRequestPatch, dict): + if issubclass(ProviderSettingsWriteRequestPatch, dict): for key, value in self.items(): result[key] = value @@ -230,14 +289,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProviderSettingsRequestPatch): + if not isinstance(other, ProviderSettingsWriteRequestPatch): 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, ProviderSettingsRequestPatch): + if not isinstance(other, ProviderSettingsWriteRequestPatch): 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/raw_package_upload.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py index ae3c0788..dcdf2352 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -2190,8 +2190,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py index 2b7c0f5f..6db64e5f 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py @@ -294,8 +294,8 @@ def version(self, version): :type: str """ if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version 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 a0792af4..ba8e3084 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.736.13', _configuration=None): # noqa: E501 + def __init__(self, detail='Cloudsmith API is operational.', version='1.783.2', _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_package_upload.py b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py index 9fad8500..d598e994 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py @@ -2350,8 +2350,8 @@ def version(self, version): if self._configuration.client_side_validation and version is None: raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py index 541c4cc4..d5f14ff3 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py @@ -390,8 +390,8 @@ def version(self, version): if self._configuration.client_side_validation and version is None: raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version 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/cloudsmith_api/models/vagrant_package_upload.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py index 104a703d..40785f55 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -2218,8 +2218,8 @@ def version(self, version): if self._configuration.client_side_validation and version is None: raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py index ed5d1b9a..9f10044e 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py @@ -232,8 +232,8 @@ def version(self, version): if self._configuration.client_side_validation and version is None: raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and - version is not None and len(version) > 128): - raise ValueError("Invalid value for `version`, length must be less than or equal to `128`") # noqa: E501 + version is not None and len(version) > 255): + raise ValueError("Invalid value for `version`, length must be less than or equal to `255`") # noqa: E501 self._version = version diff --git a/bindings/python/src/docs/CondaUpstream.md b/bindings/python/src/docs/CondaUpstream.md new file mode 100644 index 00000000..d39019f5 --- /dev/null +++ b/bindings/python/src/docs/CondaUpstream.md @@ -0,0 +1,27 @@ +# CondaUpstream + +## 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/CondaUpstreamRequest.md b/bindings/python/src/docs/CondaUpstreamRequest.md new file mode 100644 index 00000000..262967f1 --- /dev/null +++ b/bindings/python/src/docs/CondaUpstreamRequest.md @@ -0,0 +1,22 @@ +# CondaUpstreamRequest + +## 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/CondaUpstreamRequestPatch.md b/bindings/python/src/docs/CondaUpstreamRequestPatch.md new file mode 100644 index 00000000..358b986d --- /dev/null +++ b/bindings/python/src/docs/CondaUpstreamRequestPatch.md @@ -0,0 +1,22 @@ +# CondaUpstreamRequestPatch + +## 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/DynamicMapping.md b/bindings/python/src/docs/DynamicMapping.md new file mode 100644 index 00000000..3924fe20 --- /dev/null +++ b/bindings/python/src/docs/DynamicMapping.md @@ -0,0 +1,11 @@ +# DynamicMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_value** | **str** | The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | +**service_account** | **str** | The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | + +[[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/HuggingfacePackageUpload.md b/bindings/python/src/docs/HuggingfacePackageUpload.md new file mode 100644 index 00000000..5ef98eeb --- /dev/null +++ b/bindings/python/src/docs/HuggingfacePackageUpload.md @@ -0,0 +1,89 @@ +# HuggingfacePackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**list[Architecture]**](Architecture.md) | | [optional] +**cdn_url** | **str** | | [optional] +**checksum_md5** | **str** | | [optional] +**checksum_sha1** | **str** | | [optional] +**checksum_sha256** | **str** | | [optional] +**checksum_sha512** | **str** | | [optional] +**dependencies_checksum_md5** | **str** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **str** | | [optional] +**description** | **str** | A textual description of this package. | [optional] +**display_name** | **str** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **int** | | [optional] +**epoch** | **int** | The epoch of the package version (if any). | [optional] +**extension** | **str** | | [optional] +**filename** | **str** | | [optional] +**files** | [**list[PackageFile]**](PackageFile.md) | | [optional] +**format** | **str** | | [optional] +**format_url** | **str** | | [optional] +**freeable_storage** | **int** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **str** | | [optional] +**identifier_perm** | **str** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **dict(str, str)** | Return a map of identifier field names and their values. | [optional] +**indexed** | **bool** | | [optional] +**is_cancellable** | **bool** | | [optional] +**is_copyable** | **bool** | | [optional] +**is_deleteable** | **bool** | | [optional] +**is_downloadable** | **bool** | | [optional] +**is_moveable** | **bool** | | [optional] +**is_quarantinable** | **bool** | | [optional] +**is_quarantined** | **bool** | | [optional] +**is_resyncable** | **bool** | | [optional] +**is_security_scannable** | **bool** | | [optional] +**is_sync_awaiting** | **bool** | | [optional] +**is_sync_completed** | **bool** | | [optional] +**is_sync_failed** | **bool** | | [optional] +**is_sync_in_flight** | **bool** | | [optional] +**is_sync_in_progress** | **bool** | | [optional] +**license** | **str** | The license of this package. | [optional] +**name** | **str** | The name of this package. | [optional] +**namespace** | **str** | | [optional] +**namespace_url** | **str** | | [optional] +**num_files** | **int** | | [optional] +**origin_repository** | **str** | | [optional] +**origin_repository_url** | **str** | | [optional] +**package_type** | **int** | The type of package contents. | [optional] +**policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] +**release** | **str** | The release of the package version (if any). | [optional] +**repository** | **str** | | [optional] +**repository_url** | **str** | | [optional] +**security_scan_completed_at** | **datetime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **datetime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **str** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **datetime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **str** | | [optional] +**self_url** | **str** | | [optional] +**signature_url** | **str** | | [optional] +**size** | **int** | The calculated size of the package. | [optional] +**slug** | **str** | The public unique identifier for the package. | [optional] +**slug_perm** | **str** | | [optional] +**stage** | **int** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **str** | | [optional] +**stage_updated_at** | **datetime** | The datetime the package stage was updated at. | [optional] +**status** | **int** | The synchronisation status of the package. | [optional] +**status_reason** | **str** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **str** | | [optional] +**status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] +**status_url** | **str** | | [optional] +**subtype** | **str** | | [optional] +**summary** | **str** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**type_display** | **str** | | [optional] +**uploaded_at** | **datetime** | The date this package was uploaded. | [optional] +**uploader** | **str** | | [optional] +**uploader_url** | **str** | | [optional] +**version** | **str** | The raw version for this package. | [optional] +**version_orig** | **str** | | [optional] +**vulnerability_scan_results_url** | **str** | | [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/HuggingfacePackageUploadRequest.md b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md new file mode 100644 index 00000000..5d66d307 --- /dev/null +++ b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md @@ -0,0 +1,12 @@ +# HuggingfacePackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**package_file** | **str** | The primary file for the package. | +**republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **str** | A comma-separated values list of tags to add to the package. | [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/HuggingfaceUpstream.md b/bindings/python/src/docs/HuggingfaceUpstream.md new file mode 100644 index 00000000..c206fd75 --- /dev/null +++ b/bindings/python/src/docs/HuggingfaceUpstream.md @@ -0,0 +1,27 @@ +# HuggingfaceUpstream + +## 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/HuggingfaceUpstreamRequest.md b/bindings/python/src/docs/HuggingfaceUpstreamRequest.md new file mode 100644 index 00000000..0d85ea3d --- /dev/null +++ b/bindings/python/src/docs/HuggingfaceUpstreamRequest.md @@ -0,0 +1,22 @@ +# HuggingfaceUpstreamRequest + +## 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/HuggingfaceUpstreamRequestPatch.md b/bindings/python/src/docs/HuggingfaceUpstreamRequestPatch.md new file mode 100644 index 00000000..01d7296a --- /dev/null +++ b/bindings/python/src/docs/HuggingfaceUpstreamRequestPatch.md @@ -0,0 +1,22 @@ +# HuggingfaceUpstreamRequestPatch + +## 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/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index 4020a60b..dba1b901 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -38,6 +38,8 @@ Method | HTTP request | Description [**orgs_members_update_visibility**](OrgsApi.md#orgs_members_update_visibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. [**orgs_openid_connect_create**](OrgsApi.md#orgs_openid_connect_create) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. [**orgs_openid_connect_delete**](OrgsApi.md#orgs_openid_connect_delete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +[**orgs_openid_connect_dynamic_mappings_list**](OrgsApi.md#orgs_openid_connect_dynamic_mappings_list) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +[**orgs_openid_connect_dynamic_mappings_read**](OrgsApi.md#orgs_openid_connect_dynamic_mappings_read) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. [**orgs_openid_connect_list**](OrgsApi.md#orgs_openid_connect_list) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. [**orgs_openid_connect_partial_update**](OrgsApi.md#orgs_openid_connect_partial_update) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgs_openid_connect_read**](OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -2029,7 +2031,7 @@ 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) # **orgs_openid_connect_create** -> ProviderSettings orgs_openid_connect_create(org, data=data) +> ProviderSettingsWrite orgs_openid_connect_create(org, data=data) Create the OpenID Connect provider settings for the org. @@ -2056,7 +2058,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | -data = cloudsmith_api.ProviderSettingsRequest() # ProviderSettingsRequest | (optional) +data = cloudsmith_api.ProviderSettingsWriteRequest() # ProviderSettingsWriteRequest | (optional) try: # Create the OpenID Connect provider settings for the org. @@ -2071,11 +2073,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **str**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2147,6 +2149,132 @@ 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) +# **orgs_openid_connect_dynamic_mappings_list** +> list[DynamicMapping] orgs_openid_connect_dynamic_mappings_list(org, provider_setting, page=page, page_size=page_size) + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +### 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.OrgsApi(cloudsmith_api.ApiClient(configuration)) +org = 'org_example' # str | +provider_setting = 'provider_setting_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: + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + api_response = api_instance.orgs_openid_connect_dynamic_mappings_list(org, provider_setting, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_openid_connect_dynamic_mappings_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **provider_setting** | **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[DynamicMapping]**](DynamicMapping.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) + +# **orgs_openid_connect_dynamic_mappings_read** +> DynamicMapping orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value) + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +### 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.OrgsApi(cloudsmith_api.ApiClient(configuration)) +org = 'org_example' # str | +provider_setting = 'provider_setting_example' # str | +claim_value = 'claim_value_example' # str | + +try: + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + api_response = api_instance.orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_openid_connect_dynamic_mappings_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **provider_setting** | **str**| | + **claim_value** | **str**| | + +### Return type + +[**DynamicMapping**](DynamicMapping.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) + # **orgs_openid_connect_list** > list[ProviderSettings] orgs_openid_connect_list(org, page=page, page_size=page_size, query=query, sort=sort) @@ -2214,7 +2342,7 @@ 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) # **orgs_openid_connect_partial_update** -> ProviderSettings orgs_openid_connect_partial_update(org, slug_perm, data=data) +> ProviderSettingsWrite orgs_openid_connect_partial_update(org, slug_perm, data=data) Update a specific OpenID Connect provider setting for the org. @@ -2242,7 +2370,7 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.ProviderSettingsRequestPatch() # ProviderSettingsRequestPatch | (optional) +data = cloudsmith_api.ProviderSettingsWriteRequestPatch() # ProviderSettingsWriteRequestPatch | (optional) try: # Update a specific OpenID Connect provider setting for the org. @@ -2258,11 +2386,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **str**| | **slug_perm** | **str**| | - **data** | [**ProviderSettingsRequestPatch**](ProviderSettingsRequestPatch.md)| | [optional] + **data** | [**ProviderSettingsWriteRequestPatch**](ProviderSettingsWriteRequestPatch.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2336,7 +2464,7 @@ 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) # **orgs_openid_connect_update** -> ProviderSettings orgs_openid_connect_update(org, slug_perm, data=data) +> ProviderSettingsWrite orgs_openid_connect_update(org, slug_perm, data=data) Update a specific OpenID Connect provider setting for the org. @@ -2364,7 +2492,7 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.ProviderSettingsRequest() # ProviderSettingsRequest | (optional) +data = cloudsmith_api.ProviderSettingsWriteRequest() # ProviderSettingsWriteRequest | (optional) try: # Update a specific OpenID Connect provider setting for the org. @@ -2380,11 +2508,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **str**| | **slug_perm** | **str**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization diff --git a/bindings/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index ebded241..d30b3496 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -29,6 +29,7 @@ Method | HTTP request | Description [**packages_upload_go**](PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package [**packages_upload_helm**](PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package [**packages_upload_hex**](PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +[**packages_upload_huggingface**](PackagesApi.md#packages_upload_huggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package [**packages_upload_luarocks**](PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packages_upload_maven**](PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packages_upload_npm**](PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -54,6 +55,7 @@ Method | HTTP request | Description [**packages_validate_upload_go**](PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package [**packages_validate_upload_helm**](PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package [**packages_validate_upload_hex**](PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +[**packages_validate_upload_huggingface**](PackagesApi.md#packages_validate_upload_huggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package [**packages_validate_upload_luarocks**](PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packages_validate_upload_maven**](PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packages_validate_upload_npm**](PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -256,7 +258,7 @@ 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) +> InlineResponse200 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, query=query, sort=sort) Return a list of Package Groups in a repository. @@ -287,12 +289,13 @@ 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) +hide_subcomponents = false # bool | Whether to hide packages which are subcomponents of another package in the results (optional) (default to false) 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) + api_response = api_instance.packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, hide_subcomponents=hide_subcomponents, query=query, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling PackagesApi->packages_groups_list: %s\n" % e) @@ -307,6 +310,7 @@ Name | Type | Description | Notes **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] + **hide_subcomponents** | **bool**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] **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] @@ -1639,6 +1643,68 @@ 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_upload_huggingface** +> HuggingfacePackageUpload packages_upload_huggingface(owner, repo, data=data) + +Create a new Hugging Face package + +Create a new Hugging Face package + +### 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 | +data = cloudsmith_api.HuggingfacePackageUploadRequest() # HuggingfacePackageUploadRequest | (optional) + +try: + # Create a new Hugging Face package + api_response = api_instance.packages_upload_huggingface(owner, repo, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling PackagesApi->packages_upload_huggingface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **repo** | **str**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### Return type + +[**HuggingfacePackageUpload**](HuggingfacePackageUpload.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_upload_luarocks** > LuarocksPackageUpload packages_upload_luarocks(owner, repo, data=data) @@ -3176,6 +3242,67 @@ 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) +# **packages_validate_upload_huggingface** +> packages_validate_upload_huggingface(owner, repo, data=data) + +Validate parameters for create Hugging Face package + +Validate parameters for create Hugging Face package + +### 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 | +data = cloudsmith_api.HuggingfacePackageUploadRequest() # HuggingfacePackageUploadRequest | (optional) + +try: + # Validate parameters for create Hugging Face package + api_instance.packages_validate_upload_huggingface(owner, repo, data=data) +except ApiException as e: + print("Exception when calling PackagesApi->packages_validate_upload_huggingface: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **repo** | **str**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### 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) + # **packages_validate_upload_luarocks** > packages_validate_upload_luarocks(owner, repo, data=data) diff --git a/bindings/python/src/docs/ProviderSettings.md b/bindings/python/src/docs/ProviderSettings.md index 0cea5e66..4295810a 100644 --- a/bindings/python/src/docs/ProviderSettings.md +++ b/bindings/python/src/docs/ProviderSettings.md @@ -5,9 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | **object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | **enabled** | **bool** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **str** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **name** | **str** | The name of the provider settings are being configured for | **provider_url** | **str** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**service_accounts** | **list[str]** | The service accounts associated with these provider settings | +**service_accounts** | **list[str]** | The service accounts associated with these provider settings. | [optional] **slug** | **str** | The slug of the provider settings | [optional] **slug_perm** | **str** | The unique, immutable identifier of the provider settings. | [optional] diff --git a/bindings/python/src/docs/ProviderSettingsWrite.md b/bindings/python/src/docs/ProviderSettingsWrite.md new file mode 100644 index 00000000..58db8be6 --- /dev/null +++ b/bindings/python/src/docs/ProviderSettingsWrite.md @@ -0,0 +1,18 @@ +# ProviderSettingsWrite + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamic_mappings** | [**list[DynamicMapping]**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **bool** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **str** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **str** | The name of the provider settings are being configured for | +**provider_url** | **str** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | +**service_accounts** | **list[str]** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] +**slug** | **str** | The slug of the provider settings | [optional] +**slug_perm** | **str** | The unique, immutable identifier of the provider settings. | [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/ProviderSettingsRequest.md b/bindings/python/src/docs/ProviderSettingsWriteRequest.md similarity index 52% rename from bindings/python/src/docs/ProviderSettingsRequest.md rename to bindings/python/src/docs/ProviderSettingsWriteRequest.md index f3af71be..73a056fd 100644 --- a/bindings/python/src/docs/ProviderSettingsRequest.md +++ b/bindings/python/src/docs/ProviderSettingsWriteRequest.md @@ -1,13 +1,15 @@ -# ProviderSettingsRequest +# ProviderSettingsWriteRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | **object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamic_mappings** | [**list[DynamicMapping]**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **enabled** | **bool** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **str** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **name** | **str** | The name of the provider settings are being configured for | **provider_url** | **str** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**service_accounts** | **list[str]** | The service accounts associated with these provider settings | +**service_accounts** | **list[str]** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [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/ProviderSettingsRequestPatch.md b/bindings/python/src/docs/ProviderSettingsWriteRequestPatch.md similarity index 53% rename from bindings/python/src/docs/ProviderSettingsRequestPatch.md rename to bindings/python/src/docs/ProviderSettingsWriteRequestPatch.md index 9d43976b..b4e7d225 100644 --- a/bindings/python/src/docs/ProviderSettingsRequestPatch.md +++ b/bindings/python/src/docs/ProviderSettingsWriteRequestPatch.md @@ -1,13 +1,15 @@ -# ProviderSettingsRequestPatch +# ProviderSettingsWriteRequestPatch ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | **object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | [optional] +**dynamic_mappings** | [**list[DynamicMapping]**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **enabled** | **bool** | Whether the provider settings should be used for incoming OIDC requests. | [optional] +**mapping_claim** | **str** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **name** | **str** | The name of the provider settings are being configured for | [optional] **provider_url** | **str** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | [optional] -**service_accounts** | **list[str]** | The service accounts associated with these provider settings | [optional] +**service_accounts** | **list[str]** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [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/ReposApi.md b/bindings/python/src/docs/ReposApi.md index 894f1f3f..8de932ae 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -43,6 +43,12 @@ Method | HTTP request | Description [**repos_upstream_composer_partial_update**](ReposApi.md#repos_upstream_composer_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. [**repos_upstream_composer_read**](ReposApi.md#repos_upstream_composer_read) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. [**repos_upstream_composer_update**](ReposApi.md#repos_upstream_composer_update) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +[**repos_upstream_conda_create**](ReposApi.md#repos_upstream_conda_create) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +[**repos_upstream_conda_delete**](ReposApi.md#repos_upstream_conda_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +[**repos_upstream_conda_list**](ReposApi.md#repos_upstream_conda_list) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +[**repos_upstream_conda_partial_update**](ReposApi.md#repos_upstream_conda_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +[**repos_upstream_conda_read**](ReposApi.md#repos_upstream_conda_read) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +[**repos_upstream_conda_update**](ReposApi.md#repos_upstream_conda_update) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. [**repos_upstream_cran_create**](ReposApi.md#repos_upstream_cran_create) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. [**repos_upstream_cran_delete**](ReposApi.md#repos_upstream_cran_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. [**repos_upstream_cran_list**](ReposApi.md#repos_upstream_cran_list) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -85,6 +91,12 @@ Method | HTTP request | Description [**repos_upstream_hex_partial_update**](ReposApi.md#repos_upstream_hex_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. [**repos_upstream_hex_read**](ReposApi.md#repos_upstream_hex_read) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. [**repos_upstream_hex_update**](ReposApi.md#repos_upstream_hex_update) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +[**repos_upstream_huggingface_create**](ReposApi.md#repos_upstream_huggingface_create) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_delete**](ReposApi.md#repos_upstream_huggingface_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_list**](ReposApi.md#repos_upstream_huggingface_list) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +[**repos_upstream_huggingface_partial_update**](ReposApi.md#repos_upstream_huggingface_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_read**](ReposApi.md#repos_upstream_huggingface_read) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_update**](ReposApi.md#repos_upstream_huggingface_update) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. [**repos_upstream_maven_create**](ReposApi.md#repos_upstream_maven_create) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. [**repos_upstream_maven_delete**](ReposApi.md#repos_upstream_maven_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. [**repos_upstream_maven_list**](ReposApi.md#repos_upstream_maven_list) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -2532,12 +2544,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_conda_create** +> CondaUpstream repos_upstream_conda_create(owner, identifier, data=data) -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. ### Example ```python @@ -2561,14 +2573,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.CondaUpstreamRequest() # CondaUpstreamRequest | (optional) try: - # Create a CRAN upstream config for this repository. - api_response = api_instance.repos_upstream_cran_create(owner, identifier, data=data) + # Create a Conda upstream config for this repository. + api_response = api_instance.repos_upstream_conda_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_conda_create: %s\n" % e) ``` ### Parameters @@ -2577,11 +2589,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2594,12 +2606,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_conda_delete** +> repos_upstream_conda_delete(owner, identifier, slug_perm) -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. ### Example ```python @@ -2626,10 +2638,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 Conda upstream config for this repository. + api_instance.repos_upstream_conda_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_conda_delete: %s\n" % e) ``` ### Parameters @@ -2655,12 +2667,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_conda_list** +> list[CondaUpstream] repos_upstream_conda_list(owner, identifier, page=page, page_size=page_size) -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. ### Example ```python @@ -2688,11 +2700,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 Conda upstream configs for this repository. + api_response = api_instance.repos_upstream_conda_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_conda_list: %s\n" % e) ``` ### Parameters @@ -2706,7 +2718,7 @@ Name | Type | Description | Notes ### Return type -[**list[CranUpstream]**](CranUpstream.md) +[**list[CondaUpstream]**](CondaUpstream.md) ### Authorization @@ -2719,12 +2731,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_conda_partial_update** +> CondaUpstream repos_upstream_conda_partial_update(owner, identifier, slug_perm, data=data) -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. ### Example ```python @@ -2749,14 +2761,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.CondaUpstreamRequestPatch() # CondaUpstreamRequestPatch | (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 Conda upstream config for this repository. + api_response = api_instance.repos_upstream_conda_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_conda_partial_update: %s\n" % e) ``` ### Parameters @@ -2766,11 +2778,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**CondaUpstreamRequestPatch**](CondaUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2783,12 +2795,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_conda_read** +> CondaUpstream repos_upstream_conda_read(owner, identifier, slug_perm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. ### Example ```python @@ -2815,11 +2827,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 Conda upstream config for this repository. + api_response = api_instance.repos_upstream_conda_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_conda_read: %s\n" % e) ``` ### Parameters @@ -2832,7 +2844,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2845,12 +2857,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_conda_update** +> CondaUpstream repos_upstream_conda_update(owner, identifier, slug_perm, data=data) -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. ### Example ```python @@ -2875,14 +2887,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.CondaUpstreamRequest() # CondaUpstreamRequest | (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 Conda upstream config for this repository. + api_response = api_instance.repos_upstream_conda_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_conda_update: %s\n" % e) ``` ### Parameters @@ -2892,11 +2904,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2909,12 +2921,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 @@ -2938,14 +2950,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 @@ -2954,11 +2966,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 @@ -2971,12 +2983,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 @@ -3003,10 +3015,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 @@ -3032,12 +3044,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 @@ -3065,11 +3077,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 @@ -3083,7 +3095,7 @@ Name | Type | Description | Notes ### Return type -[**list[DartUpstream]**](DartUpstream.md) +[**list[CranUpstream]**](CranUpstream.md) ### Authorization @@ -3096,12 +3108,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 @@ -3126,14 +3138,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 @@ -3143,11 +3155,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 @@ -3160,12 +3172,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 @@ -3192,11 +3204,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 @@ -3209,7 +3221,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3222,12 +3234,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 @@ -3252,14 +3264,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.DartUpstreamRequest() # DartUpstreamRequest | (optional) +data = cloudsmith_api.CranUpstreamRequest() # CranUpstreamRequest | (optional) try: - # Update a Dart upstream config for this repository. - api_response = api_instance.repos_upstream_dart_update(owner, identifier, slug_perm, data=data) + # 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_dart_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_update: %s\n" % e) ``` ### Parameters @@ -3269,11 +3281,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3286,12 +3298,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_dart_create** +> DartUpstream repos_upstream_dart_create(owner, identifier, data=data) -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. ### Example ```python @@ -3315,14 +3327,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.DebUpstreamRequest() # DebUpstreamRequest | (optional) +data = cloudsmith_api.DartUpstreamRequest() # DartUpstreamRequest | (optional) try: - # Create a Debian upstream config for this repository. - api_response = api_instance.repos_upstream_deb_create(owner, identifier, data=data) + # 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_deb_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_create: %s\n" % e) ``` ### Parameters @@ -3331,11 +3343,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3348,12 +3360,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_delete** -> repos_upstream_deb_delete(owner, identifier, slug_perm) +# **repos_upstream_dart_delete** +> repos_upstream_dart_delete(owner, identifier, slug_perm) -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. ### Example ```python @@ -3380,10 +3392,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 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_deb_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_delete: %s\n" % e) ``` ### Parameters @@ -3409,12 +3421,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_dart_list** +> list[DartUpstream] repos_upstream_dart_list(owner, identifier, page=page, page_size=page_size) -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. ### Example ```python @@ -3442,11 +3454,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 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_deb_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_list: %s\n" % e) ``` ### Parameters @@ -3460,7 +3472,7 @@ Name | Type | Description | Notes ### Return type -[**list[DebUpstream]**](DebUpstream.md) +[**list[DartUpstream]**](DartUpstream.md) ### Authorization @@ -3473,12 +3485,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_dart_partial_update** +> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, data=data) -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. +Partially update a Dart upstream config for this repository. ### Example ```python @@ -3503,14 +3515,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.DartUpstreamRequestPatch() # DartUpstreamRequestPatch | (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 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_deb_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_partial_update: %s\n" % e) ``` ### Parameters @@ -3520,11 +3532,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3537,12 +3549,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_dart_read** +> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. ### Example ```python @@ -3569,11 +3581,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 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_deb_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_read: %s\n" % e) ``` ### Parameters @@ -3586,7 +3598,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3599,12 +3611,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_dart_update** +> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, data=data) -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. ### Example ```python @@ -3629,14 +3641,642 @@ 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.DartUpstreamRequest() # DartUpstreamRequest | (optional) try: - # Update a Debian upstream config for this repository. + # 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) +``` + +### 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 + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### 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_update** +> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, data=data) + +Update a Debian upstream config for this repository. + +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.DebUpstreamRequest() # DebUpstreamRequest | (optional) + +try: + # 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_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_deb_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **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_docker_create** +> DockerUpstream repos_upstream_docker_create(owner, identifier, data=data) + +Create a Docker 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 +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 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_docker_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_docker_list** +> list[DockerUpstream] repos_upstream_docker_list(owner, identifier, page=page, page_size=page_size) + +List Docker upstream configs for this repository. + +List Docker 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 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_docker_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[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_partial_update** +> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, data=data) + +Partially update a Docker upstream config for this repository. + +Partially update 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 | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.DockerUpstreamRequestPatch() # DockerUpstreamRequestPatch | (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) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_docker_partial_update: %s\n" % e) ``` ### Parameters @@ -3646,11 +4286,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3663,12 +4303,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_docker_create** -> DockerUpstream repos_upstream_docker_create(owner, identifier, data=data) +# **repos_upstream_docker_read** +> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) -Create a Docker upstream config for this repository. +Retrieve a Docker upstream config for this repository. -Create a Docker upstream config for this repository. +Retrieve 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 | +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) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_docker_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### 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_update** +> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, data=data) + +Update a Docker upstream config for this repository. + +Update a Docker upstream config for this repository. ### Example ```python @@ -3692,14 +4394,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.DockerUpstreamRequest() # DockerUpstreamRequest | (optional) try: - # Create a Docker upstream config for this repository. - api_response = api_instance.repos_upstream_docker_create(owner, identifier, 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_docker_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_update: %s\n" % e) ``` ### Parameters @@ -3708,6 +4411,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | + **slug_perm** | **str**| | **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type @@ -3725,12 +4429,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_docker_delete** -> repos_upstream_docker_delete(owner, identifier, slug_perm) +# **repos_upstream_go_create** +> GoUpstream repos_upstream_go_create(owner, identifier, data=data) -Delete a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Create a Go 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.GoUpstreamRequest() # GoUpstreamRequest | (optional) + +try: + # 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_go_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + +### Return type + +[**GoUpstream**](GoUpstream.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_go_delete** +> repos_upstream_go_delete(owner, identifier, slug_perm) + +Delete a Go upstream config for this repository. + +Delete a Go upstream config for this repository. ### Example ```python @@ -3757,10 +4523,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 @@ -3786,12 +4552,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 @@ -3819,11 +4585,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 @@ -3837,7 +4603,7 @@ Name | Type | Description | Notes ### Return type -[**list[DockerUpstream]**](DockerUpstream.md) +[**list[GoUpstream]**](GoUpstream.md) ### Authorization @@ -3850,12 +4616,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 @@ -3880,14 +4646,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 @@ -3897,11 +4663,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 @@ -3914,12 +4680,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 @@ -3946,11 +4712,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 @@ -3963,7 +4729,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3976,12 +4742,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 @@ -4006,14 +4772,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 @@ -4023,11 +4789,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 @@ -4040,12 +4806,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_go_create** -> GoUpstream repos_upstream_go_create(owner, identifier, data=data) +# **repos_upstream_helm_create** +> HelmUpstream repos_upstream_helm_create(owner, identifier, data=data) -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. ### Example ```python @@ -4069,14 +4835,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.GoUpstreamRequest() # GoUpstreamRequest | (optional) +data = cloudsmith_api.HelmUpstreamRequest() # HelmUpstreamRequest | (optional) try: - # Create a Go upstream config for this repository. - api_response = api_instance.repos_upstream_go_create(owner, identifier, data=data) + # Create a Helm upstream config for this repository. + api_response = api_instance.repos_upstream_helm_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_create: %s\n" % e) ``` ### Parameters @@ -4085,11 +4851,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4102,12 +4868,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_go_delete** -> repos_upstream_go_delete(owner, identifier, slug_perm) +# **repos_upstream_helm_delete** +> repos_upstream_helm_delete(owner, identifier, slug_perm) -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. ### Example ```python @@ -4134,10 +4900,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Go upstream config for this repository. - api_instance.repos_upstream_go_delete(owner, identifier, slug_perm) + # Delete a Helm upstream config for this repository. + api_instance.repos_upstream_helm_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_delete: %s\n" % e) ``` ### Parameters @@ -4163,12 +4929,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_go_list** -> list[GoUpstream] repos_upstream_go_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_helm_list** +> list[HelmUpstream] repos_upstream_helm_list(owner, identifier, page=page, page_size=page_size) -List Go upstream configs for this repository. +List Helm upstream configs for this repository. -List Go upstream configs for this repository. +List Helm upstream configs for this repository. ### Example ```python @@ -4196,11 +4962,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 Go upstream configs for this repository. - api_response = api_instance.repos_upstream_go_list(owner, identifier, page=page, page_size=page_size) + # List Helm upstream configs for this repository. + api_response = api_instance.repos_upstream_helm_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_list: %s\n" % e) ``` ### Parameters @@ -4214,7 +4980,7 @@ Name | Type | Description | Notes ### Return type -[**list[GoUpstream]**](GoUpstream.md) +[**list[HelmUpstream]**](HelmUpstream.md) ### Authorization @@ -4227,12 +4993,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_go_partial_update** -> GoUpstream repos_upstream_go_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_helm_partial_update** +> HelmUpstream repos_upstream_helm_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. ### Example ```python @@ -4257,14 +5023,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.GoUpstreamRequestPatch() # GoUpstreamRequestPatch | (optional) +data = cloudsmith_api.HelmUpstreamRequestPatch() # HelmUpstreamRequestPatch | (optional) try: - # Partially update a Go upstream config for this repository. - api_response = api_instance.repos_upstream_go_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Helm upstream config for this repository. + api_response = api_instance.repos_upstream_helm_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_partial_update: %s\n" % e) ``` ### Parameters @@ -4274,11 +5040,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] + **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4291,12 +5057,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_go_read** -> GoUpstream repos_upstream_go_read(owner, identifier, slug_perm) +# **repos_upstream_helm_read** +> HelmUpstream repos_upstream_helm_read(owner, identifier, slug_perm) -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. ### Example ```python @@ -4323,11 +5089,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Go upstream config for this repository. - api_response = api_instance.repos_upstream_go_read(owner, identifier, slug_perm) + # Retrieve a Helm upstream config for this repository. + api_response = api_instance.repos_upstream_helm_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_read: %s\n" % e) ``` ### Parameters @@ -4340,7 +5106,7 @@ Name | Type | Description | Notes ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4353,12 +5119,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_go_update** -> GoUpstream repos_upstream_go_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_helm_update** +> HelmUpstream repos_upstream_helm_update(owner, identifier, slug_perm, data=data) -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. ### Example ```python @@ -4383,14 +5149,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.GoUpstreamRequest() # GoUpstreamRequest | (optional) +data = cloudsmith_api.HelmUpstreamRequest() # HelmUpstreamRequest | (optional) try: - # Update a Go upstream config for this repository. - api_response = api_instance.repos_upstream_go_update(owner, identifier, slug_perm, data=data) + # Update a Helm upstream config for this repository. + api_response = api_instance.repos_upstream_helm_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_go_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_helm_update: %s\n" % e) ``` ### Parameters @@ -4400,11 +5166,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4417,12 +5183,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_helm_create** -> HelmUpstream repos_upstream_helm_create(owner, identifier, data=data) +# **repos_upstream_hex_create** +> HexUpstream repos_upstream_hex_create(owner, identifier, data=data) -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. ### Example ```python @@ -4446,14 +5212,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.HelmUpstreamRequest() # HelmUpstreamRequest | (optional) +data = cloudsmith_api.HexUpstreamRequest() # HexUpstreamRequest | (optional) try: - # Create a Helm upstream config for this repository. - api_response = api_instance.repos_upstream_helm_create(owner, identifier, data=data) + # Create a Hex upstream config for this repository. + api_response = api_instance.repos_upstream_hex_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_create: %s\n" % e) ``` ### Parameters @@ -4462,11 +5228,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4479,12 +5245,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_helm_delete** -> repos_upstream_helm_delete(owner, identifier, slug_perm) +# **repos_upstream_hex_delete** +> repos_upstream_hex_delete(owner, identifier, slug_perm) -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. ### Example ```python @@ -4511,10 +5277,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Helm upstream config for this repository. - api_instance.repos_upstream_helm_delete(owner, identifier, slug_perm) + # Delete a Hex upstream config for this repository. + api_instance.repos_upstream_hex_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_delete: %s\n" % e) ``` ### Parameters @@ -4540,12 +5306,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_helm_list** -> list[HelmUpstream] repos_upstream_helm_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_hex_list** +> list[HexUpstream] repos_upstream_hex_list(owner, identifier, page=page, page_size=page_size) -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. ### Example ```python @@ -4573,11 +5339,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 Helm upstream configs for this repository. - api_response = api_instance.repos_upstream_helm_list(owner, identifier, page=page, page_size=page_size) + # List Hex upstream configs for this repository. + api_response = api_instance.repos_upstream_hex_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_list: %s\n" % e) ``` ### Parameters @@ -4591,7 +5357,7 @@ Name | Type | Description | Notes ### Return type -[**list[HelmUpstream]**](HelmUpstream.md) +[**list[HexUpstream]**](HexUpstream.md) ### Authorization @@ -4604,12 +5370,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_helm_partial_update** -> HelmUpstream repos_upstream_helm_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_hex_partial_update** +> HexUpstream repos_upstream_hex_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. ### Example ```python @@ -4634,14 +5400,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.HelmUpstreamRequestPatch() # HelmUpstreamRequestPatch | (optional) +data = cloudsmith_api.HexUpstreamRequestPatch() # HexUpstreamRequestPatch | (optional) try: - # Partially update a Helm upstream config for this repository. - api_response = api_instance.repos_upstream_helm_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Hex upstream config for this repository. + api_response = api_instance.repos_upstream_hex_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_partial_update: %s\n" % e) ``` ### Parameters @@ -4651,11 +5417,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] + **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4668,12 +5434,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_helm_read** -> HelmUpstream repos_upstream_helm_read(owner, identifier, slug_perm) +# **repos_upstream_hex_read** +> HexUpstream repos_upstream_hex_read(owner, identifier, slug_perm) -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. ### Example ```python @@ -4700,11 +5466,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Helm upstream config for this repository. - api_response = api_instance.repos_upstream_helm_read(owner, identifier, slug_perm) + # Retrieve a Hex upstream config for this repository. + api_response = api_instance.repos_upstream_hex_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_read: %s\n" % e) ``` ### Parameters @@ -4717,7 +5483,7 @@ Name | Type | Description | Notes ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4730,12 +5496,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_helm_update** -> HelmUpstream repos_upstream_helm_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_hex_update** +> HexUpstream repos_upstream_hex_update(owner, identifier, slug_perm, data=data) -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. ### Example ```python @@ -4760,14 +5526,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.HelmUpstreamRequest() # HelmUpstreamRequest | (optional) +data = cloudsmith_api.HexUpstreamRequest() # HexUpstreamRequest | (optional) try: - # Update a Helm upstream config for this repository. - api_response = api_instance.repos_upstream_helm_update(owner, identifier, slug_perm, data=data) + # Update a Hex upstream config for this repository. + api_response = api_instance.repos_upstream_hex_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_helm_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_hex_update: %s\n" % e) ``` ### Parameters @@ -4777,11 +5543,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4794,12 +5560,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_hex_create** -> HexUpstream repos_upstream_hex_create(owner, identifier, data=data) +# **repos_upstream_huggingface_create** +> HuggingfaceUpstream repos_upstream_huggingface_create(owner, identifier, data=data) -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. ### Example ```python @@ -4823,14 +5589,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.HexUpstreamRequest() # HexUpstreamRequest | (optional) +data = cloudsmith_api.HuggingfaceUpstreamRequest() # HuggingfaceUpstreamRequest | (optional) try: - # Create a Hex upstream config for this repository. - api_response = api_instance.repos_upstream_hex_create(owner, identifier, data=data) + # Create a Hugging Face upstream config for this repository. + api_response = api_instance.repos_upstream_huggingface_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_create: %s\n" % e) ``` ### Parameters @@ -4839,11 +5605,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -4856,12 +5622,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_hex_delete** -> repos_upstream_hex_delete(owner, identifier, slug_perm) +# **repos_upstream_huggingface_delete** +> repos_upstream_huggingface_delete(owner, identifier, slug_perm) -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. ### Example ```python @@ -4888,10 +5654,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Hex upstream config for this repository. - api_instance.repos_upstream_hex_delete(owner, identifier, slug_perm) + # Delete a Hugging Face upstream config for this repository. + api_instance.repos_upstream_huggingface_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_delete: %s\n" % e) ``` ### Parameters @@ -4917,12 +5683,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_hex_list** -> list[HexUpstream] repos_upstream_hex_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_huggingface_list** +> list[HuggingfaceUpstream] repos_upstream_huggingface_list(owner, identifier, page=page, page_size=page_size) -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. ### Example ```python @@ -4950,11 +5716,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 Hex upstream configs for this repository. - api_response = api_instance.repos_upstream_hex_list(owner, identifier, page=page, page_size=page_size) + # List Hugging Face upstream configs for this repository. + api_response = api_instance.repos_upstream_huggingface_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_list: %s\n" % e) ``` ### Parameters @@ -4968,7 +5734,7 @@ Name | Type | Description | Notes ### Return type -[**list[HexUpstream]**](HexUpstream.md) +[**list[HuggingfaceUpstream]**](HuggingfaceUpstream.md) ### Authorization @@ -4981,12 +5747,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_hex_partial_update** -> HexUpstream repos_upstream_hex_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_huggingface_partial_update** +> HuggingfaceUpstream repos_upstream_huggingface_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. ### Example ```python @@ -5011,14 +5777,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.HexUpstreamRequestPatch() # HexUpstreamRequestPatch | (optional) +data = cloudsmith_api.HuggingfaceUpstreamRequestPatch() # HuggingfaceUpstreamRequestPatch | (optional) try: - # Partially update a Hex upstream config for this repository. - api_response = api_instance.repos_upstream_hex_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Hugging Face upstream config for this repository. + api_response = api_instance.repos_upstream_huggingface_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_partial_update: %s\n" % e) ``` ### Parameters @@ -5028,11 +5794,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequestPatch**](HuggingfaceUpstreamRequestPatch.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5045,12 +5811,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_hex_read** -> HexUpstream repos_upstream_hex_read(owner, identifier, slug_perm) +# **repos_upstream_huggingface_read** +> HuggingfaceUpstream repos_upstream_huggingface_read(owner, identifier, slug_perm) -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. ### Example ```python @@ -5077,11 +5843,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Hex upstream config for this repository. - api_response = api_instance.repos_upstream_hex_read(owner, identifier, slug_perm) + # Retrieve a Hugging Face upstream config for this repository. + api_response = api_instance.repos_upstream_huggingface_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_read: %s\n" % e) ``` ### Parameters @@ -5094,7 +5860,7 @@ Name | Type | Description | Notes ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5107,12 +5873,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_hex_update** -> HexUpstream repos_upstream_hex_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_huggingface_update** +> HuggingfaceUpstream repos_upstream_huggingface_update(owner, identifier, slug_perm, data=data) -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. ### Example ```python @@ -5137,14 +5903,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.HexUpstreamRequest() # HexUpstreamRequest | (optional) +data = cloudsmith_api.HuggingfaceUpstreamRequest() # HuggingfaceUpstreamRequest | (optional) try: - # Update a Hex upstream config for this repository. - api_response = api_instance.repos_upstream_hex_update(owner, identifier, slug_perm, data=data) + # Update a Hugging Face upstream config for this repository. + api_response = api_instance.repos_upstream_huggingface_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_hex_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_huggingface_update: %s\n" % e) ``` ### Parameters @@ -5154,11 +5920,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization diff --git a/bindings/python/src/docs/StatusBasic.md b/bindings/python/src/docs/StatusBasic.md index 69bcf8b7..53e56c0e 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.736.13'] +**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.783.2'] [[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/test/test_provider_settings_request.py b/bindings/python/src/test/test_conda_upstream.py similarity index 59% rename from bindings/python/src/test/test_provider_settings_request.py rename to bindings/python/src/test/test_conda_upstream.py index e2010903..8b02759c 100644 --- a/bindings/python/src/test/test_provider_settings_request.py +++ b/bindings/python/src/test/test_conda_upstream.py @@ -16,12 +16,12 @@ import unittest import cloudsmith_api -from cloudsmith_api.models.provider_settings_request import ProviderSettingsRequest # noqa: E501 +from cloudsmith_api.models.conda_upstream import CondaUpstream # noqa: E501 from cloudsmith_api.rest import ApiException -class TestProviderSettingsRequest(unittest.TestCase): - """ProviderSettingsRequest unit test stubs""" +class TestCondaUpstream(unittest.TestCase): + """CondaUpstream unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testProviderSettingsRequest(self): - """Test ProviderSettingsRequest""" + def testCondaUpstream(self): + """Test CondaUpstream""" # FIXME: construct object with mandatory attributes with example values - # model = cloudsmith_api.models.provider_settings_request.ProviderSettingsRequest() # noqa: E501 + # model = cloudsmith_api.models.conda_upstream.CondaUpstream() # noqa: E501 pass diff --git a/bindings/python/src/test/test_provider_settings_request_patch.py b/bindings/python/src/test/test_conda_upstream_request.py similarity index 57% rename from bindings/python/src/test/test_provider_settings_request_patch.py rename to bindings/python/src/test/test_conda_upstream_request.py index 98fe3ab9..8aa6cac8 100644 --- a/bindings/python/src/test/test_provider_settings_request_patch.py +++ b/bindings/python/src/test/test_conda_upstream_request.py @@ -16,12 +16,12 @@ import unittest import cloudsmith_api -from cloudsmith_api.models.provider_settings_request_patch import ProviderSettingsRequestPatch # noqa: E501 +from cloudsmith_api.models.conda_upstream_request import CondaUpstreamRequest # noqa: E501 from cloudsmith_api.rest import ApiException -class TestProviderSettingsRequestPatch(unittest.TestCase): - """ProviderSettingsRequestPatch unit test stubs""" +class TestCondaUpstreamRequest(unittest.TestCase): + """CondaUpstreamRequest unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testProviderSettingsRequestPatch(self): - """Test ProviderSettingsRequestPatch""" + def testCondaUpstreamRequest(self): + """Test CondaUpstreamRequest""" # FIXME: construct object with mandatory attributes with example values - # model = cloudsmith_api.models.provider_settings_request_patch.ProviderSettingsRequestPatch() # noqa: E501 + # model = cloudsmith_api.models.conda_upstream_request.CondaUpstreamRequest() # noqa: E501 pass diff --git a/bindings/python/src/test/test_conda_upstream_request_patch.py b/bindings/python/src/test/test_conda_upstream_request_patch.py new file mode 100644 index 00000000..04ac4b1f --- /dev/null +++ b/bindings/python/src/test/test_conda_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.conda_upstream_request_patch import CondaUpstreamRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestCondaUpstreamRequestPatch(unittest.TestCase): + """CondaUpstreamRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCondaUpstreamRequestPatch(self): + """Test CondaUpstreamRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.conda_upstream_request_patch.CondaUpstreamRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_dynamic_mapping.py b/bindings/python/src/test/test_dynamic_mapping.py new file mode 100644 index 00000000..1edee165 --- /dev/null +++ b/bindings/python/src/test/test_dynamic_mapping.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.dynamic_mapping import DynamicMapping # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestDynamicMapping(unittest.TestCase): + """DynamicMapping unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDynamicMapping(self): + """Test DynamicMapping""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.dynamic_mapping.DynamicMapping() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_huggingface_package_upload.py b/bindings/python/src/test/test_huggingface_package_upload.py new file mode 100644 index 00000000..98eb0af4 --- /dev/null +++ b/bindings/python/src/test/test_huggingface_package_upload.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.huggingface_package_upload import HuggingfacePackageUpload # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestHuggingfacePackageUpload(unittest.TestCase): + """HuggingfacePackageUpload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHuggingfacePackageUpload(self): + """Test HuggingfacePackageUpload""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.huggingface_package_upload.HuggingfacePackageUpload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_huggingface_package_upload_request.py b/bindings/python/src/test/test_huggingface_package_upload_request.py new file mode 100644 index 00000000..4e457ddd --- /dev/null +++ b/bindings/python/src/test/test_huggingface_package_upload_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.huggingface_package_upload_request import HuggingfacePackageUploadRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestHuggingfacePackageUploadRequest(unittest.TestCase): + """HuggingfacePackageUploadRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHuggingfacePackageUploadRequest(self): + """Test HuggingfacePackageUploadRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.huggingface_package_upload_request.HuggingfacePackageUploadRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_huggingface_upstream.py b/bindings/python/src/test/test_huggingface_upstream.py new file mode 100644 index 00000000..81adfb3a --- /dev/null +++ b/bindings/python/src/test/test_huggingface_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.huggingface_upstream import HuggingfaceUpstream # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestHuggingfaceUpstream(unittest.TestCase): + """HuggingfaceUpstream unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHuggingfaceUpstream(self): + """Test HuggingfaceUpstream""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.huggingface_upstream.HuggingfaceUpstream() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_huggingface_upstream_request.py b/bindings/python/src/test/test_huggingface_upstream_request.py new file mode 100644 index 00000000..37d7020b --- /dev/null +++ b/bindings/python/src/test/test_huggingface_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.huggingface_upstream_request import HuggingfaceUpstreamRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestHuggingfaceUpstreamRequest(unittest.TestCase): + """HuggingfaceUpstreamRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHuggingfaceUpstreamRequest(self): + """Test HuggingfaceUpstreamRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.huggingface_upstream_request.HuggingfaceUpstreamRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_huggingface_upstream_request_patch.py b/bindings/python/src/test/test_huggingface_upstream_request_patch.py new file mode 100644 index 00000000..e6619bb6 --- /dev/null +++ b/bindings/python/src/test/test_huggingface_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.huggingface_upstream_request_patch import HuggingfaceUpstreamRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestHuggingfaceUpstreamRequestPatch(unittest.TestCase): + """HuggingfaceUpstreamRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHuggingfaceUpstreamRequestPatch(self): + """Test HuggingfaceUpstreamRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.huggingface_upstream_request_patch.HuggingfaceUpstreamRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_orgs_api.py b/bindings/python/src/test/test_orgs_api.py index fe6bf673..1dac385c 100644 --- a/bindings/python/src/test/test_orgs_api.py +++ b/bindings/python/src/test/test_orgs_api.py @@ -267,6 +267,20 @@ def test_orgs_openid_connect_delete(self): """ pass + def test_orgs_openid_connect_dynamic_mappings_list(self): + """Test case for orgs_openid_connect_dynamic_mappings_list + + Retrieve the list of OpenID Connect dynamic mappings for the provider setting. # noqa: E501 + """ + pass + + def test_orgs_openid_connect_dynamic_mappings_read(self): + """Test case for orgs_openid_connect_dynamic_mappings_read + + Retrieve a specific OpenID Connect dynamic mapping for the provider setting. # noqa: E501 + """ + pass + def test_orgs_openid_connect_list(self): """Test case for orgs_openid_connect_list diff --git a/bindings/python/src/test/test_packages_api.py b/bindings/python/src/test/test_packages_api.py index 90c81320..1c4c25a3 100644 --- a/bindings/python/src/test/test_packages_api.py +++ b/bindings/python/src/test/test_packages_api.py @@ -204,6 +204,13 @@ def test_packages_upload_hex(self): """ pass + def test_packages_upload_huggingface(self): + """Test case for packages_upload_huggingface + + Create a new Hugging Face package # noqa: E501 + """ + pass + def test_packages_upload_luarocks(self): """Test case for packages_upload_luarocks @@ -379,6 +386,13 @@ def test_packages_validate_upload_hex(self): """ pass + def test_packages_validate_upload_huggingface(self): + """Test case for packages_validate_upload_huggingface + + Validate parameters for create Hugging Face package # noqa: E501 + """ + pass + def test_packages_validate_upload_luarocks(self): """Test case for packages_validate_upload_luarocks diff --git a/bindings/python/src/test/test_provider_settings_write.py b/bindings/python/src/test/test_provider_settings_write.py new file mode 100644 index 00000000..eb0a0958 --- /dev/null +++ b/bindings/python/src/test/test_provider_settings_write.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.provider_settings_write import ProviderSettingsWrite # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestProviderSettingsWrite(unittest.TestCase): + """ProviderSettingsWrite unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProviderSettingsWrite(self): + """Test ProviderSettingsWrite""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.provider_settings_write.ProviderSettingsWrite() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_provider_settings_write_request.py b/bindings/python/src/test/test_provider_settings_write_request.py new file mode 100644 index 00000000..dd29e930 --- /dev/null +++ b/bindings/python/src/test/test_provider_settings_write_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.provider_settings_write_request import ProviderSettingsWriteRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestProviderSettingsWriteRequest(unittest.TestCase): + """ProviderSettingsWriteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProviderSettingsWriteRequest(self): + """Test ProviderSettingsWriteRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.provider_settings_write_request.ProviderSettingsWriteRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_provider_settings_write_request_patch.py b/bindings/python/src/test/test_provider_settings_write_request_patch.py new file mode 100644 index 00000000..f348d318 --- /dev/null +++ b/bindings/python/src/test/test_provider_settings_write_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.provider_settings_write_request_patch import ProviderSettingsWriteRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestProviderSettingsWriteRequestPatch(unittest.TestCase): + """ProviderSettingsWriteRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProviderSettingsWriteRequestPatch(self): + """Test ProviderSettingsWriteRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.provider_settings_write_request_patch.ProviderSettingsWriteRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_repos_api.py b/bindings/python/src/test/test_repos_api.py index ccb55df9..fa5adc85 100644 --- a/bindings/python/src/test/test_repos_api.py +++ b/bindings/python/src/test/test_repos_api.py @@ -302,6 +302,48 @@ def test_repos_upstream_composer_update(self): """ pass + def test_repos_upstream_conda_create(self): + """Test case for repos_upstream_conda_create + + Create a Conda upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_conda_delete(self): + """Test case for repos_upstream_conda_delete + + Delete a Conda upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_conda_list(self): + """Test case for repos_upstream_conda_list + + List Conda upstream configs for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_conda_partial_update(self): + """Test case for repos_upstream_conda_partial_update + + Partially update a Conda upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_conda_read(self): + """Test case for repos_upstream_conda_read + + Retrieve a Conda upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_conda_update(self): + """Test case for repos_upstream_conda_update + + Update a Conda upstream config for this repository. # noqa: E501 + """ + pass + def test_repos_upstream_cran_create(self): """Test case for repos_upstream_cran_create @@ -596,6 +638,48 @@ def test_repos_upstream_hex_update(self): """ pass + def test_repos_upstream_huggingface_create(self): + """Test case for repos_upstream_huggingface_create + + Create a Hugging Face upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_huggingface_delete(self): + """Test case for repos_upstream_huggingface_delete + + Delete a Hugging Face upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_huggingface_list(self): + """Test case for repos_upstream_huggingface_list + + List Hugging Face upstream configs for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_huggingface_partial_update(self): + """Test case for repos_upstream_huggingface_partial_update + + Partially update a Hugging Face upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_huggingface_read(self): + """Test case for repos_upstream_huggingface_read + + Retrieve a Hugging Face upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_huggingface_update(self): + """Test case for repos_upstream_huggingface_update + + Update a Hugging Face upstream config for this repository. # noqa: E501 + """ + pass + def test_repos_upstream_maven_create(self): """Test case for repos_upstream_maven_create diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 8581477d..ca7e90d8 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -9,7 +9,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/ - API version: v1 - Package version: 2.0.21 - Build package: io.swagger.codegen.languages.RubyClientCodegen -For more information, please visit [https://docs.cloudsmith.com](https://docs.cloudsmith.com) +For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) ## Installation @@ -154,6 +154,8 @@ Class | Method | HTTP request | Description *CloudsmithApi::OrgsApi* | [**orgs_members_update_visibility**](docs/OrgsApi.md#orgs_members_update_visibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_create**](docs/OrgsApi.md#orgs_openid_connect_create) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_delete**](docs/OrgsApi.md#orgs_openid_connect_delete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +*CloudsmithApi::OrgsApi* | [**orgs_openid_connect_dynamic_mappings_list**](docs/OrgsApi.md#orgs_openid_connect_dynamic_mappings_list) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +*CloudsmithApi::OrgsApi* | [**orgs_openid_connect_dynamic_mappings_read**](docs/OrgsApi.md#orgs_openid_connect_dynamic_mappings_read) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_list**](docs/OrgsApi.md#orgs_openid_connect_list) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_partial_update**](docs/OrgsApi.md#orgs_openid_connect_partial_update) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. *CloudsmithApi::OrgsApi* | [**orgs_openid_connect_read**](docs/OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -216,6 +218,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::PackagesApi* | [**packages_upload_go**](docs/PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package *CloudsmithApi::PackagesApi* | [**packages_upload_helm**](docs/PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package *CloudsmithApi::PackagesApi* | [**packages_upload_hex**](docs/PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +*CloudsmithApi::PackagesApi* | [**packages_upload_huggingface**](docs/PackagesApi.md#packages_upload_huggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package *CloudsmithApi::PackagesApi* | [**packages_upload_luarocks**](docs/PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package *CloudsmithApi::PackagesApi* | [**packages_upload_maven**](docs/PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package *CloudsmithApi::PackagesApi* | [**packages_upload_npm**](docs/PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -241,6 +244,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::PackagesApi* | [**packages_validate_upload_go**](docs/PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_helm**](docs/PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_hex**](docs/PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +*CloudsmithApi::PackagesApi* | [**packages_validate_upload_huggingface**](docs/PackagesApi.md#packages_validate_upload_huggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_luarocks**](docs/PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_maven**](docs/PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package *CloudsmithApi::PackagesApi* | [**packages_validate_upload_npm**](docs/PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -297,6 +301,12 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_upstream_composer_partial_update**](docs/ReposApi.md#repos_upstream_composer_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_composer_read**](docs/ReposApi.md#repos_upstream_composer_read) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_composer_update**](docs/ReposApi.md#repos_upstream_composer_update) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_create**](docs/ReposApi.md#repos_upstream_conda_create) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_delete**](docs/ReposApi.md#repos_upstream_conda_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_list**](docs/ReposApi.md#repos_upstream_conda_list) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_partial_update**](docs/ReposApi.md#repos_upstream_conda_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_read**](docs/ReposApi.md#repos_upstream_conda_read) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_conda_update**](docs/ReposApi.md#repos_upstream_conda_update) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_cran_create**](docs/ReposApi.md#repos_upstream_cran_create) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_cran_delete**](docs/ReposApi.md#repos_upstream_cran_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_cran_list**](docs/ReposApi.md#repos_upstream_cran_list) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -339,6 +349,12 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_upstream_hex_partial_update**](docs/ReposApi.md#repos_upstream_hex_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_hex_read**](docs/ReposApi.md#repos_upstream_hex_read) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_hex_update**](docs/ReposApi.md#repos_upstream_hex_update) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_create**](docs/ReposApi.md#repos_upstream_huggingface_create) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_delete**](docs/ReposApi.md#repos_upstream_huggingface_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_list**](docs/ReposApi.md#repos_upstream_huggingface_list) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_partial_update**](docs/ReposApi.md#repos_upstream_huggingface_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_read**](docs/ReposApi.md#repos_upstream_huggingface_read) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_huggingface_update**](docs/ReposApi.md#repos_upstream_huggingface_update) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_maven_create**](docs/ReposApi.md#repos_upstream_maven_create) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_maven_delete**](docs/ReposApi.md#repos_upstream_maven_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_maven_list**](docs/ReposApi.md#repos_upstream_maven_list) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -432,6 +448,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::ConanPackageUploadRequest](docs/ConanPackageUploadRequest.md) - [CloudsmithApi::CondaPackageUpload](docs/CondaPackageUpload.md) - [CloudsmithApi::CondaPackageUploadRequest](docs/CondaPackageUploadRequest.md) + - [CloudsmithApi::CondaUpstream](docs/CondaUpstream.md) + - [CloudsmithApi::CondaUpstreamRequest](docs/CondaUpstreamRequest.md) + - [CloudsmithApi::CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) - [CloudsmithApi::CranPackageUpload](docs/CranPackageUpload.md) - [CloudsmithApi::CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CloudsmithApi::CranUpstream](docs/CranUpstream.md) @@ -455,6 +474,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::DockerUpstream](docs/DockerUpstream.md) - [CloudsmithApi::DockerUpstreamRequest](docs/DockerUpstreamRequest.md) - [CloudsmithApi::DockerUpstreamRequestPatch](docs/DockerUpstreamRequestPatch.md) + - [CloudsmithApi::DynamicMapping](docs/DynamicMapping.md) - [CloudsmithApi::EntitlementUsageMetrics](docs/EntitlementUsageMetrics.md) - [CloudsmithApi::ErrorDetail](docs/ErrorDetail.md) - [CloudsmithApi::Eula](docs/Eula.md) @@ -480,6 +500,11 @@ Class | Method | HTTP request | Description - [CloudsmithApi::History](docs/History.md) - [CloudsmithApi::HistoryFieldset](docs/HistoryFieldset.md) - [CloudsmithApi::HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) + - [CloudsmithApi::HuggingfacePackageUpload](docs/HuggingfacePackageUpload.md) + - [CloudsmithApi::HuggingfacePackageUploadRequest](docs/HuggingfacePackageUploadRequest.md) + - [CloudsmithApi::HuggingfaceUpstream](docs/HuggingfaceUpstream.md) + - [CloudsmithApi::HuggingfaceUpstreamRequest](docs/HuggingfaceUpstreamRequest.md) + - [CloudsmithApi::HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [CloudsmithApi::InlineResponse200](docs/InlineResponse200.md) - [CloudsmithApi::InlineResponse2001](docs/InlineResponse2001.md) - [CloudsmithApi::LuarocksPackageUpload](docs/LuarocksPackageUpload.md) @@ -568,8 +593,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::PackageVulnerabilityPolicyViolationLog](docs/PackageVulnerabilityPolicyViolationLog.md) - [CloudsmithApi::PackageVulnerabilityPolicyViolationLogCursorPage](docs/PackageVulnerabilityPolicyViolationLogCursorPage.md) - [CloudsmithApi::ProviderSettings](docs/ProviderSettings.md) - - [CloudsmithApi::ProviderSettingsRequest](docs/ProviderSettingsRequest.md) - - [CloudsmithApi::ProviderSettingsRequestPatch](docs/ProviderSettingsRequestPatch.md) + - [CloudsmithApi::ProviderSettingsWrite](docs/ProviderSettingsWrite.md) + - [CloudsmithApi::ProviderSettingsWriteRequest](docs/ProviderSettingsWriteRequest.md) + - [CloudsmithApi::ProviderSettingsWriteRequestPatch](docs/ProviderSettingsWriteRequestPatch.md) - [CloudsmithApi::PythonPackageUpload](docs/PythonPackageUpload.md) - [CloudsmithApi::PythonPackageUploadRequest](docs/PythonPackageUploadRequest.md) - [CloudsmithApi::PythonUpstream](docs/PythonUpstream.md) diff --git a/bindings/ruby/src/docs/CondaUpstream.md b/bindings/ruby/src/docs/CondaUpstream.md new file mode 100644 index 00000000..71eeb2b1 --- /dev/null +++ b/bindings/ruby/src/docs/CondaUpstream.md @@ -0,0 +1,25 @@ +# CloudsmithApi::CondaUpstream + +## 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/CondaUpstreamRequest.md b/bindings/ruby/src/docs/CondaUpstreamRequest.md new file mode 100644 index 00000000..12d2a0b7 --- /dev/null +++ b/bindings/ruby/src/docs/CondaUpstreamRequest.md @@ -0,0 +1,20 @@ +# CloudsmithApi::CondaUpstreamRequest + +## 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/CondaUpstreamRequestPatch.md b/bindings/ruby/src/docs/CondaUpstreamRequestPatch.md new file mode 100644 index 00000000..f6e4b967 --- /dev/null +++ b/bindings/ruby/src/docs/CondaUpstreamRequestPatch.md @@ -0,0 +1,20 @@ +# CloudsmithApi::CondaUpstreamRequestPatch + +## 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/DynamicMapping.md b/bindings/ruby/src/docs/DynamicMapping.md new file mode 100644 index 00000000..fdd4d0cd --- /dev/null +++ b/bindings/ruby/src/docs/DynamicMapping.md @@ -0,0 +1,9 @@ +# CloudsmithApi::DynamicMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_value** | **String** | The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | +**service_account** | **String** | The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | + + diff --git a/bindings/ruby/src/docs/HuggingfacePackageUpload.md b/bindings/ruby/src/docs/HuggingfacePackageUpload.md new file mode 100644 index 00000000..70cb6320 --- /dev/null +++ b/bindings/ruby/src/docs/HuggingfacePackageUpload.md @@ -0,0 +1,87 @@ +# CloudsmithApi::HuggingfacePackageUpload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**Array<Architecture>**](Architecture.md) | | [optional] +**cdn_url** | **String** | | [optional] +**checksum_md5** | **String** | | [optional] +**checksum_sha1** | **String** | | [optional] +**checksum_sha256** | **String** | | [optional] +**checksum_sha512** | **String** | | [optional] +**dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**display_name** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **Integer** | | [optional] +**epoch** | **Integer** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**format_url** | **String** | | [optional] +**freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **String** | | [optional] +**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **BOOLEAN** | | [optional] +**is_cancellable** | **BOOLEAN** | | [optional] +**is_copyable** | **BOOLEAN** | | [optional] +**is_deleteable** | **BOOLEAN** | | [optional] +**is_downloadable** | **BOOLEAN** | | [optional] +**is_moveable** | **BOOLEAN** | | [optional] +**is_quarantinable** | **BOOLEAN** | | [optional] +**is_quarantined** | **BOOLEAN** | | [optional] +**is_resyncable** | **BOOLEAN** | | [optional] +**is_security_scannable** | **BOOLEAN** | | [optional] +**is_sync_awaiting** | **BOOLEAN** | | [optional] +**is_sync_completed** | **BOOLEAN** | | [optional] +**is_sync_failed** | **BOOLEAN** | | [optional] +**is_sync_in_flight** | **BOOLEAN** | | [optional] +**is_sync_in_progress** | **BOOLEAN** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespace_url** | **String** | | [optional] +**num_files** | **Integer** | | [optional] +**origin_repository** | **String** | | [optional] +**origin_repository_url** | **String** | | [optional] +**package_type** | **Integer** | The type of package contents. | [optional] +**policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repository_url** | **String** | | [optional] +**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **String** | | [optional] +**self_url** | **String** | | [optional] +**signature_url** | **String** | | [optional] +**size** | **Integer** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slug_perm** | **String** | | [optional] +**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **String** | | [optional] +**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional] +**status** | **Integer** | The synchronisation status of the package. | [optional] +**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **String** | | [optional] +**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] +**status_url** | **String** | | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**type_display** | **String** | | [optional] +**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploader_url** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**version_orig** | **String** | | [optional] +**vulnerability_scan_results_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md new file mode 100644 index 00000000..746e0fc7 --- /dev/null +++ b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md @@ -0,0 +1,10 @@ +# CloudsmithApi::HuggingfacePackageUploadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**package_file** | **String** | The primary file for the package. | +**republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] + + diff --git a/bindings/ruby/src/docs/HuggingfaceUpstream.md b/bindings/ruby/src/docs/HuggingfaceUpstream.md new file mode 100644 index 00000000..ba62327d --- /dev/null +++ b/bindings/ruby/src/docs/HuggingfaceUpstream.md @@ -0,0 +1,25 @@ +# CloudsmithApi::HuggingfaceUpstream + +## 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/HuggingfaceUpstreamRequest.md b/bindings/ruby/src/docs/HuggingfaceUpstreamRequest.md new file mode 100644 index 00000000..81f49c48 --- /dev/null +++ b/bindings/ruby/src/docs/HuggingfaceUpstreamRequest.md @@ -0,0 +1,20 @@ +# CloudsmithApi::HuggingfaceUpstreamRequest + +## 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/HuggingfaceUpstreamRequestPatch.md b/bindings/ruby/src/docs/HuggingfaceUpstreamRequestPatch.md new file mode 100644 index 00000000..6cdba310 --- /dev/null +++ b/bindings/ruby/src/docs/HuggingfaceUpstreamRequestPatch.md @@ -0,0 +1,20 @@ +# CloudsmithApi::HuggingfaceUpstreamRequestPatch + +## 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/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index 81df3065..f5887a32 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -38,6 +38,8 @@ Method | HTTP request | Description [**orgs_members_update_visibility**](OrgsApi.md#orgs_members_update_visibility) | **PATCH** /orgs/{org}/members/{member}/update-visibility/ | Update a member's visibility in the organization. [**orgs_openid_connect_create**](OrgsApi.md#orgs_openid_connect_create) | **POST** /orgs/{org}/openid-connect/ | Create the OpenID Connect provider settings for the org. [**orgs_openid_connect_delete**](OrgsApi.md#orgs_openid_connect_delete) | **DELETE** /orgs/{org}/openid-connect/{slug_perm}/ | Delete a specific OpenID Connect provider setting for the org. +[**orgs_openid_connect_dynamic_mappings_list**](OrgsApi.md#orgs_openid_connect_dynamic_mappings_list) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/ | Retrieve the list of OpenID Connect dynamic mappings for the provider setting. +[**orgs_openid_connect_dynamic_mappings_read**](OrgsApi.md#orgs_openid_connect_dynamic_mappings_read) | **GET** /orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/ | Retrieve a specific OpenID Connect dynamic mapping for the provider setting. [**orgs_openid_connect_list**](OrgsApi.md#orgs_openid_connect_list) | **GET** /orgs/{org}/openid-connect/ | Retrieve the list of OpenID Connect provider settings for the org. [**orgs_openid_connect_partial_update**](OrgsApi.md#orgs_openid_connect_partial_update) | **PATCH** /orgs/{org}/openid-connect/{slug_perm}/ | Update a specific OpenID Connect provider setting for the org. [**orgs_openid_connect_read**](OrgsApi.md#orgs_openid_connect_read) | **GET** /orgs/{org}/openid-connect/{slug_perm}/ | Retrieve a specific OpenID Connect provider setting for the org. @@ -2089,7 +2091,7 @@ Name | Type | Description | Notes # **orgs_openid_connect_create** -> ProviderSettings orgs_openid_connect_create(org, opts) +> ProviderSettingsWrite orgs_openid_connect_create(org, opts) Create the OpenID Connect provider settings for the org. @@ -2116,7 +2118,7 @@ api_instance = CloudsmithApi::OrgsApi.new org = 'org_example' # String | opts = { - data: CloudsmithApi::ProviderSettingsRequest.new # ProviderSettingsRequest | + data: CloudsmithApi::ProviderSettingsWriteRequest.new # ProviderSettingsWriteRequest | } begin @@ -2133,11 +2135,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2210,6 +2212,137 @@ nil (empty response body) +# **orgs_openid_connect_dynamic_mappings_list** +> Array<DynamicMapping> orgs_openid_connect_dynamic_mappings_list(org, provider_setting, opts) + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + +### 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::OrgsApi.new + +org = 'org_example' # String | + +provider_setting = 'provider_setting_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 + #Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + result = api_instance.orgs_openid_connect_dynamic_mappings_list(org, provider_setting, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_openid_connect_dynamic_mappings_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **provider_setting** | **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<DynamicMapping>**](DynamicMapping.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **orgs_openid_connect_dynamic_mappings_read** +> DynamicMapping orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value) + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + +### 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::OrgsApi.new + +org = 'org_example' # String | + +provider_setting = 'provider_setting_example' # String | + +claim_value = 'claim_value_example' # String | + + +begin + #Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + result = api_instance.orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_openid_connect_dynamic_mappings_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **provider_setting** | **String**| | + **claim_value** | **String**| | + +### Return type + +[**DynamicMapping**](DynamicMapping.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **orgs_openid_connect_list** > Array<ProviderSettings> orgs_openid_connect_list(org, opts) @@ -2279,7 +2412,7 @@ Name | Type | Description | Notes # **orgs_openid_connect_partial_update** -> ProviderSettings orgs_openid_connect_partial_update(org, slug_perm, opts) +> ProviderSettingsWrite orgs_openid_connect_partial_update(org, slug_perm, opts) Update a specific OpenID Connect provider setting for the org. @@ -2308,7 +2441,7 @@ org = 'org_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::ProviderSettingsRequestPatch.new # ProviderSettingsRequestPatch | + data: CloudsmithApi::ProviderSettingsWriteRequestPatch.new # ProviderSettingsWriteRequestPatch | } begin @@ -2326,11 +2459,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | **slug_perm** | **String**| | - **data** | [**ProviderSettingsRequestPatch**](ProviderSettingsRequestPatch.md)| | [optional] + **data** | [**ProviderSettingsWriteRequestPatch**](ProviderSettingsWriteRequestPatch.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization @@ -2405,7 +2538,7 @@ Name | Type | Description | Notes # **orgs_openid_connect_update** -> ProviderSettings orgs_openid_connect_update(org, slug_perm, opts) +> ProviderSettingsWrite orgs_openid_connect_update(org, slug_perm, opts) Update a specific OpenID Connect provider setting for the org. @@ -2434,7 +2567,7 @@ org = 'org_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::ProviderSettingsRequest.new # ProviderSettingsRequest | + data: CloudsmithApi::ProviderSettingsWriteRequest.new # ProviderSettingsWriteRequest | } begin @@ -2452,11 +2585,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| | **slug_perm** | **String**| | - **data** | [**ProviderSettingsRequest**](ProviderSettingsRequest.md)| | [optional] + **data** | [**ProviderSettingsWriteRequest**](ProviderSettingsWriteRequest.md)| | [optional] ### Return type -[**ProviderSettings**](ProviderSettings.md) +[**ProviderSettingsWrite**](ProviderSettingsWrite.md) ### Authorization diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index 206c96b6..34bcfd9f 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -29,6 +29,7 @@ Method | HTTP request | Description [**packages_upload_go**](PackagesApi.md#packages_upload_go) | **POST** /packages/{owner}/{repo}/upload/go/ | Create a new Go package [**packages_upload_helm**](PackagesApi.md#packages_upload_helm) | **POST** /packages/{owner}/{repo}/upload/helm/ | Create a new Helm package [**packages_upload_hex**](PackagesApi.md#packages_upload_hex) | **POST** /packages/{owner}/{repo}/upload/hex/ | Create a new Hex package +[**packages_upload_huggingface**](PackagesApi.md#packages_upload_huggingface) | **POST** /packages/{owner}/{repo}/upload/huggingface/ | Create a new Hugging Face package [**packages_upload_luarocks**](PackagesApi.md#packages_upload_luarocks) | **POST** /packages/{owner}/{repo}/upload/luarocks/ | Create a new LuaRocks package [**packages_upload_maven**](PackagesApi.md#packages_upload_maven) | **POST** /packages/{owner}/{repo}/upload/maven/ | Create a new Maven package [**packages_upload_npm**](PackagesApi.md#packages_upload_npm) | **POST** /packages/{owner}/{repo}/upload/npm/ | Create a new npm package @@ -54,6 +55,7 @@ Method | HTTP request | Description [**packages_validate_upload_go**](PackagesApi.md#packages_validate_upload_go) | **POST** /packages/{owner}/{repo}/validate-upload/go/ | Validate parameters for create Go package [**packages_validate_upload_helm**](PackagesApi.md#packages_validate_upload_helm) | **POST** /packages/{owner}/{repo}/validate-upload/helm/ | Validate parameters for create Helm package [**packages_validate_upload_hex**](PackagesApi.md#packages_validate_upload_hex) | **POST** /packages/{owner}/{repo}/validate-upload/hex/ | Validate parameters for create Hex package +[**packages_validate_upload_huggingface**](PackagesApi.md#packages_validate_upload_huggingface) | **POST** /packages/{owner}/{repo}/validate-upload/huggingface/ | Validate parameters for create Hugging Face package [**packages_validate_upload_luarocks**](PackagesApi.md#packages_validate_upload_luarocks) | **POST** /packages/{owner}/{repo}/validate-upload/luarocks/ | Validate parameters for create LuaRocks package [**packages_validate_upload_maven**](PackagesApi.md#packages_validate_upload_maven) | **POST** /packages/{owner}/{repo}/validate-upload/maven/ | Validate parameters for create Maven package [**packages_validate_upload_npm**](PackagesApi.md#packages_validate_upload_npm) | **POST** /packages/{owner}/{repo}/validate-upload/npm/ | Validate parameters for create npm package @@ -296,6 +298,7 @@ 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. + hide_subcomponents: false, # BOOLEAN | Whether to hide packages which are subcomponents of another package in the results 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. } @@ -318,6 +321,7 @@ Name | Type | Description | Notes **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] + **hide_subcomponents** | **BOOLEAN**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false] **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] @@ -1712,6 +1716,71 @@ Name | Type | Description | Notes +# **packages_upload_huggingface** +> HuggingfacePackageUpload packages_upload_huggingface(owner, repo, opts) + +Create a new Hugging Face package + +Create a new Hugging Face package + +### 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 = { + data: CloudsmithApi::HuggingfacePackageUploadRequest.new # HuggingfacePackageUploadRequest | +} + +begin + #Create a new Hugging Face package + result = api_instance.packages_upload_huggingface(owner, repo, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling PackagesApi->packages_upload_huggingface: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### Return type + +[**HuggingfacePackageUpload**](HuggingfacePackageUpload.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **packages_upload_luarocks** > LuarocksPackageUpload packages_upload_luarocks(owner, repo, opts) @@ -3324,6 +3393,70 @@ nil (empty response body) +# **packages_validate_upload_huggingface** +> packages_validate_upload_huggingface(owner, repo, opts) + +Validate parameters for create Hugging Face package + +Validate parameters for create Hugging Face package + +### 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 = { + data: CloudsmithApi::HuggingfacePackageUploadRequest.new # HuggingfacePackageUploadRequest | +} + +begin + #Validate parameters for create Hugging Face package + api_instance.packages_validate_upload_huggingface(owner, repo, opts) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling PackagesApi->packages_validate_upload_huggingface: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **data** | [**HuggingfacePackageUploadRequest**](HuggingfacePackageUploadRequest.md)| | [optional] + +### 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 + + + # **packages_validate_upload_luarocks** > packages_validate_upload_luarocks(owner, repo, opts) diff --git a/bindings/ruby/src/docs/ProviderSettings.md b/bindings/ruby/src/docs/ProviderSettings.md index f37b5566..b50dba8d 100644 --- a/bindings/ruby/src/docs/ProviderSettings.md +++ b/bindings/ruby/src/docs/ProviderSettings.md @@ -5,9 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | **enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] **name** | **String** | The name of the provider settings are being configured for | **provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**service_accounts** | **Array<String>** | The service accounts associated with these provider settings | +**service_accounts** | **Array<String>** | The service accounts associated with these provider settings. | [optional] **slug** | **String** | The slug of the provider settings | [optional] **slug_perm** | **String** | The unique, immutable identifier of the provider settings. | [optional] diff --git a/bindings/ruby/src/docs/ProviderSettingsRequest.md b/bindings/ruby/src/docs/ProviderSettingsRequest.md deleted file mode 100644 index 0b61d953..00000000 --- a/bindings/ruby/src/docs/ProviderSettingsRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# CloudsmithApi::ProviderSettingsRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | -**enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | -**name** | **String** | The name of the provider settings are being configured for | -**provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | -**service_accounts** | **Array<String>** | The service accounts associated with these provider settings | - - diff --git a/bindings/ruby/src/docs/ProviderSettingsRequestPatch.md b/bindings/ruby/src/docs/ProviderSettingsRequestPatch.md deleted file mode 100644 index f3dba6e4..00000000 --- a/bindings/ruby/src/docs/ProviderSettingsRequestPatch.md +++ /dev/null @@ -1,12 +0,0 @@ -# CloudsmithApi::ProviderSettingsRequestPatch - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | [optional] -**enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | [optional] -**name** | **String** | The name of the provider settings are being configured for | [optional] -**provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | [optional] -**service_accounts** | **Array<String>** | The service accounts associated with these provider settings | [optional] - - diff --git a/bindings/ruby/src/docs/ProviderSettingsWrite.md b/bindings/ruby/src/docs/ProviderSettingsWrite.md new file mode 100644 index 00000000..dc0febe3 --- /dev/null +++ b/bindings/ruby/src/docs/ProviderSettingsWrite.md @@ -0,0 +1,16 @@ +# CloudsmithApi::ProviderSettingsWrite + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamic_mappings** | [**Array<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | +**provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | +**service_accounts** | **Array<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] +**slug** | **String** | The slug of the provider settings | [optional] +**slug_perm** | **String** | The unique, immutable identifier of the provider settings. | [optional] + + diff --git a/bindings/ruby/src/docs/ProviderSettingsWriteRequest.md b/bindings/ruby/src/docs/ProviderSettingsWriteRequest.md new file mode 100644 index 00000000..4c265221 --- /dev/null +++ b/bindings/ruby/src/docs/ProviderSettingsWriteRequest.md @@ -0,0 +1,14 @@ +# CloudsmithApi::ProviderSettingsWriteRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | +**dynamic_mappings** | [**Array<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | +**mapping_claim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | +**provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | +**service_accounts** | **Array<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] + + diff --git a/bindings/ruby/src/docs/ProviderSettingsWriteRequestPatch.md b/bindings/ruby/src/docs/ProviderSettingsWriteRequestPatch.md new file mode 100644 index 00000000..fb96e4f4 --- /dev/null +++ b/bindings/ruby/src/docs/ProviderSettingsWriteRequestPatch.md @@ -0,0 +1,14 @@ +# CloudsmithApi::ProviderSettingsWriteRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claims** | **Object** | The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. | [optional] +**dynamic_mappings** | [**Array<DynamicMapping>**](DynamicMapping.md) | The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**enabled** | **BOOLEAN** | Whether the provider settings should be used for incoming OIDC requests. | [optional] +**mapping_claim** | **String** | The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. | [optional] +**name** | **String** | The name of the provider settings are being configured for | [optional] +**provider_url** | **String** | The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ | [optional] +**service_accounts** | **Array<String>** | The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. | [optional] + + diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index 5a5ce1fc..10210557 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -43,6 +43,12 @@ Method | HTTP request | Description [**repos_upstream_composer_partial_update**](ReposApi.md#repos_upstream_composer_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Partially update a Composer upstream config for this repository. [**repos_upstream_composer_read**](ReposApi.md#repos_upstream_composer_read) | **GET** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Retrieve a Composer upstream config for this repository. [**repos_upstream_composer_update**](ReposApi.md#repos_upstream_composer_update) | **PUT** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Update a Composer upstream config for this repository. +[**repos_upstream_conda_create**](ReposApi.md#repos_upstream_conda_create) | **POST** /repos/{owner}/{identifier}/upstream/conda/ | Create a Conda upstream config for this repository. +[**repos_upstream_conda_delete**](ReposApi.md#repos_upstream_conda_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Delete a Conda upstream config for this repository. +[**repos_upstream_conda_list**](ReposApi.md#repos_upstream_conda_list) | **GET** /repos/{owner}/{identifier}/upstream/conda/ | List Conda upstream configs for this repository. +[**repos_upstream_conda_partial_update**](ReposApi.md#repos_upstream_conda_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Partially update a Conda upstream config for this repository. +[**repos_upstream_conda_read**](ReposApi.md#repos_upstream_conda_read) | **GET** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Retrieve a Conda upstream config for this repository. +[**repos_upstream_conda_update**](ReposApi.md#repos_upstream_conda_update) | **PUT** /repos/{owner}/{identifier}/upstream/conda/{slug_perm}/ | Update a Conda upstream config for this repository. [**repos_upstream_cran_create**](ReposApi.md#repos_upstream_cran_create) | **POST** /repos/{owner}/{identifier}/upstream/cran/ | Create a CRAN upstream config for this repository. [**repos_upstream_cran_delete**](ReposApi.md#repos_upstream_cran_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cran/{slug_perm}/ | Delete a CRAN upstream config for this repository. [**repos_upstream_cran_list**](ReposApi.md#repos_upstream_cran_list) | **GET** /repos/{owner}/{identifier}/upstream/cran/ | List CRAN upstream configs for this repository. @@ -85,6 +91,12 @@ Method | HTTP request | Description [**repos_upstream_hex_partial_update**](ReposApi.md#repos_upstream_hex_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Partially update a Hex upstream config for this repository. [**repos_upstream_hex_read**](ReposApi.md#repos_upstream_hex_read) | **GET** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Retrieve a Hex upstream config for this repository. [**repos_upstream_hex_update**](ReposApi.md#repos_upstream_hex_update) | **PUT** /repos/{owner}/{identifier}/upstream/hex/{slug_perm}/ | Update a Hex upstream config for this repository. +[**repos_upstream_huggingface_create**](ReposApi.md#repos_upstream_huggingface_create) | **POST** /repos/{owner}/{identifier}/upstream/huggingface/ | Create a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_delete**](ReposApi.md#repos_upstream_huggingface_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Delete a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_list**](ReposApi.md#repos_upstream_huggingface_list) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/ | List Hugging Face upstream configs for this repository. +[**repos_upstream_huggingface_partial_update**](ReposApi.md#repos_upstream_huggingface_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Partially update a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_read**](ReposApi.md#repos_upstream_huggingface_read) | **GET** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Retrieve a Hugging Face upstream config for this repository. +[**repos_upstream_huggingface_update**](ReposApi.md#repos_upstream_huggingface_update) | **PUT** /repos/{owner}/{identifier}/upstream/huggingface/{slug_perm}/ | Update a Hugging Face upstream config for this repository. [**repos_upstream_maven_create**](ReposApi.md#repos_upstream_maven_create) | **POST** /repos/{owner}/{identifier}/upstream/maven/ | Create a Maven upstream config for this repository. [**repos_upstream_maven_delete**](ReposApi.md#repos_upstream_maven_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/maven/{slug_perm}/ | Delete a Maven upstream config for this repository. [**repos_upstream_maven_list**](ReposApi.md#repos_upstream_maven_list) | **GET** /repos/{owner}/{identifier}/upstream/maven/ | List Maven upstream configs for this repository. @@ -2625,12 +2637,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_create** -> CranUpstream repos_upstream_cran_create(owner, identifier, opts) +# **repos_upstream_conda_create** +> CondaUpstream repos_upstream_conda_create(owner, identifier, opts) -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Conda upstream config for this repository. ### Example ```ruby @@ -2655,15 +2667,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | + data: CloudsmithApi::CondaUpstreamRequest.new # CondaUpstreamRequest | } begin - #Create a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_create(owner, identifier, opts) + #Create a Conda upstream config for this repository. + result = api_instance.repos_upstream_conda_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_conda_create: #{e}" end ``` @@ -2673,11 +2685,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2690,12 +2702,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_delete** -> repos_upstream_cran_delete(owner, identifier, slug_perm) +# **repos_upstream_conda_delete** +> repos_upstream_conda_delete(owner, identifier, slug_perm) -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Conda upstream config for this repository. ### Example ```ruby @@ -2723,10 +2735,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 Conda upstream config for this repository. + api_instance.repos_upstream_conda_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_conda_delete: #{e}" end ``` @@ -2753,12 +2765,12 @@ nil (empty response body) -# **repos_upstream_cran_list** -> Array<CranUpstream> repos_upstream_cran_list(owner, identifier, opts) +# **repos_upstream_conda_list** +> Array<CondaUpstream> repos_upstream_conda_list(owner, identifier, opts) -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. -List CRAN upstream configs for this repository. +List Conda upstream configs for this repository. ### Example ```ruby @@ -2788,11 +2800,11 @@ opts = { } begin - #List CRAN upstream configs for this repository. - result = api_instance.repos_upstream_cran_list(owner, identifier, opts) + #List Conda upstream configs for this repository. + result = api_instance.repos_upstream_conda_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_conda_list: #{e}" end ``` @@ -2807,7 +2819,7 @@ Name | Type | Description | Notes ### Return type -[**Array<CranUpstream>**](CranUpstream.md) +[**Array<CondaUpstream>**](CondaUpstream.md) ### Authorization @@ -2820,12 +2832,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_partial_update** -> CranUpstream repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_conda_partial_update** +> CondaUpstream repos_upstream_conda_partial_update(owner, identifier, slug_perm, opts) -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Conda upstream config for this repository. ### Example ```ruby @@ -2852,15 +2864,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequestPatch.new # CranUpstreamRequestPatch | + data: CloudsmithApi::CondaUpstreamRequestPatch.new # CondaUpstreamRequestPatch | } 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 Conda upstream config for this repository. + result = api_instance.repos_upstream_conda_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_conda_partial_update: #{e}" end ``` @@ -2871,11 +2883,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**CondaUpstreamRequestPatch**](CondaUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2888,12 +2900,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_read** -> CranUpstream repos_upstream_cran_read(owner, identifier, slug_perm) +# **repos_upstream_conda_read** +> CondaUpstream repos_upstream_conda_read(owner, identifier, slug_perm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Conda upstream config for this repository. ### Example ```ruby @@ -2921,11 +2933,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 Conda upstream config for this repository. + result = api_instance.repos_upstream_conda_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_conda_read: #{e}" end ``` @@ -2939,7 +2951,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -2952,12 +2964,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_update** -> CranUpstream repos_upstream_cran_update(owner, identifier, slug_perm, opts) +# **repos_upstream_conda_update** +> CondaUpstream repos_upstream_conda_update(owner, identifier, slug_perm, opts) -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Conda upstream config for this repository. ### Example ```ruby @@ -2984,15 +2996,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | + data: CloudsmithApi::CondaUpstreamRequest.new # CondaUpstreamRequest | } begin - #Update a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_update(owner, identifier, slug_perm, opts) + #Update a Conda upstream config for this repository. + result = api_instance.repos_upstream_conda_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_conda_update: #{e}" end ``` @@ -3003,11 +3015,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**CondaUpstreamRequest**](CondaUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**CondaUpstream**](CondaUpstream.md) ### Authorization @@ -3020,12 +3032,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 @@ -3050,15 +3062,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 ``` @@ -3068,11 +3080,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 @@ -3085,12 +3097,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 @@ -3118,10 +3130,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 ``` @@ -3148,12 +3160,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 @@ -3183,11 +3195,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 ``` @@ -3202,7 +3214,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DartUpstream>**](DartUpstream.md) +[**Array<CranUpstream>**](CranUpstream.md) ### Authorization @@ -3215,12 +3227,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 @@ -3247,15 +3259,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 ``` @@ -3266,11 +3278,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 @@ -3283,12 +3295,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 @@ -3316,11 +3328,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 ``` @@ -3334,7 +3346,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3347,12 +3359,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 @@ -3379,15 +3391,15 @@ 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. - result = api_instance.repos_upstream_dart_update(owner, identifier, slug_perm, opts) + #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_dart_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_update: #{e}" end ``` @@ -3398,11 +3410,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -3415,12 +3427,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_create** -> DebUpstream repos_upstream_deb_create(owner, identifier, opts) +# **repos_upstream_dart_create** +> DartUpstream repos_upstream_dart_create(owner, identifier, opts) -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. -Create a Debian upstream config for this repository. +Create a Dart upstream config for this repository. ### Example ```ruby @@ -3445,15 +3457,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::DebUpstreamRequest.new # DebUpstreamRequest | + data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | } begin - #Create a Debian upstream config for this repository. - result = api_instance.repos_upstream_deb_create(owner, identifier, opts) + #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_deb_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_create: #{e}" end ``` @@ -3463,11 +3475,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3480,12 +3492,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_delete** -> repos_upstream_deb_delete(owner, identifier, slug_perm) +# **repos_upstream_dart_delete** +> repos_upstream_dart_delete(owner, identifier, slug_perm) -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. -Delete a Debian upstream config for this repository. +Delete a Dart upstream config for this repository. ### Example ```ruby @@ -3513,10 +3525,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 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_deb_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_delete: #{e}" end ``` @@ -3543,12 +3555,12 @@ nil (empty response body) -# **repos_upstream_deb_list** -> Array<DebUpstream> repos_upstream_deb_list(owner, identifier, opts) +# **repos_upstream_dart_list** +> Array<DartUpstream> repos_upstream_dart_list(owner, identifier, opts) -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. -List Debian upstream configs for this repository. +List Dart upstream configs for this repository. ### Example ```ruby @@ -3578,11 +3590,11 @@ opts = { } begin - #List Debian upstream configs for this repository. - result = api_instance.repos_upstream_deb_list(owner, identifier, opts) + #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_deb_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_list: #{e}" end ``` @@ -3597,7 +3609,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DebUpstream>**](DebUpstream.md) +[**Array<DartUpstream>**](DartUpstream.md) ### Authorization @@ -3610,12 +3622,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_partial_update** -> DebUpstream repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_dart_partial_update** +> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts) -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. +Partially update a Dart upstream config for this repository. ### Example ```ruby @@ -3642,15 +3654,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DebUpstreamRequestPatch.new # DebUpstreamRequestPatch | + data: CloudsmithApi::DartUpstreamRequestPatch.new # DartUpstreamRequestPatch | } 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 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_deb_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_partial_update: #{e}" end ``` @@ -3661,11 +3673,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3678,12 +3690,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_read** -> DebUpstream repos_upstream_deb_read(owner, identifier, slug_perm) +# **repos_upstream_dart_read** +> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Dart upstream config for this repository. ### Example ```ruby @@ -3711,11 +3723,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 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_deb_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_read: #{e}" end ``` @@ -3729,7 +3741,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DartUpstream**](DartUpstream.md) ### Authorization @@ -3742,12 +3754,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_update** -> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, opts) +# **repos_upstream_dart_update** +> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, opts) -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Dart upstream config for this repository. ### Example ```ruby @@ -3774,15 +3786,673 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DebUpstreamRequest.new # DebUpstreamRequest | + data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | } begin - #Update a Debian upstream config for this repository. + #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}" +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 +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### 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_update** +> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, opts) + +Update a Debian upstream config for this repository. + +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::DebUpstreamRequest.new # DebUpstreamRequest | +} + +begin + #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_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_deb_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **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_docker_create** +> DockerUpstream repos_upstream_docker_create(owner, identifier, opts) + +Create a Docker 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 +# 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 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_docker_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_docker_list** +> Array<DockerUpstream> repos_upstream_docker_list(owner, identifier, opts) + +List Docker upstream configs for this repository. + +List Docker 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 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_docker_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<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_partial_update** +> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts) + +Partially update a Docker upstream config for this repository. + +Partially update 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 | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::DockerUpstreamRequestPatch.new # DockerUpstreamRequestPatch | +} + +begin + #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_docker_partial_update: #{e}" end ``` @@ -3793,11 +4463,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3810,12 +4480,76 @@ Name | Type | Description | Notes -# **repos_upstream_docker_create** -> DockerUpstream repos_upstream_docker_create(owner, identifier, opts) +# **repos_upstream_docker_read** +> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) + +Retrieve a Docker upstream config for this repository. + +Retrieve 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 | + +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) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_docker_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +[**DockerUpstream**](DockerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json -Create a Docker upstream config for this repository. -Create a Docker upstream config for this repository. + +# **repos_upstream_docker_update** +> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, opts) + +Update a Docker upstream config for this repository. + +Update a Docker upstream config for this repository. ### Example ```ruby @@ -3839,16 +4573,18 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | +slug_perm = 'slug_perm_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) + #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_docker_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_update: #{e}" end ``` @@ -3858,6 +4594,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | + **slug_perm** | **String**| | **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type @@ -3875,12 +4612,77 @@ Name | Type | Description | Notes -# **repos_upstream_docker_delete** -> repos_upstream_docker_delete(owner, identifier, slug_perm) +# **repos_upstream_go_create** +> GoUpstream repos_upstream_go_create(owner, identifier, opts) -Delete a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Create a Go 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::GoUpstreamRequest.new # GoUpstreamRequest | +} + +begin + #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_go_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + +### Return type + +[**GoUpstream**](GoUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_go_delete** +> repos_upstream_go_delete(owner, identifier, slug_perm) + +Delete a Go upstream config for this repository. + +Delete a Go upstream config for this repository. ### Example ```ruby @@ -3908,10 +4710,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 ``` @@ -3938,12 +4740,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 @@ -3973,11 +4775,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 ``` @@ -3992,7 +4794,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DockerUpstream>**](DockerUpstream.md) +[**Array<GoUpstream>**](GoUpstream.md) ### Authorization @@ -4005,12 +4807,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 @@ -4037,15 +4839,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 ``` @@ -4056,11 +4858,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 @@ -4073,12 +4875,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 @@ -4106,11 +4908,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 ``` @@ -4124,7 +4926,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -4137,12 +4939,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 @@ -4169,15 +4971,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 ``` @@ -4188,11 +4990,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 @@ -4205,12 +5007,12 @@ Name | Type | Description | Notes -# **repos_upstream_go_create** -> GoUpstream repos_upstream_go_create(owner, identifier, opts) +# **repos_upstream_helm_create** +> HelmUpstream repos_upstream_helm_create(owner, identifier, opts) -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. -Create a Go upstream config for this repository. +Create a Helm upstream config for this repository. ### Example ```ruby @@ -4235,15 +5037,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::GoUpstreamRequest.new # GoUpstreamRequest | + data: CloudsmithApi::HelmUpstreamRequest.new # HelmUpstreamRequest | } begin - #Create a Go upstream config for this repository. - result = api_instance.repos_upstream_go_create(owner, identifier, opts) + #Create a Helm upstream config for this repository. + result = api_instance.repos_upstream_helm_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_create: #{e}" end ``` @@ -4253,11 +5055,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4270,12 +5072,12 @@ Name | Type | Description | Notes -# **repos_upstream_go_delete** -> repos_upstream_go_delete(owner, identifier, slug_perm) +# **repos_upstream_helm_delete** +> repos_upstream_helm_delete(owner, identifier, slug_perm) -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. -Delete a Go upstream config for this repository. +Delete a Helm upstream config for this repository. ### Example ```ruby @@ -4303,10 +5105,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Go upstream config for this repository. - api_instance.repos_upstream_go_delete(owner, identifier, slug_perm) + #Delete a Helm upstream config for this repository. + api_instance.repos_upstream_helm_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_delete: #{e}" end ``` @@ -4333,12 +5135,12 @@ nil (empty response body) -# **repos_upstream_go_list** -> Array<GoUpstream> repos_upstream_go_list(owner, identifier, opts) +# **repos_upstream_helm_list** +> Array<HelmUpstream> repos_upstream_helm_list(owner, identifier, opts) -List Go upstream configs for this repository. +List Helm upstream configs for this repository. -List Go upstream configs for this repository. +List Helm upstream configs for this repository. ### Example ```ruby @@ -4368,11 +5170,11 @@ opts = { } begin - #List Go upstream configs for this repository. - result = api_instance.repos_upstream_go_list(owner, identifier, opts) + #List Helm upstream configs for this repository. + result = api_instance.repos_upstream_helm_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_list: #{e}" end ``` @@ -4387,7 +5189,7 @@ Name | Type | Description | Notes ### Return type -[**Array<GoUpstream>**](GoUpstream.md) +[**Array<HelmUpstream>**](HelmUpstream.md) ### Authorization @@ -4400,12 +5202,12 @@ Name | Type | Description | Notes -# **repos_upstream_go_partial_update** -> GoUpstream repos_upstream_go_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_helm_partial_update** +> HelmUpstream repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts) -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. -Partially update a Go upstream config for this repository. +Partially update a Helm upstream config for this repository. ### Example ```ruby @@ -4432,15 +5234,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::GoUpstreamRequestPatch.new # GoUpstreamRequestPatch | + data: CloudsmithApi::HelmUpstreamRequestPatch.new # HelmUpstreamRequestPatch | } begin - #Partially update a Go upstream config for this repository. - result = api_instance.repos_upstream_go_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Helm upstream config for this repository. + result = api_instance.repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_partial_update: #{e}" end ``` @@ -4451,11 +5253,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] + **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4468,12 +5270,12 @@ Name | Type | Description | Notes -# **repos_upstream_go_read** -> GoUpstream repos_upstream_go_read(owner, identifier, slug_perm) +# **repos_upstream_helm_read** +> HelmUpstream repos_upstream_helm_read(owner, identifier, slug_perm) -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. -Retrieve a Go upstream config for this repository. +Retrieve a Helm upstream config for this repository. ### Example ```ruby @@ -4501,11 +5303,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Go upstream config for this repository. - result = api_instance.repos_upstream_go_read(owner, identifier, slug_perm) + #Retrieve a Helm upstream config for this repository. + result = api_instance.repos_upstream_helm_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_read: #{e}" end ``` @@ -4519,7 +5321,7 @@ Name | Type | Description | Notes ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4532,12 +5334,12 @@ Name | Type | Description | Notes -# **repos_upstream_go_update** -> GoUpstream repos_upstream_go_update(owner, identifier, slug_perm, opts) +# **repos_upstream_helm_update** +> HelmUpstream repos_upstream_helm_update(owner, identifier, slug_perm, opts) -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. -Update a Go upstream config for this repository. +Update a Helm upstream config for this repository. ### Example ```ruby @@ -4564,15 +5366,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::GoUpstreamRequest.new # GoUpstreamRequest | + data: CloudsmithApi::HelmUpstreamRequest.new # HelmUpstreamRequest | } begin - #Update a Go upstream config for this repository. - result = api_instance.repos_upstream_go_update(owner, identifier, slug_perm, opts) + #Update a Helm upstream config for this repository. + result = api_instance.repos_upstream_helm_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_go_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_helm_update: #{e}" end ``` @@ -4583,11 +5385,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] + **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] ### Return type -[**GoUpstream**](GoUpstream.md) +[**HelmUpstream**](HelmUpstream.md) ### Authorization @@ -4600,12 +5402,12 @@ Name | Type | Description | Notes -# **repos_upstream_helm_create** -> HelmUpstream repos_upstream_helm_create(owner, identifier, opts) +# **repos_upstream_hex_create** +> HexUpstream repos_upstream_hex_create(owner, identifier, opts) -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. -Create a Helm upstream config for this repository. +Create a Hex upstream config for this repository. ### Example ```ruby @@ -4630,15 +5432,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::HelmUpstreamRequest.new # HelmUpstreamRequest | + data: CloudsmithApi::HexUpstreamRequest.new # HexUpstreamRequest | } begin - #Create a Helm upstream config for this repository. - result = api_instance.repos_upstream_helm_create(owner, identifier, opts) + #Create a Hex upstream config for this repository. + result = api_instance.repos_upstream_hex_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_create: #{e}" end ``` @@ -4648,11 +5450,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4665,12 +5467,12 @@ Name | Type | Description | Notes -# **repos_upstream_helm_delete** -> repos_upstream_helm_delete(owner, identifier, slug_perm) +# **repos_upstream_hex_delete** +> repos_upstream_hex_delete(owner, identifier, slug_perm) -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. -Delete a Helm upstream config for this repository. +Delete a Hex upstream config for this repository. ### Example ```ruby @@ -4698,10 +5500,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Helm upstream config for this repository. - api_instance.repos_upstream_helm_delete(owner, identifier, slug_perm) + #Delete a Hex upstream config for this repository. + api_instance.repos_upstream_hex_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_delete: #{e}" end ``` @@ -4728,12 +5530,12 @@ nil (empty response body) -# **repos_upstream_helm_list** -> Array<HelmUpstream> repos_upstream_helm_list(owner, identifier, opts) +# **repos_upstream_hex_list** +> Array<HexUpstream> repos_upstream_hex_list(owner, identifier, opts) -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. -List Helm upstream configs for this repository. +List Hex upstream configs for this repository. ### Example ```ruby @@ -4763,11 +5565,11 @@ opts = { } begin - #List Helm upstream configs for this repository. - result = api_instance.repos_upstream_helm_list(owner, identifier, opts) + #List Hex upstream configs for this repository. + result = api_instance.repos_upstream_hex_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_list: #{e}" end ``` @@ -4782,7 +5584,7 @@ Name | Type | Description | Notes ### Return type -[**Array<HelmUpstream>**](HelmUpstream.md) +[**Array<HexUpstream>**](HexUpstream.md) ### Authorization @@ -4795,12 +5597,12 @@ Name | Type | Description | Notes -# **repos_upstream_helm_partial_update** -> HelmUpstream repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_hex_partial_update** +> HexUpstream repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts) -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. -Partially update a Helm upstream config for this repository. +Partially update a Hex upstream config for this repository. ### Example ```ruby @@ -4827,15 +5629,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::HelmUpstreamRequestPatch.new # HelmUpstreamRequestPatch | + data: CloudsmithApi::HexUpstreamRequestPatch.new # HexUpstreamRequestPatch | } begin - #Partially update a Helm upstream config for this repository. - result = api_instance.repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Hex upstream config for this repository. + result = api_instance.repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_partial_update: #{e}" end ``` @@ -4846,11 +5648,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**HelmUpstreamRequestPatch**](HelmUpstreamRequestPatch.md)| | [optional] + **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4863,12 +5665,12 @@ Name | Type | Description | Notes -# **repos_upstream_helm_read** -> HelmUpstream repos_upstream_helm_read(owner, identifier, slug_perm) +# **repos_upstream_hex_read** +> HexUpstream repos_upstream_hex_read(owner, identifier, slug_perm) -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. -Retrieve a Helm upstream config for this repository. +Retrieve a Hex upstream config for this repository. ### Example ```ruby @@ -4896,11 +5698,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Helm upstream config for this repository. - result = api_instance.repos_upstream_helm_read(owner, identifier, slug_perm) + #Retrieve a Hex upstream config for this repository. + result = api_instance.repos_upstream_hex_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_read: #{e}" end ``` @@ -4914,7 +5716,7 @@ Name | Type | Description | Notes ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4927,12 +5729,12 @@ Name | Type | Description | Notes -# **repos_upstream_helm_update** -> HelmUpstream repos_upstream_helm_update(owner, identifier, slug_perm, opts) +# **repos_upstream_hex_update** +> HexUpstream repos_upstream_hex_update(owner, identifier, slug_perm, opts) -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. -Update a Helm upstream config for this repository. +Update a Hex upstream config for this repository. ### Example ```ruby @@ -4959,15 +5761,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::HelmUpstreamRequest.new # HelmUpstreamRequest | + data: CloudsmithApi::HexUpstreamRequest.new # HexUpstreamRequest | } begin - #Update a Helm upstream config for this repository. - result = api_instance.repos_upstream_helm_update(owner, identifier, slug_perm, opts) + #Update a Hex upstream config for this repository. + result = api_instance.repos_upstream_hex_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_helm_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_hex_update: #{e}" end ``` @@ -4978,11 +5780,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**HelmUpstreamRequest**](HelmUpstreamRequest.md)| | [optional] + **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] ### Return type -[**HelmUpstream**](HelmUpstream.md) +[**HexUpstream**](HexUpstream.md) ### Authorization @@ -4995,12 +5797,12 @@ Name | Type | Description | Notes -# **repos_upstream_hex_create** -> HexUpstream repos_upstream_hex_create(owner, identifier, opts) +# **repos_upstream_huggingface_create** +> HuggingfaceUpstream repos_upstream_huggingface_create(owner, identifier, opts) -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. -Create a Hex upstream config for this repository. +Create a Hugging Face upstream config for this repository. ### Example ```ruby @@ -5025,15 +5827,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::HexUpstreamRequest.new # HexUpstreamRequest | + data: CloudsmithApi::HuggingfaceUpstreamRequest.new # HuggingfaceUpstreamRequest | } begin - #Create a Hex upstream config for this repository. - result = api_instance.repos_upstream_hex_create(owner, identifier, opts) + #Create a Hugging Face upstream config for this repository. + result = api_instance.repos_upstream_huggingface_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_create: #{e}" end ``` @@ -5043,11 +5845,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5060,12 +5862,12 @@ Name | Type | Description | Notes -# **repos_upstream_hex_delete** -> repos_upstream_hex_delete(owner, identifier, slug_perm) +# **repos_upstream_huggingface_delete** +> repos_upstream_huggingface_delete(owner, identifier, slug_perm) -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. -Delete a Hex upstream config for this repository. +Delete a Hugging Face upstream config for this repository. ### Example ```ruby @@ -5093,10 +5895,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Hex upstream config for this repository. - api_instance.repos_upstream_hex_delete(owner, identifier, slug_perm) + #Delete a Hugging Face upstream config for this repository. + api_instance.repos_upstream_huggingface_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_delete: #{e}" end ``` @@ -5123,12 +5925,12 @@ nil (empty response body) -# **repos_upstream_hex_list** -> Array<HexUpstream> repos_upstream_hex_list(owner, identifier, opts) +# **repos_upstream_huggingface_list** +> Array<HuggingfaceUpstream> repos_upstream_huggingface_list(owner, identifier, opts) -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. -List Hex upstream configs for this repository. +List Hugging Face upstream configs for this repository. ### Example ```ruby @@ -5158,11 +5960,11 @@ opts = { } begin - #List Hex upstream configs for this repository. - result = api_instance.repos_upstream_hex_list(owner, identifier, opts) + #List Hugging Face upstream configs for this repository. + result = api_instance.repos_upstream_huggingface_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_list: #{e}" end ``` @@ -5177,7 +5979,7 @@ Name | Type | Description | Notes ### Return type -[**Array<HexUpstream>**](HexUpstream.md) +[**Array<HuggingfaceUpstream>**](HuggingfaceUpstream.md) ### Authorization @@ -5190,12 +5992,12 @@ Name | Type | Description | Notes -# **repos_upstream_hex_partial_update** -> HexUpstream repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_huggingface_partial_update** +> HuggingfaceUpstream repos_upstream_huggingface_partial_update(owner, identifier, slug_perm, opts) -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. -Partially update a Hex upstream config for this repository. +Partially update a Hugging Face upstream config for this repository. ### Example ```ruby @@ -5222,15 +6024,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::HexUpstreamRequestPatch.new # HexUpstreamRequestPatch | + data: CloudsmithApi::HuggingfaceUpstreamRequestPatch.new # HuggingfaceUpstreamRequestPatch | } begin - #Partially update a Hex upstream config for this repository. - result = api_instance.repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Hugging Face upstream config for this repository. + result = api_instance.repos_upstream_huggingface_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_partial_update: #{e}" end ``` @@ -5241,11 +6043,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**HexUpstreamRequestPatch**](HexUpstreamRequestPatch.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequestPatch**](HuggingfaceUpstreamRequestPatch.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5258,12 +6060,12 @@ Name | Type | Description | Notes -# **repos_upstream_hex_read** -> HexUpstream repos_upstream_hex_read(owner, identifier, slug_perm) +# **repos_upstream_huggingface_read** +> HuggingfaceUpstream repos_upstream_huggingface_read(owner, identifier, slug_perm) -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. -Retrieve a Hex upstream config for this repository. +Retrieve a Hugging Face upstream config for this repository. ### Example ```ruby @@ -5291,11 +6093,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Hex upstream config for this repository. - result = api_instance.repos_upstream_hex_read(owner, identifier, slug_perm) + #Retrieve a Hugging Face upstream config for this repository. + result = api_instance.repos_upstream_huggingface_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_read: #{e}" end ``` @@ -5309,7 +6111,7 @@ Name | Type | Description | Notes ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization @@ -5322,12 +6124,12 @@ Name | Type | Description | Notes -# **repos_upstream_hex_update** -> HexUpstream repos_upstream_hex_update(owner, identifier, slug_perm, opts) +# **repos_upstream_huggingface_update** +> HuggingfaceUpstream repos_upstream_huggingface_update(owner, identifier, slug_perm, opts) -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. -Update a Hex upstream config for this repository. +Update a Hugging Face upstream config for this repository. ### Example ```ruby @@ -5354,15 +6156,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::HexUpstreamRequest.new # HexUpstreamRequest | + data: CloudsmithApi::HuggingfaceUpstreamRequest.new # HuggingfaceUpstreamRequest | } begin - #Update a Hex upstream config for this repository. - result = api_instance.repos_upstream_hex_update(owner, identifier, slug_perm, opts) + #Update a Hugging Face upstream config for this repository. + result = api_instance.repos_upstream_huggingface_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_hex_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_huggingface_update: #{e}" end ``` @@ -5373,11 +6175,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**HexUpstreamRequest**](HexUpstreamRequest.md)| | [optional] + **data** | [**HuggingfaceUpstreamRequest**](HuggingfaceUpstreamRequest.md)| | [optional] ### Return type -[**HexUpstream**](HexUpstream.md) +[**HuggingfaceUpstream**](HuggingfaceUpstream.md) ### Authorization diff --git a/bindings/ruby/src/docs/StatusBasic.md b/bindings/ruby/src/docs/StatusBasic.md index 6cce38d4..2e7682ec 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.736.13'] +**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.783.2'] diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 6c05328b..7bf7d7c3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -43,6 +43,9 @@ require 'cloudsmith-api/models/conan_package_upload_request' require 'cloudsmith-api/models/conda_package_upload' require 'cloudsmith-api/models/conda_package_upload_request' +require 'cloudsmith-api/models/conda_upstream' +require 'cloudsmith-api/models/conda_upstream_request' +require 'cloudsmith-api/models/conda_upstream_request_patch' require 'cloudsmith-api/models/cran_package_upload' require 'cloudsmith-api/models/cran_package_upload_request' require 'cloudsmith-api/models/cran_upstream' @@ -66,6 +69,7 @@ require 'cloudsmith-api/models/docker_upstream' require 'cloudsmith-api/models/docker_upstream_request' require 'cloudsmith-api/models/docker_upstream_request_patch' +require 'cloudsmith-api/models/dynamic_mapping' require 'cloudsmith-api/models/entitlement_usage_metrics' require 'cloudsmith-api/models/error_detail' require 'cloudsmith-api/models/eula' @@ -91,6 +95,11 @@ require 'cloudsmith-api/models/history' require 'cloudsmith-api/models/history_fieldset' require 'cloudsmith-api/models/history_fieldset_raw' +require 'cloudsmith-api/models/huggingface_package_upload' +require 'cloudsmith-api/models/huggingface_package_upload_request' +require 'cloudsmith-api/models/huggingface_upstream' +require 'cloudsmith-api/models/huggingface_upstream_request' +require 'cloudsmith-api/models/huggingface_upstream_request_patch' require 'cloudsmith-api/models/inline_response_200' require 'cloudsmith-api/models/inline_response_200_1' require 'cloudsmith-api/models/luarocks_package_upload' @@ -179,8 +188,9 @@ require 'cloudsmith-api/models/package_vulnerability_policy_violation_log' require 'cloudsmith-api/models/package_vulnerability_policy_violation_log_cursor_page' require 'cloudsmith-api/models/provider_settings' -require 'cloudsmith-api/models/provider_settings_request' -require 'cloudsmith-api/models/provider_settings_request_patch' +require 'cloudsmith-api/models/provider_settings_write' +require 'cloudsmith-api/models/provider_settings_write_request' +require 'cloudsmith-api/models/provider_settings_write_request_patch' require 'cloudsmith-api/models/python_package_upload' require 'cloudsmith-api/models/python_package_upload_request' require 'cloudsmith-api/models/python_upstream' diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb index b83ef622..c0d1d3f2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb @@ -1951,8 +1951,8 @@ def orgs_members_update_visibility_with_http_info(org, member, opts = {}) # Create the OpenID Connect provider settings for the org. # @param org # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequest] :data + # @return [ProviderSettingsWrite] def orgs_openid_connect_create(org, opts = {}) data, _status_code, _headers = orgs_openid_connect_create_with_http_info(org, opts) data @@ -1962,8 +1962,8 @@ def orgs_openid_connect_create(org, opts = {}) # Create the OpenID Connect provider settings for the org. # @param org # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [Array<(ProviderSettings, Fixnum, Hash)>] ProviderSettings data, response status code and response headers + # @option opts [ProviderSettingsWriteRequest] :data + # @return [Array<(ProviderSettingsWrite, Fixnum, Hash)>] ProviderSettingsWrite data, response status code and response headers def orgs_openid_connect_create_with_http_info(org, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_openid_connect_create ...' @@ -1997,7 +1997,7 @@ def orgs_openid_connect_create_with_http_info(org, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ProviderSettings') + :return_type => 'ProviderSettingsWrite') if @api_client.config.debugging @api_client.config.logger.debug "API called: OrgsApi#orgs_openid_connect_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end @@ -2062,6 +2062,138 @@ def orgs_openid_connect_delete_with_http_info(org, slug_perm, opts = {}) end return data, status_code, headers end + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # @param org + # @param provider_setting + # @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 orgs_openid_connect_dynamic_mappings_list(org, provider_setting, opts = {}) + data, _status_code, _headers = orgs_openid_connect_dynamic_mappings_list_with_http_info(org, provider_setting, opts) + data + end + + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # @param org + # @param provider_setting + # @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 orgs_openid_connect_dynamic_mappings_list_with_http_info(org, provider_setting, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_openid_connect_dynamic_mappings_list ...' + end + # verify the required parameter 'org' is set + if @api_client.config.client_side_validation && org.nil? + fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_openid_connect_dynamic_mappings_list" + end + # verify the required parameter 'provider_setting' is set + if @api_client.config.client_side_validation && provider_setting.nil? + fail ArgumentError, "Missing the required parameter 'provider_setting' when calling OrgsApi.orgs_openid_connect_dynamic_mappings_list" + end + # resource path + local_var_path = '/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'provider_setting' + '}', provider_setting.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: OrgsApi#orgs_openid_connect_dynamic_mappings_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # @param org + # @param provider_setting + # @param claim_value + # @param [Hash] opts the optional parameters + # @return [DynamicMapping] + def orgs_openid_connect_dynamic_mappings_read(org, provider_setting, claim_value, opts = {}) + data, _status_code, _headers = orgs_openid_connect_dynamic_mappings_read_with_http_info(org, provider_setting, claim_value, opts) + data + end + + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # @param org + # @param provider_setting + # @param claim_value + # @param [Hash] opts the optional parameters + # @return [Array<(DynamicMapping, Fixnum, Hash)>] DynamicMapping data, response status code and response headers + def orgs_openid_connect_dynamic_mappings_read_with_http_info(org, provider_setting, claim_value, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_openid_connect_dynamic_mappings_read ...' + end + # verify the required parameter 'org' is set + if @api_client.config.client_side_validation && org.nil? + fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_openid_connect_dynamic_mappings_read" + end + # verify the required parameter 'provider_setting' is set + if @api_client.config.client_side_validation && provider_setting.nil? + fail ArgumentError, "Missing the required parameter 'provider_setting' when calling OrgsApi.orgs_openid_connect_dynamic_mappings_read" + end + # verify the required parameter 'claim_value' is set + if @api_client.config.client_side_validation && claim_value.nil? + fail ArgumentError, "Missing the required parameter 'claim_value' when calling OrgsApi.orgs_openid_connect_dynamic_mappings_read" + end + # resource path + local_var_path = '/orgs/{org}/openid-connect/{provider_setting}/dynamic-mappings/{claim_value}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'provider_setting' + '}', provider_setting.to_s).sub('{' + 'claim_value' + '}', claim_value.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 => 'DynamicMapping') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_openid_connect_dynamic_mappings_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Retrieve the list of OpenID Connect provider settings for the org. # Retrieve the list of OpenID Connect provider settings for the org. # @param org @@ -2133,8 +2265,8 @@ def orgs_openid_connect_list_with_http_info(org, opts = {}) # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequestPatch] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequestPatch] :data + # @return [ProviderSettingsWrite] def orgs_openid_connect_partial_update(org, slug_perm, opts = {}) data, _status_code, _headers = orgs_openid_connect_partial_update_with_http_info(org, slug_perm, opts) data @@ -2145,8 +2277,8 @@ def orgs_openid_connect_partial_update(org, slug_perm, opts = {}) # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequestPatch] :data - # @return [Array<(ProviderSettings, Fixnum, Hash)>] ProviderSettings data, response status code and response headers + # @option opts [ProviderSettingsWriteRequestPatch] :data + # @return [Array<(ProviderSettingsWrite, Fixnum, Hash)>] ProviderSettingsWrite data, response status code and response headers def orgs_openid_connect_partial_update_with_http_info(org, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_openid_connect_partial_update ...' @@ -2184,7 +2316,7 @@ def orgs_openid_connect_partial_update_with_http_info(org, slug_perm, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ProviderSettings') + :return_type => 'ProviderSettingsWrite') if @api_client.config.debugging @api_client.config.logger.debug "API called: OrgsApi#orgs_openid_connect_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end @@ -2255,8 +2387,8 @@ def orgs_openid_connect_read_with_http_info(org, slug_perm, opts = {}) # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequest] :data + # @return [ProviderSettingsWrite] def orgs_openid_connect_update(org, slug_perm, opts = {}) data, _status_code, _headers = orgs_openid_connect_update_with_http_info(org, slug_perm, opts) data @@ -2267,8 +2399,8 @@ def orgs_openid_connect_update(org, slug_perm, opts = {}) # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [Array<(ProviderSettings, Fixnum, Hash)>] ProviderSettings data, response status code and response headers + # @option opts [ProviderSettingsWriteRequest] :data + # @return [Array<(ProviderSettingsWrite, Fixnum, Hash)>] ProviderSettingsWrite data, response status code and response headers def orgs_openid_connect_update_with_http_info(org, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_openid_connect_update ...' @@ -2306,7 +2438,7 @@ def orgs_openid_connect_update_with_http_info(org, slug_perm, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ProviderSettings') + :return_type => 'ProviderSettingsWrite') if @api_client.config.debugging @api_client.config.logger.debug "API called: OrgsApi#orgs_openid_connect_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end 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 26b4e5f1..9778af38 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -226,6 +226,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) # @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 [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results (default to false) # @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] @@ -242,6 +243,7 @@ def packages_groups_list(owner, repo, opts = {}) # @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 [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results # @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 @@ -265,6 +267,7 @@ def packages_groups_list_with_http_info(owner, repo, opts = {}) 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[:'hide_subcomponents'] = opts[:'hide_subcomponents'] if !opts[:'hide_subcomponents'].nil? query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? @@ -1639,6 +1642,68 @@ def packages_upload_hex_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end + # Create a new Hugging Face package + # Create a new Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [HuggingfacePackageUpload] + def packages_upload_huggingface(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_huggingface_with_http_info(owner, repo, opts) + data + end + + # Create a new Hugging Face package + # Create a new Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [Array<(HuggingfacePackageUpload, Fixnum, Hash)>] HuggingfacePackageUpload data, response status code and response headers + def packages_upload_huggingface_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_huggingface ...' + 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_upload_huggingface" + 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_upload_huggingface" + end + # resource path + local_var_path = '/packages/{owner}/{repo}/upload/huggingface/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.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 => 'HuggingfacePackageUpload') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_huggingface\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Create a new LuaRocks package # Create a new LuaRocks package # @param owner @@ -3176,6 +3241,67 @@ def packages_validate_upload_hex_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end + # Validate parameters for create Hugging Face package + # Validate parameters for create Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [nil] + def packages_validate_upload_huggingface(owner, repo, opts = {}) + packages_validate_upload_huggingface_with_http_info(owner, repo, opts) + nil + end + + # Validate parameters for create Hugging Face package + # Validate parameters for create Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_huggingface_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_huggingface ...' + 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_validate_upload_huggingface" + 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_validate_upload_huggingface" + end + # resource path + local_var_path = '/packages/{owner}/{repo}/validate-upload/huggingface/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.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) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_huggingface\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Validate parameters for create LuaRocks package # Validate parameters for create LuaRocks package # @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 a064f1ff..4cd12b84 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -2451,39 +2451,39 @@ def repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, 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 Conda upstream config for this repository. + # Create a Conda 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 [CondaUpstreamRequest] :data + # @return [CondaUpstream] + def repos_upstream_conda_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_conda_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 Conda upstream config for this repository. + # Create a Conda 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 [CondaUpstreamRequest] :data + # @return [Array<(CondaUpstream, Fixnum, Hash)>] CondaUpstream data, response status code and response headers + def repos_upstream_conda_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_conda_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_conda_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_conda_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/conda/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2507,49 +2507,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 => 'CondaUpstream') 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_conda_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 Conda upstream config for this repository. + # Delete a Conda 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_conda_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_conda_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 Conda upstream config for this repository. + # Delete a Conda 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_conda_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_conda_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_conda_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_conda_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_conda_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/conda/{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 +2574,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_conda_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 Conda upstream configs for this repository. + # List Conda 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_conda_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_conda_list_with_http_info(owner, identifier, opts) data end - # List CRAN upstream configs for this repository. - # List CRAN upstream configs for this repository. + # List Conda upstream configs for this repository. + # List Conda 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_conda_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_conda_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_conda_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_conda_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/conda/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2638,51 +2638,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_conda_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 Conda upstream config for this repository. + # Partially update a Conda 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 [CondaUpstreamRequestPatch] :data + # @return [CondaUpstream] + def repos_upstream_conda_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_conda_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 Conda upstream config for this repository. + # Partially update a Conda 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 [CondaUpstreamRequestPatch] :data + # @return [Array<(CondaUpstream, Fixnum, Hash)>] CondaUpstream data, response status code and response headers + def repos_upstream_conda_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_conda_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_conda_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_conda_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_conda_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/conda/{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 +2706,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 => 'CondaUpstream') 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_conda_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 Conda upstream config for this repository. + # Retrieve a Conda 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 [CondaUpstream] + def repos_upstream_conda_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_conda_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 Conda upstream config for this repository. + # Retrieve a Conda 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<(CondaUpstream, Fixnum, Hash)>] CondaUpstream data, response status code and response headers + def repos_upstream_conda_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_conda_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_conda_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_conda_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_conda_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/conda/{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 +2772,51 @@ 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 => 'CondaUpstream') 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_conda_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 Conda upstream config for this repository. + # Update a Conda 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) + # @option opts [CondaUpstreamRequest] :data + # @return [CondaUpstream] + def repos_upstream_conda_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_conda_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 Conda upstream config for this repository. + # Update a Conda 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 [CondaUpstreamRequest] :data + # @return [Array<(CondaUpstream, Fixnum, Hash)>] CondaUpstream data, response status code and response headers + def repos_upstream_conda_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_conda_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_conda_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_conda_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_conda_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/conda/{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 +2840,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 => 'CondaUpstream') 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_conda_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 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 [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 [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) data end - # Create a Dart upstream config for this repository. - # Create a Dart upstream config for this repository. + # 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 [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 [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_dart_create ...' + @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_dart_create" + 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_dart_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_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/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2902,49 +2902,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 => 'CranUpstream') 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_cran_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 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_dart_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts) + 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 Dart upstream config for this repository. - # Delete a Dart upstream config for this repository. + # 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_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + 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_dart_delete ...' + @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_dart_delete" + 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_dart_delete" + 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_dart_delete" + 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/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/cran/{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 +2969,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_cran_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 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_dart_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts) + # @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 Dart upstream configs for this repository. - # List Dart upstream configs for this repository. + # 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_dart_list_with_http_info(owner, identifier, opts = {}) + # @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_dart_list ...' + @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_dart_list" + 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_dart_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_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/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -3033,51 +3033,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_cran_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 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 [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 [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 Dart upstream config for this repository. - # Partially update a Dart upstream config for this repository. + # 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 [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 [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_dart_partial_update ...' + @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_dart_partial_update" + 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_dart_partial_update" + 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_dart_partial_update" + 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/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/cran/{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 +3101,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 => 'CranUpstream') 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_cran_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 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 [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 [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 Dart upstream config for this repository. - # Retrieve a Dart upstream config for this repository. + # 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<(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<(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_dart_read ...' + @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_dart_read" + 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_dart_read" + 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_dart_read" + 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/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/cran/{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 +3167,773 @@ 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 => 'CranUpstream') 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_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 Dart 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 [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 [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_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_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_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_dart_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(: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 => 'DartUpstream') + 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}" + end + return data, status_code, headers + end + # 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 [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 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 [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_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_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_deb_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.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 => 'DebUpstream') + 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}" + end + return data, status_code, headers + end + # 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_deb_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_deb_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. + # @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 = {}) + if @api_client.config.debugging + @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_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_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_deb_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) + + # 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_deb_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. + # @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) + data + end + + # 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_deb_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @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_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_deb_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.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_deb_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. + # @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) + data + end + + # 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 [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_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_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_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_deb_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) + + # 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 => 'DebUpstream') + 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}" + end + return data, status_code, headers + end + # 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 [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 - # Update a Dart upstream config for this repository. - # Update 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 - # @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 = {}) + # @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_update ...' + @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_update" + 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_update" + 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_update" + 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 = {} @@ -3227,53 +3949,59 @@ def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'data']) + post_body = nil auth_names = ['apikey', 'basic'] - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, + 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') + :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_read\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. + # 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 [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) + 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 - # Create a Debian upstream config for this repository. - # Create a Debian 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 [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 = {}) + 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_deb_create ...' + @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_deb_create" + 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_deb_create" + 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_deb_update" 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/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3291,7 +4019,7 @@ def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) # 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, + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3299,47 +4027,109 @@ def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) :auth_names => auth_names, :return_type => 'DebUpstream') 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_deb_update\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. + # 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 [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 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 [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_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_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_docker_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.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 => 'DockerUpstream') + 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}" + end + return data, status_code, headers + 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 = {} @@ -3364,45 +4154,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 = {} @@ -3428,51 +4218,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 = {}) + # @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 = {}) 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 = {} @@ -3496,49 +4286,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 = {} @@ -3562,51 +4352,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 = {} @@ -3630,45 +4420,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 = {} @@ -3692,49 +4482,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 = {} @@ -3759,45 +4549,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 = {} @@ -3823,51 +4613,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 = {} @@ -3891,49 +4681,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 = {} @@ -3957,51 +4747,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 = {} @@ -4025,45 +4815,45 @@ 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 - # Create a Go upstream config for this repository. - # Create a Go upstream config for this repository. + # Create a Helm upstream config for this repository. + # Create a Helm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @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) + # @option opts [HelmUpstreamRequest] :data + # @return [HelmUpstream] + def repos_upstream_helm_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_helm_create_with_http_info(owner, identifier, opts) data end - # Create a Go upstream config for this repository. - # Create a Go upstream config for this repository. + # Create a Helm upstream config for this repository. + # Create a Helm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @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 = {}) + # @option opts [HelmUpstreamRequest] :data + # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers + def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -4087,49 +4877,49 @@ def repos_upstream_go_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'GoUpstream') + :return_type => 'HelmUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a Go upstream config for this repository. - # Delete a Go upstream config for this repository. + # Delete a Helm upstream config for this repository. + # Delete a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_go_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Go upstream config for this repository. - # Delete a Go upstream config for this repository. + # Delete a Helm upstream config for this repository. + # Delete a Helm 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_go_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_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_go_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_delete" end # resource path - 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) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4154,45 +4944,45 @@ def repos_upstream_go_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_go_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Go upstream configs for this repository. - # List Go upstream configs for this repository. + # List Helm upstream configs for this repository. + # List Helm 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_go_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_go_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_helm_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_helm_list_with_http_info(owner, identifier, opts) data end - # List Go upstream configs for this repository. - # List Go upstream configs for this repository. + # List Helm upstream configs for this repository. + # List Helm 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_go_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_helm_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -4218,51 +5008,51 @@ def repos_upstream_go_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_go_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Go upstream config for this repository. - # Partially update a Go upstream config for this repository. + # Partially update a Helm upstream config for this repository. + # Partially update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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) + # @option opts [HelmUpstreamRequestPatch] :data + # @return [HelmUpstream] + def repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Go upstream config for this repository. - # Partially update a Go upstream config for this repository. + # Partially update a Helm upstream config for this repository. + # Partially update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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 = {}) + # @option opts [HelmUpstreamRequestPatch] :data + # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers + def repos_upstream_helm_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_go_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_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_go_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_partial_update" end # resource path - 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) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4286,49 +5076,49 @@ def repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'GoUpstream') + :return_type => 'HelmUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Go upstream config for this repository. - # Retrieve a Go upstream config for this repository. + # Retrieve a Helm upstream config for this repository. + # Retrieve a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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) + # @return [HelmUpstream] + def repos_upstream_helm_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Go upstream config for this repository. - # Retrieve a Go upstream config for this repository. + # Retrieve a Helm upstream config for this repository. + # Retrieve a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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 = {}) + # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers + def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_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_go_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_read" end # resource path - 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) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4352,51 +5142,51 @@ def repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, opts = { :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'GoUpstream') + :return_type => 'HelmUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Go upstream config for this repository. - # Update a Go upstream config for this repository. + # Update a Helm upstream config for this repository. + # Update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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) + # @option opts [HelmUpstreamRequest] :data + # @return [HelmUpstream] + def repos_upstream_helm_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Go upstream config for this repository. - # Update a Go upstream config for this repository. + # Update a Helm upstream config for this repository. + # Update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @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 = {}) + # @option opts [HelmUpstreamRequest] :data + # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers + def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_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_go_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_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_go_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_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_go_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_update" end # resource path - 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) + local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4420,45 +5210,45 @@ def repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'GoUpstream') + :return_type => 'HelmUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a Helm upstream config for this repository. - # Create a Helm upstream config for this repository. + # Create a Hex upstream config for this repository. + # Create a Hex upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequest] :data - # @return [HelmUpstream] - def repos_upstream_helm_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_helm_create_with_http_info(owner, identifier, opts) + # @option opts [HexUpstreamRequest] :data + # @return [HexUpstream] + def repos_upstream_hex_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_hex_create_with_http_info(owner, identifier, opts) data end - # Create a Helm upstream config for this repository. - # Create a Helm upstream config for this repository. + # Create a Hex upstream config for this repository. + # Create a Hex upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequest] :data - # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers - def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {}) + # @option opts [HexUpstreamRequest] :data + # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers + def repos_upstream_hex_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -4482,49 +5272,49 @@ def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HelmUpstream') + :return_type => 'HexUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers - end - # Delete a Helm upstream config for this repository. - # Delete a Helm upstream config for this repository. + end + # Delete a Hex upstream config for this repository. + # Delete a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_hex_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Helm upstream config for this repository. - # Delete a Helm upstream config for this repository. + # Delete a Hex upstream config for this repository. + # Delete a Hex 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_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_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_helm_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{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/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4549,45 +5339,45 @@ def repos_upstream_helm_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_helm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Helm upstream configs for this repository. - # List Helm upstream configs for this repository. + # List Hex upstream configs for this repository. + # List Hex 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_helm_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_helm_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_hex_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_hex_list_with_http_info(owner, identifier, opts) data end - # List Helm upstream configs for this repository. - # List Helm upstream configs for this repository. + # List Hex upstream configs for this repository. + # List Hex 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_helm_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_hex_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -4613,51 +5403,51 @@ def repos_upstream_helm_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_helm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Helm upstream config for this repository. - # Partially update a Helm upstream config for this repository. + # Partially update a Hex upstream config for this repository. + # Partially update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequestPatch] :data - # @return [HelmUpstream] - def repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [HexUpstreamRequestPatch] :data + # @return [HexUpstream] + def repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Helm upstream config for this repository. - # Partially update a Helm upstream config for this repository. + # Partially update a Hex upstream config for this repository. + # Partially update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequestPatch] :data - # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers - def repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [HexUpstreamRequestPatch] :data + # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers + def repos_upstream_hex_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_helm_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_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_helm_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{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/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4681,49 +5471,49 @@ def repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_pe :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HelmUpstream') + :return_type => 'HexUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Helm upstream config for this repository. - # Retrieve a Helm upstream config for this repository. + # Retrieve a Hex upstream config for this repository. + # Retrieve a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [HelmUpstream] - def repos_upstream_helm_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [HexUpstream] + def repos_upstream_hex_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Helm upstream config for this repository. - # Retrieve a Helm upstream config for this repository. + # Retrieve a Hex upstream config for this repository. + # Retrieve a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers - def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers + def repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_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_helm_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{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/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4747,51 +5537,51 @@ def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HelmUpstream') + :return_type => 'HexUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Helm upstream config for this repository. - # Update a Helm upstream config for this repository. + # Update a Hex upstream config for this repository. + # Update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequest] :data - # @return [HelmUpstream] - def repos_upstream_helm_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [HexUpstreamRequest] :data + # @return [HexUpstream] + def repos_upstream_hex_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Helm upstream config for this repository. - # Update a Helm upstream config for this repository. + # Update a Hex upstream config for this repository. + # Update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HelmUpstreamRequest] :data - # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers - def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [HexUpstreamRequest] :data + # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers + def repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_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_helm_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_hex_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_helm_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_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_helm_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{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/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4815,45 +5605,45 @@ def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HelmUpstream') + :return_type => 'HexUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a Hex upstream config for this repository. - # Create a Hex upstream config for this repository. + # Create a Hugging Face upstream config for this repository. + # Create a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequest] :data - # @return [HexUpstream] - def repos_upstream_hex_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_hex_create_with_http_info(owner, identifier, opts) + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [HuggingfaceUpstream] + def repos_upstream_huggingface_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_huggingface_create_with_http_info(owner, identifier, opts) data end - # Create a Hex upstream config for this repository. - # Create a Hex upstream config for this repository. + # Create a Hugging Face upstream config for this repository. + # Create a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequest] :data - # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers - def repos_upstream_hex_create_with_http_info(owner, identifier, opts = {}) + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [Array<(HuggingfaceUpstream, Fixnum, Hash)>] HuggingfaceUpstream data, response status code and response headers + def repos_upstream_huggingface_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/huggingface/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -4877,49 +5667,49 @@ def repos_upstream_hex_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HexUpstream') + :return_type => 'HuggingfaceUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a Hex upstream config for this repository. - # Delete a Hex upstream config for this repository. + # Delete a Hugging Face upstream config for this repository. + # Delete a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_hex_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_huggingface_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_huggingface_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Hex upstream config for this repository. - # Delete a Hex upstream config for this repository. + # Delete a Hugging Face upstream config for this repository. + # Delete a Hugging Face 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_hex_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_huggingface_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_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_hex_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_huggingface_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{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/huggingface/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -4944,45 +5734,45 @@ def repos_upstream_hex_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_hex_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Hex upstream configs for this repository. - # List Hex upstream configs for this repository. + # List Hugging Face upstream configs for this repository. + # List Hugging Face 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_hex_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_hex_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_huggingface_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_huggingface_list_with_http_info(owner, identifier, opts) data end - # List Hex upstream configs for this repository. - # List Hex upstream configs for this repository. + # List Hugging Face upstream configs for this repository. + # List Hugging Face 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_hex_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_huggingface_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/huggingface/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -5008,51 +5798,51 @@ def repos_upstream_hex_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_hex_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Hex upstream config for this repository. - # Partially update a Hex upstream config for this repository. + # Partially update a Hugging Face upstream config for this repository. + # Partially update a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequestPatch] :data - # @return [HexUpstream] - def repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [HuggingfaceUpstreamRequestPatch] :data + # @return [HuggingfaceUpstream] + def repos_upstream_huggingface_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_huggingface_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Hex upstream config for this repository. - # Partially update a Hex upstream config for this repository. + # Partially update a Hugging Face upstream config for this repository. + # Partially update a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequestPatch] :data - # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers - def repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [HuggingfaceUpstreamRequestPatch] :data + # @return [Array<(HuggingfaceUpstream, Fixnum, Hash)>] HuggingfaceUpstream data, response status code and response headers + def repos_upstream_huggingface_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_hex_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_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_hex_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_huggingface_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{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/huggingface/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -5076,49 +5866,49 @@ def repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_per :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HexUpstream') + :return_type => 'HuggingfaceUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Hex upstream config for this repository. - # Retrieve a Hex upstream config for this repository. + # Retrieve a Hugging Face upstream config for this repository. + # Retrieve a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [HexUpstream] - def repos_upstream_hex_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [HuggingfaceUpstream] + def repos_upstream_huggingface_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_huggingface_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Hex upstream config for this repository. - # Retrieve a Hex upstream config for this repository. + # Retrieve a Hugging Face upstream config for this repository. + # Retrieve a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers - def repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(HuggingfaceUpstream, Fixnum, Hash)>] HuggingfaceUpstream data, response status code and response headers + def repos_upstream_huggingface_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_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_hex_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_huggingface_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{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/huggingface/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -5142,51 +5932,51 @@ def repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HexUpstream') + :return_type => 'HuggingfaceUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Hex upstream config for this repository. - # Update a Hex upstream config for this repository. + # Update a Hugging Face upstream config for this repository. + # Update a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequest] :data - # @return [HexUpstream] - def repos_upstream_hex_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [HuggingfaceUpstream] + def repos_upstream_huggingface_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_huggingface_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Hex upstream config for this repository. - # Update a Hex upstream config for this repository. + # Update a Hugging Face upstream config for this repository. + # Update a Hugging Face upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [HexUpstreamRequest] :data - # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers - def repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [Array<(HuggingfaceUpstream, Fixnum, Hash)>] HuggingfaceUpstream data, response status code and response headers + def repos_upstream_huggingface_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_huggingface_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_hex_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_huggingface_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_hex_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_huggingface_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_hex_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_huggingface_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{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/huggingface/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -5210,9 +6000,9 @@ def repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'HexUpstream') + :return_type => 'HuggingfaceUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_huggingface_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/models/conda_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream.rb new file mode 100644 index 00000000..e249109d --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_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 CondaUpstream + # 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', 'Cache and Proxy']) + 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', 'Cache and Proxy']) + 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/conda_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request.rb new file mode 100644 index 00000000..32e18edf --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_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 CondaUpstreamRequest + # 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', 'Cache and Proxy']) + 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', 'Cache and Proxy']) + 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/conda_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_upstream_request_patch.rb new file mode 100644 index 00000000..917a11c9 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_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 CondaUpstreamRequestPatch + # 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', 'Cache and Proxy']) + 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', 'Cache and Proxy']) + 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/dynamic_mapping.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dynamic_mapping.rb new file mode 100644 index 00000000..d8ad0310 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dynamic_mapping.rb @@ -0,0 +1,206 @@ +=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 +# The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. +class DynamicMapping + # The OIDC token claim value that must be present in the token for it to successfully authenticate as the mapped `service_account`. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :claim_value + + # The service account associated with the provider setting and `claim_value` Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :service_account + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'claim_value' => :'claim_value', + :'service_account' => :'service_account' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'claim_value' => :'String', + :'service_account' => :'String' + } + 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?(:'claim_value') + self.claim_value = attributes[:'claim_value'] + end + + if attributes.has_key?(:'service_account') + self.service_account = attributes[:'service_account'] + 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 @claim_value.nil? + invalid_properties.push('invalid value for "claim_value", claim_value cannot be nil.') + end + + if @service_account.nil? + invalid_properties.push('invalid value for "service_account", service_account 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 @claim_value.nil? + return false if @service_account.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 && + claim_value == o.claim_value && + service_account == o.service_account + 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 + [claim_value, service_account].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/huggingface_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb new file mode 100644 index 00000000..39867cb8 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb @@ -0,0 +1,963 @@ +=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 HuggingfacePackageUpload + attr_accessor :architectures + + attr_accessor :cdn_url + + attr_accessor :checksum_md5 + + attr_accessor :checksum_sha1 + + attr_accessor :checksum_sha256 + + attr_accessor :checksum_sha512 + + # A checksum of all of the package's dependencies. + attr_accessor :dependencies_checksum_md5 + + attr_accessor :dependencies_url + + # A textual description of this package. + attr_accessor :description + + attr_accessor :display_name + + attr_accessor :distro + + attr_accessor :distro_version + + attr_accessor :downloads + + # The epoch of the package version (if any). + attr_accessor :epoch + + attr_accessor :extension + + attr_accessor :filename + + attr_accessor :files + + attr_accessor :format + + attr_accessor :format_url + + # Amount of storage that will be freed if this package is deleted + attr_accessor :freeable_storage + + attr_accessor :fully_qualified_name + + # Unique and permanent identifier for the package. + attr_accessor :identifier_perm + + # Return a map of identifier field names and their values. + attr_accessor :identifiers + + attr_accessor :indexed + + attr_accessor :is_cancellable + + attr_accessor :is_copyable + + attr_accessor :is_deleteable + + attr_accessor :is_downloadable + + attr_accessor :is_moveable + + attr_accessor :is_quarantinable + + attr_accessor :is_quarantined + + attr_accessor :is_resyncable + + attr_accessor :is_security_scannable + + attr_accessor :is_sync_awaiting + + attr_accessor :is_sync_completed + + attr_accessor :is_sync_failed + + attr_accessor :is_sync_in_flight + + attr_accessor :is_sync_in_progress + + # The license of this package. + attr_accessor :license + + # The name of this package. + attr_accessor :name + + attr_accessor :namespace + + attr_accessor :namespace_url + + attr_accessor :num_files + + attr_accessor :origin_repository + + attr_accessor :origin_repository_url + + # The type of package contents. + attr_accessor :package_type + + # Whether or not the package has violated any policy. + attr_accessor :policy_violated + + # The release of the package version (if any). + attr_accessor :release + + attr_accessor :repository + + attr_accessor :repository_url + + # The datetime the security scanning was completed. + attr_accessor :security_scan_completed_at + + # The datetime the security scanning was started. + attr_accessor :security_scan_started_at + + attr_accessor :security_scan_status + + # The datetime the security scanning status was updated. + attr_accessor :security_scan_status_updated_at + + attr_accessor :self_html_url + + attr_accessor :self_url + + attr_accessor :signature_url + + # The calculated size of the package. + attr_accessor :size + + # The public unique identifier for the package. + attr_accessor :slug + + attr_accessor :slug_perm + + # The synchronisation (in progress) stage of the package. + attr_accessor :stage + + attr_accessor :stage_str + + # The datetime the package stage was updated at. + attr_accessor :stage_updated_at + + # The synchronisation status of the package. + attr_accessor :status + + # A textual description for the synchronous status reason (if any + attr_accessor :status_reason + + attr_accessor :status_str + + # The datetime the package status was updated at. + attr_accessor :status_updated_at + + attr_accessor :status_url + + attr_accessor :subtype + + # A one-liner synopsis of this package. + attr_accessor :summary + + # The datetime the package sync was finished at. + attr_accessor :sync_finished_at + + # Synchronisation progress (from 0-100) + attr_accessor :sync_progress + + attr_accessor :tags_immutable + + attr_accessor :type_display + + # The date this package was uploaded. + attr_accessor :uploaded_at + + attr_accessor :uploader + + attr_accessor :uploader_url + + # The raw version for this package. + attr_accessor :version + + attr_accessor :version_orig + + attr_accessor :vulnerability_scan_results_url + + 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 + { + :'architectures' => :'architectures', + :'cdn_url' => :'cdn_url', + :'checksum_md5' => :'checksum_md5', + :'checksum_sha1' => :'checksum_sha1', + :'checksum_sha256' => :'checksum_sha256', + :'checksum_sha512' => :'checksum_sha512', + :'dependencies_checksum_md5' => :'dependencies_checksum_md5', + :'dependencies_url' => :'dependencies_url', + :'description' => :'description', + :'display_name' => :'display_name', + :'distro' => :'distro', + :'distro_version' => :'distro_version', + :'downloads' => :'downloads', + :'epoch' => :'epoch', + :'extension' => :'extension', + :'filename' => :'filename', + :'files' => :'files', + :'format' => :'format', + :'format_url' => :'format_url', + :'freeable_storage' => :'freeable_storage', + :'fully_qualified_name' => :'fully_qualified_name', + :'identifier_perm' => :'identifier_perm', + :'identifiers' => :'identifiers', + :'indexed' => :'indexed', + :'is_cancellable' => :'is_cancellable', + :'is_copyable' => :'is_copyable', + :'is_deleteable' => :'is_deleteable', + :'is_downloadable' => :'is_downloadable', + :'is_moveable' => :'is_moveable', + :'is_quarantinable' => :'is_quarantinable', + :'is_quarantined' => :'is_quarantined', + :'is_resyncable' => :'is_resyncable', + :'is_security_scannable' => :'is_security_scannable', + :'is_sync_awaiting' => :'is_sync_awaiting', + :'is_sync_completed' => :'is_sync_completed', + :'is_sync_failed' => :'is_sync_failed', + :'is_sync_in_flight' => :'is_sync_in_flight', + :'is_sync_in_progress' => :'is_sync_in_progress', + :'license' => :'license', + :'name' => :'name', + :'namespace' => :'namespace', + :'namespace_url' => :'namespace_url', + :'num_files' => :'num_files', + :'origin_repository' => :'origin_repository', + :'origin_repository_url' => :'origin_repository_url', + :'package_type' => :'package_type', + :'policy_violated' => :'policy_violated', + :'release' => :'release', + :'repository' => :'repository', + :'repository_url' => :'repository_url', + :'security_scan_completed_at' => :'security_scan_completed_at', + :'security_scan_started_at' => :'security_scan_started_at', + :'security_scan_status' => :'security_scan_status', + :'security_scan_status_updated_at' => :'security_scan_status_updated_at', + :'self_html_url' => :'self_html_url', + :'self_url' => :'self_url', + :'signature_url' => :'signature_url', + :'size' => :'size', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm', + :'stage' => :'stage', + :'stage_str' => :'stage_str', + :'stage_updated_at' => :'stage_updated_at', + :'status' => :'status', + :'status_reason' => :'status_reason', + :'status_str' => :'status_str', + :'status_updated_at' => :'status_updated_at', + :'status_url' => :'status_url', + :'subtype' => :'subtype', + :'summary' => :'summary', + :'sync_finished_at' => :'sync_finished_at', + :'sync_progress' => :'sync_progress', + :'tags_immutable' => :'tags_immutable', + :'type_display' => :'type_display', + :'uploaded_at' => :'uploaded_at', + :'uploader' => :'uploader', + :'uploader_url' => :'uploader_url', + :'version' => :'version', + :'version_orig' => :'version_orig', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'architectures' => :'Array', + :'cdn_url' => :'String', + :'checksum_md5' => :'String', + :'checksum_sha1' => :'String', + :'checksum_sha256' => :'String', + :'checksum_sha512' => :'String', + :'dependencies_checksum_md5' => :'String', + :'dependencies_url' => :'String', + :'description' => :'String', + :'display_name' => :'String', + :'distro' => :'Distribution', + :'distro_version' => :'DistributionVersion', + :'downloads' => :'Integer', + :'epoch' => :'Integer', + :'extension' => :'String', + :'filename' => :'String', + :'files' => :'Array', + :'format' => :'String', + :'format_url' => :'String', + :'freeable_storage' => :'Integer', + :'fully_qualified_name' => :'String', + :'identifier_perm' => :'String', + :'identifiers' => :'Hash', + :'indexed' => :'BOOLEAN', + :'is_cancellable' => :'BOOLEAN', + :'is_copyable' => :'BOOLEAN', + :'is_deleteable' => :'BOOLEAN', + :'is_downloadable' => :'BOOLEAN', + :'is_moveable' => :'BOOLEAN', + :'is_quarantinable' => :'BOOLEAN', + :'is_quarantined' => :'BOOLEAN', + :'is_resyncable' => :'BOOLEAN', + :'is_security_scannable' => :'BOOLEAN', + :'is_sync_awaiting' => :'BOOLEAN', + :'is_sync_completed' => :'BOOLEAN', + :'is_sync_failed' => :'BOOLEAN', + :'is_sync_in_flight' => :'BOOLEAN', + :'is_sync_in_progress' => :'BOOLEAN', + :'license' => :'String', + :'name' => :'String', + :'namespace' => :'String', + :'namespace_url' => :'String', + :'num_files' => :'Integer', + :'origin_repository' => :'String', + :'origin_repository_url' => :'String', + :'package_type' => :'Integer', + :'policy_violated' => :'BOOLEAN', + :'release' => :'String', + :'repository' => :'String', + :'repository_url' => :'String', + :'security_scan_completed_at' => :'DateTime', + :'security_scan_started_at' => :'DateTime', + :'security_scan_status' => :'String', + :'security_scan_status_updated_at' => :'DateTime', + :'self_html_url' => :'String', + :'self_url' => :'String', + :'signature_url' => :'String', + :'size' => :'Integer', + :'slug' => :'String', + :'slug_perm' => :'String', + :'stage' => :'Integer', + :'stage_str' => :'String', + :'stage_updated_at' => :'DateTime', + :'status' => :'Integer', + :'status_reason' => :'String', + :'status_str' => :'String', + :'status_updated_at' => :'DateTime', + :'status_url' => :'String', + :'subtype' => :'String', + :'summary' => :'String', + :'sync_finished_at' => :'DateTime', + :'sync_progress' => :'Integer', + :'tags_immutable' => :'Tags', + :'type_display' => :'String', + :'uploaded_at' => :'DateTime', + :'uploader' => :'String', + :'uploader_url' => :'String', + :'version' => :'String', + :'version_orig' => :'String', + :'vulnerability_scan_results_url' => :'String' + } + 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?(:'architectures') + if (value = attributes[:'architectures']).is_a?(Array) + self.architectures = value + end + end + + if attributes.has_key?(:'cdn_url') + self.cdn_url = attributes[:'cdn_url'] + end + + if attributes.has_key?(:'checksum_md5') + self.checksum_md5 = attributes[:'checksum_md5'] + end + + if attributes.has_key?(:'checksum_sha1') + self.checksum_sha1 = attributes[:'checksum_sha1'] + end + + if attributes.has_key?(:'checksum_sha256') + self.checksum_sha256 = attributes[:'checksum_sha256'] + end + + if attributes.has_key?(:'checksum_sha512') + self.checksum_sha512 = attributes[:'checksum_sha512'] + end + + if attributes.has_key?(:'dependencies_checksum_md5') + self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] + end + + if attributes.has_key?(:'dependencies_url') + self.dependencies_url = attributes[:'dependencies_url'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.has_key?(:'distro') + self.distro = attributes[:'distro'] + end + + if attributes.has_key?(:'distro_version') + self.distro_version = attributes[:'distro_version'] + end + + if attributes.has_key?(:'downloads') + self.downloads = attributes[:'downloads'] + end + + if attributes.has_key?(:'epoch') + self.epoch = attributes[:'epoch'] + end + + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + end + + if attributes.has_key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.has_key?(:'files') + if (value = attributes[:'files']).is_a?(Array) + self.files = value + end + end + + if attributes.has_key?(:'format') + self.format = attributes[:'format'] + end + + if attributes.has_key?(:'format_url') + self.format_url = attributes[:'format_url'] + end + + if attributes.has_key?(:'freeable_storage') + self.freeable_storage = attributes[:'freeable_storage'] + end + + if attributes.has_key?(:'fully_qualified_name') + self.fully_qualified_name = attributes[:'fully_qualified_name'] + end + + if attributes.has_key?(:'identifier_perm') + self.identifier_perm = attributes[:'identifier_perm'] + end + + if attributes.has_key?(:'identifiers') + if (value = attributes[:'identifiers']).is_a?(Hash) + self.identifiers = value + end + end + + if attributes.has_key?(:'indexed') + self.indexed = attributes[:'indexed'] + end + + if attributes.has_key?(:'is_cancellable') + self.is_cancellable = attributes[:'is_cancellable'] + end + + if attributes.has_key?(:'is_copyable') + self.is_copyable = attributes[:'is_copyable'] + end + + if attributes.has_key?(:'is_deleteable') + self.is_deleteable = attributes[:'is_deleteable'] + end + + if attributes.has_key?(:'is_downloadable') + self.is_downloadable = attributes[:'is_downloadable'] + end + + if attributes.has_key?(:'is_moveable') + self.is_moveable = attributes[:'is_moveable'] + end + + if attributes.has_key?(:'is_quarantinable') + self.is_quarantinable = attributes[:'is_quarantinable'] + end + + if attributes.has_key?(:'is_quarantined') + self.is_quarantined = attributes[:'is_quarantined'] + end + + if attributes.has_key?(:'is_resyncable') + self.is_resyncable = attributes[:'is_resyncable'] + end + + if attributes.has_key?(:'is_security_scannable') + self.is_security_scannable = attributes[:'is_security_scannable'] + end + + if attributes.has_key?(:'is_sync_awaiting') + self.is_sync_awaiting = attributes[:'is_sync_awaiting'] + end + + if attributes.has_key?(:'is_sync_completed') + self.is_sync_completed = attributes[:'is_sync_completed'] + end + + if attributes.has_key?(:'is_sync_failed') + self.is_sync_failed = attributes[:'is_sync_failed'] + end + + if attributes.has_key?(:'is_sync_in_flight') + self.is_sync_in_flight = attributes[:'is_sync_in_flight'] + end + + if attributes.has_key?(:'is_sync_in_progress') + self.is_sync_in_progress = attributes[:'is_sync_in_progress'] + end + + if attributes.has_key?(:'license') + self.license = attributes[:'license'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'namespace') + self.namespace = attributes[:'namespace'] + end + + if attributes.has_key?(:'namespace_url') + self.namespace_url = attributes[:'namespace_url'] + end + + if attributes.has_key?(:'num_files') + self.num_files = attributes[:'num_files'] + end + + if attributes.has_key?(:'origin_repository') + self.origin_repository = attributes[:'origin_repository'] + end + + if attributes.has_key?(:'origin_repository_url') + self.origin_repository_url = attributes[:'origin_repository_url'] + end + + if attributes.has_key?(:'package_type') + self.package_type = attributes[:'package_type'] + end + + if attributes.has_key?(:'policy_violated') + self.policy_violated = attributes[:'policy_violated'] + end + + if attributes.has_key?(:'release') + self.release = attributes[:'release'] + end + + if attributes.has_key?(:'repository') + self.repository = attributes[:'repository'] + end + + if attributes.has_key?(:'repository_url') + self.repository_url = attributes[:'repository_url'] + end + + if attributes.has_key?(:'security_scan_completed_at') + self.security_scan_completed_at = attributes[:'security_scan_completed_at'] + end + + if attributes.has_key?(:'security_scan_started_at') + self.security_scan_started_at = attributes[:'security_scan_started_at'] + end + + if attributes.has_key?(:'security_scan_status') + self.security_scan_status = attributes[:'security_scan_status'] + else + self.security_scan_status = 'Awaiting Security Scan' + end + + if attributes.has_key?(:'security_scan_status_updated_at') + self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at'] + end + + if attributes.has_key?(:'self_html_url') + self.self_html_url = attributes[:'self_html_url'] + end + + if attributes.has_key?(:'self_url') + self.self_url = attributes[:'self_url'] + end + + if attributes.has_key?(:'signature_url') + self.signature_url = attributes[:'signature_url'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'stage') + self.stage = attributes[:'stage'] + end + + if attributes.has_key?(:'stage_str') + self.stage_str = attributes[:'stage_str'] + end + + if attributes.has_key?(:'stage_updated_at') + self.stage_updated_at = attributes[:'stage_updated_at'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'status_reason') + self.status_reason = attributes[:'status_reason'] + end + + if attributes.has_key?(:'status_str') + self.status_str = attributes[:'status_str'] + end + + if attributes.has_key?(:'status_updated_at') + self.status_updated_at = attributes[:'status_updated_at'] + end + + if attributes.has_key?(:'status_url') + self.status_url = attributes[:'status_url'] + end + + if attributes.has_key?(:'subtype') + self.subtype = attributes[:'subtype'] + end + + if attributes.has_key?(:'summary') + self.summary = attributes[:'summary'] + end + + if attributes.has_key?(:'sync_finished_at') + self.sync_finished_at = attributes[:'sync_finished_at'] + end + + if attributes.has_key?(:'sync_progress') + self.sync_progress = attributes[:'sync_progress'] + end + + if attributes.has_key?(:'tags_immutable') + self.tags_immutable = attributes[:'tags_immutable'] + end + + if attributes.has_key?(:'type_display') + self.type_display = attributes[:'type_display'] + end + + if attributes.has_key?(:'uploaded_at') + self.uploaded_at = attributes[:'uploaded_at'] + end + + if attributes.has_key?(:'uploader') + self.uploader = attributes[:'uploader'] + end + + if attributes.has_key?(:'uploader_url') + self.uploader_url = attributes[:'uploader_url'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'version_orig') + self.version_orig = attributes[:'version_orig'] + end + + if attributes.has_key?(:'vulnerability_scan_results_url') + self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid 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? + security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + return false unless security_scan_status_validator.valid?(@security_scan_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] security_scan_status Object to be assigned + def security_scan_status=(security_scan_status) + validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + unless validator.valid?(security_scan_status) + fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.' + end + @security_scan_status = security_scan_status + 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 && + architectures == o.architectures && + cdn_url == o.cdn_url && + checksum_md5 == o.checksum_md5 && + checksum_sha1 == o.checksum_sha1 && + checksum_sha256 == o.checksum_sha256 && + checksum_sha512 == o.checksum_sha512 && + dependencies_checksum_md5 == o.dependencies_checksum_md5 && + dependencies_url == o.dependencies_url && + description == o.description && + display_name == o.display_name && + distro == o.distro && + distro_version == o.distro_version && + downloads == o.downloads && + epoch == o.epoch && + extension == o.extension && + filename == o.filename && + files == o.files && + format == o.format && + format_url == o.format_url && + freeable_storage == o.freeable_storage && + fully_qualified_name == o.fully_qualified_name && + identifier_perm == o.identifier_perm && + identifiers == o.identifiers && + indexed == o.indexed && + is_cancellable == o.is_cancellable && + is_copyable == o.is_copyable && + is_deleteable == o.is_deleteable && + is_downloadable == o.is_downloadable && + is_moveable == o.is_moveable && + is_quarantinable == o.is_quarantinable && + is_quarantined == o.is_quarantined && + is_resyncable == o.is_resyncable && + is_security_scannable == o.is_security_scannable && + is_sync_awaiting == o.is_sync_awaiting && + is_sync_completed == o.is_sync_completed && + is_sync_failed == o.is_sync_failed && + is_sync_in_flight == o.is_sync_in_flight && + is_sync_in_progress == o.is_sync_in_progress && + license == o.license && + name == o.name && + namespace == o.namespace && + namespace_url == o.namespace_url && + num_files == o.num_files && + origin_repository == o.origin_repository && + origin_repository_url == o.origin_repository_url && + package_type == o.package_type && + policy_violated == o.policy_violated && + release == o.release && + repository == o.repository && + repository_url == o.repository_url && + security_scan_completed_at == o.security_scan_completed_at && + security_scan_started_at == o.security_scan_started_at && + security_scan_status == o.security_scan_status && + security_scan_status_updated_at == o.security_scan_status_updated_at && + self_html_url == o.self_html_url && + self_url == o.self_url && + signature_url == o.signature_url && + size == o.size && + slug == o.slug && + slug_perm == o.slug_perm && + stage == o.stage && + stage_str == o.stage_str && + stage_updated_at == o.stage_updated_at && + status == o.status && + status_reason == o.status_reason && + status_str == o.status_str && + status_updated_at == o.status_updated_at && + status_url == o.status_url && + subtype == o.subtype && + summary == o.summary && + sync_finished_at == o.sync_finished_at && + sync_progress == o.sync_progress && + tags_immutable == o.tags_immutable && + type_display == o.type_display && + uploaded_at == o.uploaded_at && + uploader == o.uploader && + uploader_url == o.uploader_url && + version == o.version && + version_orig == o.version_orig && + vulnerability_scan_results_url == o.vulnerability_scan_results_url + 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 + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, policy_violated, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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/huggingface_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb new file mode 100644 index 00000000..6fb250ab --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb @@ -0,0 +1,210 @@ +=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 HuggingfacePackageUploadRequest + # The primary file for the package. + attr_accessor :package_file + + # If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + attr_accessor :republish + + # A comma-separated values list of tags to add to the package. + attr_accessor :tags + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'package_file' => :'package_file', + :'republish' => :'republish', + :'tags' => :'tags' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'package_file' => :'String', + :'republish' => :'BOOLEAN', + :'tags' => :'String' + } + 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?(:'package_file') + self.package_file = attributes[:'package_file'] + end + + if attributes.has_key?(:'republish') + self.republish = attributes[:'republish'] + end + + if attributes.has_key?(:'tags') + self.tags = attributes[:'tags'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @package_file.nil? + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') + 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 @package_file.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 && + package_file == o.package_file && + republish == o.republish && + tags == o.tags + 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 + [package_file, republish, tags].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/huggingface_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_upstream.rb new file mode 100644 index 00000000..6e5caa9c --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_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 HuggingfaceUpstream + # 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', 'Token']) + 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', 'Token']) + 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/huggingface_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_upstream_request.rb new file mode 100644 index 00000000..b7969c90 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_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 HuggingfaceUpstreamRequest + # 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', 'Token']) + 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', 'Token']) + 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/huggingface_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_upstream_request_patch.rb new file mode 100644 index 00000000..ab84086a --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_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 HuggingfaceUpstreamRequestPatch + # 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', 'Token']) + 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', 'Token']) + 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/provider_settings.rb b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings.rb index 70565a82..00b79529 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings.rb @@ -20,13 +20,16 @@ class ProviderSettings # Whether the provider settings should be used for incoming OIDC requests. attr_accessor :enabled + # The OIDC claim to use for mapping to service accounts in dynamic_mappings. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :mapping_claim + # The name of the provider settings are being configured for attr_accessor :name # The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ attr_accessor :provider_url - # The service accounts associated with these provider settings + # The service accounts associated with these provider settings. attr_accessor :service_accounts # The slug of the provider settings @@ -40,6 +43,7 @@ def self.attribute_map { :'claims' => :'claims', :'enabled' => :'enabled', + :'mapping_claim' => :'mapping_claim', :'name' => :'name', :'provider_url' => :'provider_url', :'service_accounts' => :'service_accounts', @@ -53,6 +57,7 @@ def self.swagger_types { :'claims' => :'Object', :'enabled' => :'BOOLEAN', + :'mapping_claim' => :'String', :'name' => :'String', :'provider_url' => :'String', :'service_accounts' => :'Array', @@ -77,6 +82,10 @@ def initialize(attributes = {}) self.enabled = attributes[:'enabled'] end + if attributes.has_key?(:'mapping_claim') + self.mapping_claim = attributes[:'mapping_claim'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -120,10 +129,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "provider_url", provider_url cannot be nil.') end - if @service_accounts.nil? - invalid_properties.push('invalid value for "service_accounts", service_accounts cannot be nil.') - end - invalid_properties end @@ -134,7 +139,6 @@ def valid? return false if @enabled.nil? return false if @name.nil? return false if @provider_url.nil? - return false if @service_accounts.nil? true end @@ -145,6 +149,7 @@ def ==(o) self.class == o.class && claims == o.claims && enabled == o.enabled && + mapping_claim == o.mapping_claim && name == o.name && provider_url == o.provider_url && service_accounts == o.service_accounts && @@ -161,7 +166,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [claims, enabled, name, provider_url, service_accounts, slug, slug_perm].hash + [claims, enabled, mapping_claim, name, provider_url, service_accounts, slug, slug_perm].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write.rb b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write.rb new file mode 100644 index 00000000..5f1b42af --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write.rb @@ -0,0 +1,289 @@ +=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 ProviderSettingsWrite + # The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. + attr_accessor :claims + + # The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :dynamic_mappings + + # Whether the provider settings should be used for incoming OIDC requests. + attr_accessor :enabled + + # The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :mapping_claim + + # The name of the provider settings are being configured for + attr_accessor :name + + # The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ + attr_accessor :provider_url + + # The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. + attr_accessor :service_accounts + + # The slug of the provider settings + attr_accessor :slug + + # The unique, immutable identifier of the provider settings. + attr_accessor :slug_perm + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'claims' => :'claims', + :'dynamic_mappings' => :'dynamic_mappings', + :'enabled' => :'enabled', + :'mapping_claim' => :'mapping_claim', + :'name' => :'name', + :'provider_url' => :'provider_url', + :'service_accounts' => :'service_accounts', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'claims' => :'Object', + :'dynamic_mappings' => :'Array', + :'enabled' => :'BOOLEAN', + :'mapping_claim' => :'String', + :'name' => :'String', + :'provider_url' => :'String', + :'service_accounts' => :'Array', + :'slug' => :'String', + :'slug_perm' => :'String' + } + 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?(:'claims') + self.claims = attributes[:'claims'] + end + + if attributes.has_key?(:'dynamic_mappings') + if (value = attributes[:'dynamic_mappings']).is_a?(Array) + self.dynamic_mappings = value + end + end + + if attributes.has_key?(:'enabled') + self.enabled = attributes[:'enabled'] + end + + if attributes.has_key?(:'mapping_claim') + self.mapping_claim = attributes[:'mapping_claim'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'provider_url') + self.provider_url = attributes[:'provider_url'] + end + + if attributes.has_key?(:'service_accounts') + if (value = attributes[:'service_accounts']).is_a?(Array) + self.service_accounts = value + end + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @claims.nil? + invalid_properties.push('invalid value for "claims", claims cannot be nil.') + end + + if @enabled.nil? + invalid_properties.push('invalid value for "enabled", enabled cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @provider_url.nil? + invalid_properties.push('invalid value for "provider_url", provider_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? + return false if @claims.nil? + return false if @enabled.nil? + return false if @name.nil? + return false if @provider_url.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 && + claims == o.claims && + dynamic_mappings == o.dynamic_mappings && + enabled == o.enabled && + mapping_claim == o.mapping_claim && + name == o.name && + provider_url == o.provider_url && + service_accounts == o.service_accounts && + slug == o.slug && + slug_perm == o.slug_perm + 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 + [claims, dynamic_mappings, enabled, mapping_claim, name, provider_url, service_accounts, slug, slug_perm].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/provider_settings_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request.rb similarity index 84% rename from bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_request.rb rename to bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request.rb index c244934c..19606b12 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request.rb @@ -13,27 +13,35 @@ require 'date' module CloudsmithApi -class ProviderSettingsRequest +class ProviderSettingsWriteRequest # The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. attr_accessor :claims + # The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :dynamic_mappings + # Whether the provider settings should be used for incoming OIDC requests. attr_accessor :enabled + # The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :mapping_claim + # The name of the provider settings are being configured for attr_accessor :name # The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ attr_accessor :provider_url - # The service accounts associated with these provider settings + # The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. attr_accessor :service_accounts # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'claims' => :'claims', + :'dynamic_mappings' => :'dynamic_mappings', :'enabled' => :'enabled', + :'mapping_claim' => :'mapping_claim', :'name' => :'name', :'provider_url' => :'provider_url', :'service_accounts' => :'service_accounts' @@ -44,7 +52,9 @@ def self.attribute_map def self.swagger_types { :'claims' => :'Object', + :'dynamic_mappings' => :'Array', :'enabled' => :'BOOLEAN', + :'mapping_claim' => :'String', :'name' => :'String', :'provider_url' => :'String', :'service_accounts' => :'Array' @@ -63,10 +73,20 @@ def initialize(attributes = {}) self.claims = attributes[:'claims'] end + if attributes.has_key?(:'dynamic_mappings') + if (value = attributes[:'dynamic_mappings']).is_a?(Array) + self.dynamic_mappings = value + end + end + if attributes.has_key?(:'enabled') self.enabled = attributes[:'enabled'] end + if attributes.has_key?(:'mapping_claim') + self.mapping_claim = attributes[:'mapping_claim'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -102,10 +122,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "provider_url", provider_url cannot be nil.') end - if @service_accounts.nil? - invalid_properties.push('invalid value for "service_accounts", service_accounts cannot be nil.') - end - invalid_properties end @@ -116,7 +132,6 @@ def valid? return false if @enabled.nil? return false if @name.nil? return false if @provider_url.nil? - return false if @service_accounts.nil? true end @@ -126,7 +141,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && claims == o.claims && + dynamic_mappings == o.dynamic_mappings && enabled == o.enabled && + mapping_claim == o.mapping_claim && name == o.name && provider_url == o.provider_url && service_accounts == o.service_accounts @@ -141,7 +158,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [claims, enabled, name, provider_url, service_accounts].hash + [claims, dynamic_mappings, enabled, mapping_claim, name, provider_url, service_accounts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request_patch.rb similarity index 82% rename from bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_request_patch.rb rename to bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request_patch.rb index 0e3dec2b..3cc3f605 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/provider_settings_write_request_patch.rb @@ -13,27 +13,35 @@ require 'date' module CloudsmithApi -class ProviderSettingsRequestPatch +class ProviderSettingsWriteRequestPatch # The set of claims that any received tokens from the provider must contain to authenticate as the configured service account. attr_accessor :claims + # The dynamic mappings of `mapping_claim` values to service accounts. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :dynamic_mappings + # Whether the provider settings should be used for incoming OIDC requests. attr_accessor :enabled + # The OIDC claim to use for mapping to service accounts in dynamic_mappings. Cannot be provided if `service_accounts` is also set. Note: This field and the dynamic mappings feature are still in early access. Breaking changes are possible as we receive feedback on this feature. + attr_accessor :mapping_claim + # The name of the provider settings are being configured for attr_accessor :name # The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/ attr_accessor :provider_url - # The service accounts associated with these provider settings + # The service accounts associated with these provider settings. Cannot be provided if `mapping_claim` or `dynamic_mappings` are specified. attr_accessor :service_accounts # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'claims' => :'claims', + :'dynamic_mappings' => :'dynamic_mappings', :'enabled' => :'enabled', + :'mapping_claim' => :'mapping_claim', :'name' => :'name', :'provider_url' => :'provider_url', :'service_accounts' => :'service_accounts' @@ -44,7 +52,9 @@ def self.attribute_map def self.swagger_types { :'claims' => :'Object', + :'dynamic_mappings' => :'Array', :'enabled' => :'BOOLEAN', + :'mapping_claim' => :'String', :'name' => :'String', :'provider_url' => :'String', :'service_accounts' => :'Array' @@ -63,10 +73,20 @@ def initialize(attributes = {}) self.claims = attributes[:'claims'] end + if attributes.has_key?(:'dynamic_mappings') + if (value = attributes[:'dynamic_mappings']).is_a?(Array) + self.dynamic_mappings = value + end + end + if attributes.has_key?(:'enabled') self.enabled = attributes[:'enabled'] end + if attributes.has_key?(:'mapping_claim') + self.mapping_claim = attributes[:'mapping_claim'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -101,7 +121,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && claims == o.claims && + dynamic_mappings == o.dynamic_mappings && enabled == o.enabled && + mapping_claim == o.mapping_claim && name == o.name && provider_url == o.provider_url && service_accounts == o.service_accounts @@ -116,7 +138,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [claims, enabled, name, provider_url, service_accounts].hash + [claims, dynamic_mappings, enabled, mapping_claim, name, provider_url, service_accounts].hash end # Builds the object from hash 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 9905d8cd..80dde843 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.736.13' + self.version = '1.783.2' end end diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index 1f62ef06..a35c0db6 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -472,8 +472,8 @@ # Create the OpenID Connect provider settings for the org. # @param org # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequest] :data + # @return [ProviderSettingsWrite] describe 'orgs_openid_connect_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -493,6 +493,35 @@ end end + # unit tests for orgs_openid_connect_dynamic_mappings_list + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # Retrieve the list of OpenID Connect dynamic mappings for the provider setting. + # @param org + # @param provider_setting + # @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 'orgs_openid_connect_dynamic_mappings_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 orgs_openid_connect_dynamic_mappings_read + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # Retrieve a specific OpenID Connect dynamic mapping for the provider setting. + # @param org + # @param provider_setting + # @param claim_value + # @param [Hash] opts the optional parameters + # @return [DynamicMapping] + describe 'orgs_openid_connect_dynamic_mappings_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 orgs_openid_connect_list # Retrieve the list of OpenID Connect provider settings for the org. # Retrieve the list of OpenID Connect provider settings for the org. @@ -515,8 +544,8 @@ # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequestPatch] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequestPatch] :data + # @return [ProviderSettingsWrite] describe 'orgs_openid_connect_partial_update test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -542,8 +571,8 @@ # @param org # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ProviderSettingsRequest] :data - # @return [ProviderSettings] + # @option opts [ProviderSettingsWriteRequest] :data + # @return [ProviderSettingsWrite] describe 'orgs_openid_connect_update 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/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index 835a19a9..425a7d5a 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -84,6 +84,7 @@ # @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 [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results # @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] @@ -393,6 +394,20 @@ end end + # unit tests for packages_upload_huggingface + # Create a new Hugging Face package + # Create a new Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [HuggingfacePackageUpload] + describe 'packages_upload_huggingface 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_upload_luarocks # Create a new LuaRocks package # Create a new LuaRocks package @@ -743,6 +758,20 @@ end end + # unit tests for packages_validate_upload_huggingface + # Validate parameters for create Hugging Face package + # Validate parameters for create Hugging Face package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [HuggingfacePackageUploadRequest] :data + # @return [nil] + describe 'packages_validate_upload_huggingface 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_validate_upload_luarocks # Validate parameters for create LuaRocks package # Validate parameters for create LuaRocks package diff --git a/bindings/ruby/src/spec/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index 5086e7de..8f92d98c 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -573,6 +573,93 @@ end end + # unit tests for repos_upstream_conda_create + # Create a Conda upstream config for this repository. + # Create a Conda upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [CondaUpstreamRequest] :data + # @return [CondaUpstream] + describe 'repos_upstream_conda_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_conda_delete + # Delete a Conda upstream config for this repository. + # Delete a Conda upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_upstream_conda_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_conda_list + # List Conda upstream configs for this repository. + # List Conda 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_conda_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_conda_partial_update + # Partially update a Conda upstream config for this repository. + # Partially update a Conda upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CondaUpstreamRequestPatch] :data + # @return [CondaUpstream] + describe 'repos_upstream_conda_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_conda_read + # Retrieve a Conda upstream config for this repository. + # Retrieve a Conda upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [CondaUpstream] + describe 'repos_upstream_conda_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_conda_update + # Update a Conda upstream config for this repository. + # Update a Conda upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CondaUpstreamRequest] :data + # @return [CondaUpstream] + describe 'repos_upstream_conda_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_cran_create # Create a CRAN upstream config for this repository. # Create a CRAN upstream config for this repository. @@ -1182,6 +1269,93 @@ end end + # unit tests for repos_upstream_huggingface_create + # Create a Hugging Face upstream config for this repository. + # Create a Hugging Face upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [HuggingfaceUpstream] + describe 'repos_upstream_huggingface_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_huggingface_delete + # Delete a Hugging Face upstream config for this repository. + # Delete a Hugging Face upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_upstream_huggingface_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_huggingface_list + # List Hugging Face upstream configs for this repository. + # List Hugging Face 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_huggingface_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_huggingface_partial_update + # Partially update a Hugging Face upstream config for this repository. + # Partially update a Hugging Face upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [HuggingfaceUpstreamRequestPatch] :data + # @return [HuggingfaceUpstream] + describe 'repos_upstream_huggingface_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_huggingface_read + # Retrieve a Hugging Face upstream config for this repository. + # Retrieve a Hugging Face upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [HuggingfaceUpstream] + describe 'repos_upstream_huggingface_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_huggingface_update + # Update a Hugging Face upstream config for this repository. + # Update a Hugging Face upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [HuggingfaceUpstreamRequest] :data + # @return [HuggingfaceUpstream] + describe 'repos_upstream_huggingface_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_maven_create # Create a Maven upstream config for this repository. # Create a Maven upstream config for this repository. diff --git a/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_request_patch_spec.rb new file mode 100644 index 00000000..5ff01457 --- /dev/null +++ b/bindings/ruby/src/spec/models/conda_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::CondaUpstreamRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CondaUpstreamRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::CondaUpstreamRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of CondaUpstreamRequestPatch' do + it 'should create an instance of CondaUpstreamRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::CondaUpstreamRequestPatch) + 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", "Cache and Proxy"]) + # 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/conda_upstream_request_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_request_spec.rb new file mode 100644 index 00000000..b85c914d --- /dev/null +++ b/bindings/ruby/src/spec/models/conda_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::CondaUpstreamRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CondaUpstreamRequest' do + before do + # run before each test + @instance = CloudsmithApi::CondaUpstreamRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of CondaUpstreamRequest' do + it 'should create an instance of CondaUpstreamRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::CondaUpstreamRequest) + 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", "Cache and Proxy"]) + # 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/conda_upstream_spec.rb b/bindings/ruby/src/spec/models/conda_upstream_spec.rb new file mode 100644 index 00000000..60b23de9 --- /dev/null +++ b/bindings/ruby/src/spec/models/conda_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::CondaUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CondaUpstream' do + before do + # run before each test + @instance = CloudsmithApi::CondaUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of CondaUpstream' do + it 'should create an instance of CondaUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::CondaUpstream) + 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", "Cache and Proxy"]) + # 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/dynamic_mapping_spec.rb b/bindings/ruby/src/spec/models/dynamic_mapping_spec.rb new file mode 100644 index 00000000..a0ca024d --- /dev/null +++ b/bindings/ruby/src/spec/models/dynamic_mapping_spec.rb @@ -0,0 +1,47 @@ +=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::DynamicMapping +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'DynamicMapping' do + before do + # run before each test + @instance = CloudsmithApi::DynamicMapping.new + end + + after do + # run after each test + end + + describe 'test an instance of DynamicMapping' do + it 'should create an instance of DynamicMapping' do + expect(@instance).to be_instance_of(CloudsmithApi::DynamicMapping) + end + end + describe 'test attribute "claim_value"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "service_account"' 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/huggingface_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb new file mode 100644 index 00000000..253846c4 --- /dev/null +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb @@ -0,0 +1,53 @@ +=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::HuggingfacePackageUploadRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HuggingfacePackageUploadRequest' do + before do + # run before each test + @instance = CloudsmithApi::HuggingfacePackageUploadRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of HuggingfacePackageUploadRequest' do + it 'should create an instance of HuggingfacePackageUploadRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::HuggingfacePackageUploadRequest) + end + end + describe 'test attribute "package_file"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "republish"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb new file mode 100644 index 00000000..360a1113 --- /dev/null +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb @@ -0,0 +1,519 @@ +=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::HuggingfacePackageUpload +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HuggingfacePackageUpload' do + before do + # run before each test + @instance = CloudsmithApi::HuggingfacePackageUpload.new + end + + after do + # run after each test + end + + describe 'test an instance of HuggingfacePackageUpload' do + it 'should create an instance of HuggingfacePackageUpload' do + expect(@instance).to be_instance_of(CloudsmithApi::HuggingfacePackageUpload) + end + end + describe 'test attribute "architectures"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cdn_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha256"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha512"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "display_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 "distro"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro_version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "downloads"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "epoch"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extension"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filename"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "freeable_storage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fully_qualified_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 "identifier_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 "identifiers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "indexed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_cancellable"' 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_copyable"' 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_deleteable"' 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_downloadable"' 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_moveable"' 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_quarantinable"' 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_quarantined"' 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_resyncable"' 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_security_scannable"' 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_sync_awaiting"' 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_sync_completed"' 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_sync_failed"' 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_sync_in_flight"' 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_sync_in_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + 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 "namespace"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "num_files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository_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 "package_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "policy_violated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "release"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_completed_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_started_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"]) + # validator.allowable_values.each do |value| + # expect { @instance.security_scan_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "security_scan_status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_html_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "signature_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + 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 + + describe 'test attribute "slug"' 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 "stage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "subtype"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "summary"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_finished_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_immutable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type_display"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploaded_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version_orig"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_scan_results_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/huggingface_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/huggingface_upstream_request_patch_spec.rb new file mode 100644 index 00000000..376408b3 --- /dev/null +++ b/bindings/ruby/src/spec/models/huggingface_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::HuggingfaceUpstreamRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HuggingfaceUpstreamRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::HuggingfaceUpstreamRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of HuggingfaceUpstreamRequestPatch' do + it 'should create an instance of HuggingfaceUpstreamRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::HuggingfaceUpstreamRequestPatch) + 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", "Token"]) + # 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/huggingface_upstream_request_spec.rb b/bindings/ruby/src/spec/models/huggingface_upstream_request_spec.rb new file mode 100644 index 00000000..af1528ed --- /dev/null +++ b/bindings/ruby/src/spec/models/huggingface_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::HuggingfaceUpstreamRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HuggingfaceUpstreamRequest' do + before do + # run before each test + @instance = CloudsmithApi::HuggingfaceUpstreamRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of HuggingfaceUpstreamRequest' do + it 'should create an instance of HuggingfaceUpstreamRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::HuggingfaceUpstreamRequest) + 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", "Token"]) + # 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/huggingface_upstream_spec.rb b/bindings/ruby/src/spec/models/huggingface_upstream_spec.rb new file mode 100644 index 00000000..e5ab41a5 --- /dev/null +++ b/bindings/ruby/src/spec/models/huggingface_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::HuggingfaceUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HuggingfaceUpstream' do + before do + # run before each test + @instance = CloudsmithApi::HuggingfaceUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of HuggingfaceUpstream' do + it 'should create an instance of HuggingfaceUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::HuggingfaceUpstream) + 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", "Token"]) + # 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/provider_settings_spec.rb b/bindings/ruby/src/spec/models/provider_settings_spec.rb index 610cac11..f6710b9f 100644 --- a/bindings/ruby/src/spec/models/provider_settings_spec.rb +++ b/bindings/ruby/src/spec/models/provider_settings_spec.rb @@ -44,6 +44,12 @@ end end + describe 'test attribute "mapping_claim"' 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 diff --git a/bindings/ruby/src/spec/models/provider_settings_request_spec.rb b/bindings/ruby/src/spec/models/provider_settings_write_request_patch_spec.rb similarity index 67% rename from bindings/ruby/src/spec/models/provider_settings_request_spec.rb rename to bindings/ruby/src/spec/models/provider_settings_write_request_patch_spec.rb index e4fe011f..77a4c0a0 100644 --- a/bindings/ruby/src/spec/models/provider_settings_request_spec.rb +++ b/bindings/ruby/src/spec/models/provider_settings_write_request_patch_spec.rb @@ -14,22 +14,22 @@ require 'json' require 'date' -# Unit tests for CloudsmithApi::ProviderSettingsRequest +# Unit tests for CloudsmithApi::ProviderSettingsWriteRequestPatch # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ProviderSettingsRequest' do +describe 'ProviderSettingsWriteRequestPatch' do before do # run before each test - @instance = CloudsmithApi::ProviderSettingsRequest.new + @instance = CloudsmithApi::ProviderSettingsWriteRequestPatch.new end after do # run after each test end - describe 'test an instance of ProviderSettingsRequest' do - it 'should create an instance of ProviderSettingsRequest' do - expect(@instance).to be_instance_of(CloudsmithApi::ProviderSettingsRequest) + describe 'test an instance of ProviderSettingsWriteRequestPatch' do + it 'should create an instance of ProviderSettingsWriteRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::ProviderSettingsWriteRequestPatch) end end describe 'test attribute "claims"' do @@ -38,12 +38,24 @@ end end + describe 'test attribute "dynamic_mappings"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "enabled"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "mapping_claim"' 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 diff --git a/bindings/ruby/src/spec/models/provider_settings_request_patch_spec.rb b/bindings/ruby/src/spec/models/provider_settings_write_request_spec.rb similarity index 68% rename from bindings/ruby/src/spec/models/provider_settings_request_patch_spec.rb rename to bindings/ruby/src/spec/models/provider_settings_write_request_spec.rb index bfe94124..15f17639 100644 --- a/bindings/ruby/src/spec/models/provider_settings_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/provider_settings_write_request_spec.rb @@ -14,22 +14,22 @@ require 'json' require 'date' -# Unit tests for CloudsmithApi::ProviderSettingsRequestPatch +# Unit tests for CloudsmithApi::ProviderSettingsWriteRequest # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ProviderSettingsRequestPatch' do +describe 'ProviderSettingsWriteRequest' do before do # run before each test - @instance = CloudsmithApi::ProviderSettingsRequestPatch.new + @instance = CloudsmithApi::ProviderSettingsWriteRequest.new end after do # run after each test end - describe 'test an instance of ProviderSettingsRequestPatch' do - it 'should create an instance of ProviderSettingsRequestPatch' do - expect(@instance).to be_instance_of(CloudsmithApi::ProviderSettingsRequestPatch) + describe 'test an instance of ProviderSettingsWriteRequest' do + it 'should create an instance of ProviderSettingsWriteRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::ProviderSettingsWriteRequest) end end describe 'test attribute "claims"' do @@ -38,12 +38,24 @@ end end + describe 'test attribute "dynamic_mappings"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "enabled"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "mapping_claim"' 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 diff --git a/bindings/ruby/src/spec/models/provider_settings_write_spec.rb b/bindings/ruby/src/spec/models/provider_settings_write_spec.rb new file mode 100644 index 00000000..2ffecfd6 --- /dev/null +++ b/bindings/ruby/src/spec/models/provider_settings_write_spec.rb @@ -0,0 +1,89 @@ +=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::ProviderSettingsWrite +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ProviderSettingsWrite' do + before do + # run before each test + @instance = CloudsmithApi::ProviderSettingsWrite.new + end + + after do + # run after each test + end + + describe 'test an instance of ProviderSettingsWrite' do + it 'should create an instance of ProviderSettingsWrite' do + expect(@instance).to be_instance_of(CloudsmithApi::ProviderSettingsWrite) + end + end + describe 'test attribute "claims"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dynamic_mappings"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "enabled"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mapping_claim"' 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 "provider_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 "service_accounts"' 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"' 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 + +end