diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index c66ce0cc..3cb4f611 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: io.cloudsmith.api cloudsmith-api - 2.0.26 + 2.0.27 compile ``` @@ -50,7 +50,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:2.0.26" +compile "io.cloudsmith.api:cloudsmith-api:2.0.27" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.26.jar` +* `target/cloudsmith-api-2.0.27.jar` * `target/lib/*.jar` ## Getting Started @@ -149,6 +149,7 @@ Class | Method | HTTP request | Description *MetricsApi* | [**metricsPackagesList**](docs/MetricsApi.md#metricsPackagesList) | **GET** /metrics/packages/{owner}/{repo}/ | View for listing package usage metrics, for a repository. *NamespacesApi* | [**namespacesList**](docs/NamespacesApi.md#namespacesList) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to. *NamespacesApi* | [**namespacesRead**](docs/NamespacesApi.md#namespacesRead) | **GET** /namespaces/{slug}/ | Get a specific namespace that the user belongs to. +*OrgsApi* | [**orgsCustomDomainsList**](docs/OrgsApi.md#orgsCustomDomainsList) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. *OrgsApi* | [**orgsDelete**](docs/OrgsApi.md#orgsDelete) | **DELETE** /orgs/{org}/ | Delete the specified organization. *OrgsApi* | [**orgsDenyPolicyCreate**](docs/OrgsApi.md#orgsDenyPolicyCreate) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. *OrgsApi* | [**orgsDenyPolicyDelete**](docs/OrgsApi.md#orgsDenyPolicyDelete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -298,16 +299,25 @@ Class | Method | HTTP request | Description *QuotaApi* | [**quotaOssRead**](docs/QuotaApi.md#quotaOssRead) | **GET** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. *QuotaApi* | [**quotaRead**](docs/QuotaApi.md#quotaRead) | **GET** /quota/{owner}/ | Quota usage for a given namespace. *RatesApi* | [**ratesLimitsList**](docs/RatesApi.md#ratesLimitsList) | **GET** /rates/limits/ | Endpoint to check rate limits for current user. +*RecycleBinApi* | [**recycleBinAction**](docs/RecycleBinApi.md#recycleBinAction) | **POST** /recycle-bin/{owner}/action/ | *RecycleBinApi* | [**recycleBinList**](docs/RecycleBinApi.md#recycleBinList) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -*RecycleBinApi* | [**recycleBinRecycleBinAction**](docs/RecycleBinApi.md#recycleBinRecycleBinAction) | **POST** /recycle-bin/{owner}/action/ | *ReposApi* | [**apiReposGeoipStatus**](docs/ReposApi.md#apiReposGeoipStatus) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. *ReposApi* | [**repoRetentionPartialUpdate**](docs/ReposApi.md#repoRetentionPartialUpdate) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. *ReposApi* | [**repoRetentionRead**](docs/ReposApi.md#repoRetentionRead) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +*ReposApi* | [**reposConnectedCreate**](docs/ReposApi.md#reposConnectedCreate) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +*ReposApi* | [**reposConnectedDelete**](docs/ReposApi.md#reposConnectedDelete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +*ReposApi* | [**reposConnectedList**](docs/ReposApi.md#reposConnectedList) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +*ReposApi* | [**reposConnectedPartialUpdate**](docs/ReposApi.md#reposConnectedPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +*ReposApi* | [**reposConnectedRead**](docs/ReposApi.md#reposConnectedRead) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +*ReposApi* | [**reposConnectedUpdate**](docs/ReposApi.md#reposConnectedUpdate) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. *ReposApi* | [**reposCreate**](docs/ReposApi.md#reposCreate) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. *ReposApi* | [**reposDelete**](docs/ReposApi.md#reposDelete) | **DELETE** /repos/{owner}/{identifier}/ | *ReposApi* | [**reposEcdsaCreate**](docs/ReposApi.md#reposEcdsaCreate) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. *ReposApi* | [**reposEcdsaList**](docs/ReposApi.md#reposEcdsaList) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. *ReposApi* | [**reposEcdsaRegenerate**](docs/ReposApi.md#reposEcdsaRegenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +*ReposApi* | [**reposEd25519Create**](docs/ReposApi.md#reposEd25519Create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +*ReposApi* | [**reposEd25519List**](docs/ReposApi.md#reposEd25519List) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +*ReposApi* | [**reposEd25519Regenerate**](docs/ReposApi.md#reposEd25519Regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. *ReposApi* | [**reposGeoipDisable**](docs/ReposApi.md#reposGeoipDisable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. *ReposApi* | [**reposGeoipEnable**](docs/ReposApi.md#reposGeoipEnable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. *ReposApi* | [**reposGeoipPartialUpdate**](docs/ReposApi.md#reposGeoipPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -506,6 +516,9 @@ Class | Method | HTTP request | Description - [CondaUpstream](docs/CondaUpstream.md) - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) + - [ConnectedRepository](docs/ConnectedRepository.md) + - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) + - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -567,6 +580,7 @@ Class | Method | HTTP request | Description - [HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) + - [InlineResponse2002](docs/InlineResponse2002.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -576,6 +590,7 @@ Class | Method | HTTP request | Description - [MavenUpstreamRequestPatch](docs/MavenUpstreamRequestPatch.md) - [McpPackageUpload](docs/McpPackageUpload.md) - [McpPackageUploadRequest](docs/McpPackageUploadRequest.md) + - [MemberTeams](docs/MemberTeams.md) - [ModelPackage](docs/ModelPackage.md) - [Namespace](docs/Namespace.md) - [NamespaceAuditLog](docs/NamespaceAuditLog.md) @@ -593,6 +608,8 @@ Class | Method | HTTP request | Description - [NugetUpstreamRequest](docs/NugetUpstreamRequest.md) - [NugetUpstreamRequestPatch](docs/NugetUpstreamRequestPatch.md) - [Organization](docs/Organization.md) + - [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) + - [OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [OrganizationGroupSync](docs/OrganizationGroupSync.md) - [OrganizationGroupSyncRequest](docs/OrganizationGroupSyncRequest.md) - [OrganizationGroupSyncStatus](docs/OrganizationGroupSyncStatus.md) @@ -680,6 +697,8 @@ Class | Method | HTTP request | Description - [RepositoryCreateRequest](docs/RepositoryCreateRequest.md) - [RepositoryEcdsaKey](docs/RepositoryEcdsaKey.md) - [RepositoryEcdsaKeyCreate](docs/RepositoryEcdsaKeyCreate.md) + - [RepositoryEd25519Key](docs/RepositoryEd25519Key.md) + - [RepositoryEd25519KeyCreate](docs/RepositoryEd25519KeyCreate.md) - [RepositoryGeoIpCidr](docs/RepositoryGeoIpCidr.md) - [RepositoryGeoIpCountryCode](docs/RepositoryGeoIpCountryCode.md) - [RepositoryGeoIpRules](docs/RepositoryGeoIpRules.md) diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 886b6a70..26a3900c 100644 --- a/bindings/java/src/build.gradle +++ b/bindings/java/src/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'io.cloudsmith.api' -version = '2.0.26' +version = '2.0.27' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index dea9700b..286105bf 100644 --- a/bindings/java/src/build.json +++ b/bindings/java/src/build.json @@ -3,7 +3,7 @@ "apiPackage": "io.cloudsmith.api.apis", "artifactId": "cloudsmith-api", "artifactUrl": "https://api.cloudsmith.io/?format=openapi", - "artifactVersion": "2.0.26", + "artifactVersion": "2.0.27", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index e979ef48..19ef69c6 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "2.0.26", + version := "2.0.27", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/bindings/java/src/docs/AlpinePackageUpload.md b/bindings/java/src/docs/AlpinePackageUpload.md index 3d3f8466..2a612253 100644 --- a/bindings/java/src/docs/AlpinePackageUpload.md +++ b/bindings/java/src/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/CargoPackageUpload.md b/bindings/java/src/docs/CargoPackageUpload.md index e8a6ad25..7a6c4615 100644 --- a/bindings/java/src/docs/CargoPackageUpload.md +++ b/bindings/java/src/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/CocoapodsPackageUpload.md b/bindings/java/src/docs/CocoapodsPackageUpload.md index 4eda7c7d..27a5b8c7 100644 --- a/bindings/java/src/docs/CocoapodsPackageUpload.md +++ b/bindings/java/src/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/ComposerPackageUpload.md b/bindings/java/src/docs/ComposerPackageUpload.md index 32899671..27d11e20 100644 --- a/bindings/java/src/docs/ComposerPackageUpload.md +++ b/bindings/java/src/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/ConanPackageUpload.md b/bindings/java/src/docs/ConanPackageUpload.md index 2d631087..91845c45 100644 --- a/bindings/java/src/docs/ConanPackageUpload.md +++ b/bindings/java/src/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -51,6 +52,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/CondaPackageUpload.md b/bindings/java/src/docs/CondaPackageUpload.md index feb80782..9e029984 100644 --- a/bindings/java/src/docs/CondaPackageUpload.md +++ b/bindings/java/src/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/ConnectedRepository.md b/bindings/java/src/docs/ConnectedRepository.md new file mode 100644 index 00000000..d93d70e9 --- /dev/null +++ b/bindings/java/src/docs/ConnectedRepository.md @@ -0,0 +1,14 @@ + +# ConnectedRepository + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the connection was created. | [optional] +**isActive** | **Boolean** | | [optional] +**priority** | **java.math.BigInteger** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**slugPerm** | **String** | | [optional] +**targetRepository** | **String** | The slug of the target repository to connect to. | + + + diff --git a/bindings/java/src/docs/ConnectedRepositoryRequest.md b/bindings/java/src/docs/ConnectedRepositoryRequest.md new file mode 100644 index 00000000..a5d63fa1 --- /dev/null +++ b/bindings/java/src/docs/ConnectedRepositoryRequest.md @@ -0,0 +1,12 @@ + +# ConnectedRepositoryRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isActive** | **Boolean** | | [optional] +**priority** | **java.math.BigInteger** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**targetRepository** | **String** | The slug of the target repository to connect to. | + + + diff --git a/bindings/java/src/docs/ConnectedRepositoryRequestPatch.md b/bindings/java/src/docs/ConnectedRepositoryRequestPatch.md new file mode 100644 index 00000000..3476f0ea --- /dev/null +++ b/bindings/java/src/docs/ConnectedRepositoryRequestPatch.md @@ -0,0 +1,12 @@ + +# ConnectedRepositoryRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isActive** | **Boolean** | | [optional] +**priority** | **java.math.BigInteger** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**targetRepository** | **String** | The slug of the target repository to connect to. | [optional] + + + diff --git a/bindings/java/src/docs/CranPackageUpload.md b/bindings/java/src/docs/CranPackageUpload.md index b8fdee83..0570c660 100644 --- a/bindings/java/src/docs/CranPackageUpload.md +++ b/bindings/java/src/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rVersion** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] diff --git a/bindings/java/src/docs/DartPackageUpload.md b/bindings/java/src/docs/DartPackageUpload.md index 6093e470..a91454ac 100644 --- a/bindings/java/src/docs/DartPackageUpload.md +++ b/bindings/java/src/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/DebPackageUpload.md b/bindings/java/src/docs/DebPackageUpload.md index f0a7094a..a5f09aa5 100644 --- a/bindings/java/src/docs/DebPackageUpload.md +++ b/bindings/java/src/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/DockerPackageUpload.md b/bindings/java/src/docs/DockerPackageUpload.md index 2a3f4fac..7f7cf718 100644 --- a/bindings/java/src/docs/DockerPackageUpload.md +++ b/bindings/java/src/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/EntitlementsApi.md b/bindings/java/src/docs/EntitlementsApi.md index a391f822..cac7a3f3 100644 --- a/bindings/java/src/docs/EntitlementsApi.md +++ b/bindings/java/src/docs/EntitlementsApi.md @@ -274,7 +274,7 @@ null (empty response body) # **entitlementsList** -> List<RepositoryToken> entitlementsList(owner, repo, page, pageSize, showTokens, query, active, sort) +> List<RepositoryToken> entitlementsList(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort) Get a list of all entitlements in a repository. @@ -310,9 +310,10 @@ java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInte Boolean showTokens = false; // Boolean | Show entitlement token strings in results String query = "query_example"; // String | A search term for querying names of entitlements. Boolean active = false; // Boolean | If true, only include active tokens +Boolean excludeOtherUserTokens = false; // Boolean | If true, exclude user tokens that belong to other users 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. try { - List result = apiInstance.entitlementsList(owner, repo, page, pageSize, showTokens, query, active, sort); + List result = apiInstance.entitlementsList(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EntitlementsApi#entitlementsList"); @@ -331,6 +332,7 @@ Name | Type | Description | Notes **showTokens** | **Boolean**| Show entitlement token strings in results | [optional] [default to false] **query** | **String**| A search term for querying names of entitlements. | [optional] **active** | **Boolean**| If true, only include active tokens | [optional] [default to false] + **excludeOtherUserTokens** | **Boolean**| If true, exclude user tokens that belong to other users | [optional] [default to false] **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. | [optional] [default to name] ### Return type diff --git a/bindings/java/src/docs/GenericPackageUpload.md b/bindings/java/src/docs/GenericPackageUpload.md index a3ef4e66..5b4d5de2 100644 --- a/bindings/java/src/docs/GenericPackageUpload.md +++ b/bindings/java/src/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/GoPackageUpload.md b/bindings/java/src/docs/GoPackageUpload.md index 5880964e..d89095df 100644 --- a/bindings/java/src/docs/GoPackageUpload.md +++ b/bindings/java/src/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/HelmPackageUpload.md b/bindings/java/src/docs/HelmPackageUpload.md index d5aa64a4..eccfbe6e 100644 --- a/bindings/java/src/docs/HelmPackageUpload.md +++ b/bindings/java/src/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/HexPackageUpload.md b/bindings/java/src/docs/HexPackageUpload.md index 27d19f9d..17507743 100644 --- a/bindings/java/src/docs/HexPackageUpload.md +++ b/bindings/java/src/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/HuggingfacePackageUpload.md b/bindings/java/src/docs/HuggingfacePackageUpload.md index 78ed101a..dcd28faf 100644 --- a/bindings/java/src/docs/HuggingfacePackageUpload.md +++ b/bindings/java/src/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/InlineResponse2001.md b/bindings/java/src/docs/InlineResponse2001.md index bb05bd23..8cfcf4f4 100644 --- a/bindings/java/src/docs/InlineResponse2001.md +++ b/bindings/java/src/docs/InlineResponse2001.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**List<ConnectedRepository>**](ConnectedRepository.md) | | diff --git a/bindings/java/src/docs/InlineResponse2002.md b/bindings/java/src/docs/InlineResponse2002.md new file mode 100644 index 00000000..34a35c11 --- /dev/null +++ b/bindings/java/src/docs/InlineResponse2002.md @@ -0,0 +1,10 @@ + +# InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + + diff --git a/bindings/java/src/docs/LuarocksPackageUpload.md b/bindings/java/src/docs/LuarocksPackageUpload.md index bf06f216..9c360e6e 100644 --- a/bindings/java/src/docs/LuarocksPackageUpload.md +++ b/bindings/java/src/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/MavenPackageUpload.md b/bindings/java/src/docs/MavenPackageUpload.md index 69b02956..34588075 100644 --- a/bindings/java/src/docs/MavenPackageUpload.md +++ b/bindings/java/src/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -51,6 +52,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **packaging** | **String** | Artifact's Maven packaging type. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] diff --git a/bindings/java/src/docs/McpPackageUpload.md b/bindings/java/src/docs/McpPackageUpload.md index a7d02975..9e010661 100644 --- a/bindings/java/src/docs/McpPackageUpload.md +++ b/bindings/java/src/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/MemberTeams.md b/bindings/java/src/docs/MemberTeams.md new file mode 100644 index 00000000..01cd2eff --- /dev/null +++ b/bindings/java/src/docs/MemberTeams.md @@ -0,0 +1,20 @@ + +# MemberTeams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**role** | [**RoleEnum**](#RoleEnum) | | [optional] +**slug** | **String** | | [optional] + + + +## Enum: RoleEnum +Name | Value +---- | ----- +MANAGER | "Manager" +MEMBER | "Member" + + + diff --git a/bindings/java/src/docs/ModelPackage.md b/bindings/java/src/docs/ModelPackage.md index d1bc08f6..51737e06 100644 --- a/bindings/java/src/docs/ModelPackage.md +++ b/bindings/java/src/docs/ModelPackage.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/NpmPackageUpload.md b/bindings/java/src/docs/NpmPackageUpload.md index 4d800c2e..5e29bfd6 100644 --- a/bindings/java/src/docs/NpmPackageUpload.md +++ b/bindings/java/src/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/NugetPackageUpload.md b/bindings/java/src/docs/NugetPackageUpload.md index ba92ad43..98c7c520 100644 --- a/bindings/java/src/docs/NugetPackageUpload.md +++ b/bindings/java/src/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/OrganizationCustomDomainNestedRepo.md b/bindings/java/src/docs/OrganizationCustomDomainNestedRepo.md new file mode 100644 index 00000000..53feabbc --- /dev/null +++ b/bindings/java/src/docs/OrganizationCustomDomainNestedRepo.md @@ -0,0 +1,11 @@ + +# OrganizationCustomDomainNestedRepo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | A descriptive name for the repository. | [optional] +**slug** | **String** | The slug identifies the repository in URIs. | [optional] + + + diff --git a/bindings/java/src/docs/OrganizationCustomDomains.md b/bindings/java/src/docs/OrganizationCustomDomains.md new file mode 100644 index 00000000..077cd804 --- /dev/null +++ b/bindings/java/src/docs/OrganizationCustomDomains.md @@ -0,0 +1,27 @@ + +# OrganizationCustomDomains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backendKind** | **java.math.BigInteger** | The domain for a specific package format. | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**createdBy** | **java.math.BigInteger** | | [optional] +**dnsAliasValue** | **String** | The CNAME value to use to publish this domain publicly. | [optional] +**dnsCertName** | **String** | The CNAME name to create to allow us to generate a TLS cert. | [optional] +**dnsCertValue** | **String** | The CNAME value to use to allow us to generate a TLS cert. | [optional] +**domainType** | **java.math.BigInteger** | The type for the custom domain. | [optional] +**enabled** | **Boolean** | If checked, the domain is enabled. | [optional] +**host** | **String** | | [optional] +**namespace** | **java.math.BigInteger** | | [optional] +**primary** | **Boolean** | If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) | [optional] +**redirectRoot** | **Boolean** | If checked, the domain root redirects to the repository. | [optional] +**redirectRootUrl** | **String** | Where root requests should be redirected to if redirect_root is enabled. | [optional] +**repository** | [**OrganizationCustomDomainNestedRepo**](OrganizationCustomDomainNestedRepo.md) | | +**repositoryOnly** | **Boolean** | If checked, the domain applies to a specific repository only. | [optional] +**slugPerm** | **String** | | [optional] +**validated** | **Boolean** | If validated, the domain is ready for requests. | [optional] +**validatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + diff --git a/bindings/java/src/docs/OrganizationMembership.md b/bindings/java/src/docs/OrganizationMembership.md index 3b633f6a..4c9f73e5 100644 --- a/bindings/java/src/docs/OrganizationMembership.md +++ b/bindings/java/src/docs/OrganizationMembership.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **lastLoginAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **lastLoginMethod** | [**LastLoginMethodEnum**](#LastLoginMethodEnum) | | [optional] **role** | [**RoleEnum**](#RoleEnum) | | [optional] +**teams** | [**List<MemberTeams>**](MemberTeams.md) | | [optional] **user** | **String** | | [optional] **userId** | **String** | | [optional] **userName** | **String** | | [optional] diff --git a/bindings/java/src/docs/OrgsApi.md b/bindings/java/src/docs/OrgsApi.md index 8b2bc0ec..c42cd4cf 100644 --- a/bindings/java/src/docs/OrgsApi.md +++ b/bindings/java/src/docs/OrgsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgsCustomDomainsList**](OrgsApi.md#orgsCustomDomainsList) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. [**orgsDelete**](OrgsApi.md#orgsDelete) | **DELETE** /orgs/{org}/ | Delete the specified organization. [**orgsDenyPolicyCreate**](OrgsApi.md#orgsDenyPolicyCreate) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. [**orgsDenyPolicyDelete**](OrgsApi.md#orgsDenyPolicyDelete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -79,6 +80,70 @@ Method | HTTP request | Description [**orgsVulnerabilityPolicyViolationList**](OrgsApi.md#orgsVulnerabilityPolicyViolationList) | **GET** /orgs/{org}/vulnerability-policy-violation/ | List all current vulnerability policy violations for this Organization. + +# **orgsCustomDomainsList** +> List<OrganizationCustomDomains> orgsCustomDomainsList(org, page, pageSize) + +Get the details for all custom domains. + +Get the details for all custom domains. + +### 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 | +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.orgsCustomDomainsList(org, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsCustomDomainsList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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<OrganizationCustomDomains>**](OrganizationCustomDomains.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **orgsDelete** > orgsDelete(org) diff --git a/bindings/java/src/docs/P2PackageUpload.md b/bindings/java/src/docs/P2PackageUpload.md index 53344380..043cbd29 100644 --- a/bindings/java/src/docs/P2PackageUpload.md +++ b/bindings/java/src/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PackageCopy.md b/bindings/java/src/docs/PackageCopy.md index 50a52107..9c4dbe00 100644 --- a/bindings/java/src/docs/PackageCopy.md +++ b/bindings/java/src/docs/PackageCopy.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PackageMove.md b/bindings/java/src/docs/PackageMove.md index cf9742fe..9b23b35e 100644 --- a/bindings/java/src/docs/PackageMove.md +++ b/bindings/java/src/docs/PackageMove.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PackageQuarantine.md b/bindings/java/src/docs/PackageQuarantine.md index fd2001fb..c3fd4173 100644 --- a/bindings/java/src/docs/PackageQuarantine.md +++ b/bindings/java/src/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PackageResync.md b/bindings/java/src/docs/PackageResync.md index 3a3f3bc6..82330ee3 100644 --- a/bindings/java/src/docs/PackageResync.md +++ b/bindings/java/src/docs/PackageResync.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PackageStatus.md b/bindings/java/src/docs/PackageStatus.md index bb0ddd1f..065b2d34 100644 --- a/bindings/java/src/docs/PackageStatus.md +++ b/bindings/java/src/docs/PackageStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] diff --git a/bindings/java/src/docs/PackageTag.md b/bindings/java/src/docs/PackageTag.md index 4d8dced2..8a17f582 100644 --- a/bindings/java/src/docs/PackageTag.md +++ b/bindings/java/src/docs/PackageTag.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isImmutable** | **Boolean** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] @@ -51,6 +52,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/PythonPackageUpload.md b/bindings/java/src/docs/PythonPackageUpload.md index f82c9d18..9d6f064c 100644 --- a/bindings/java/src/docs/PythonPackageUpload.md +++ b/bindings/java/src/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/RawPackageUpload.md b/bindings/java/src/docs/RawPackageUpload.md index f2ab73fb..e8973f52 100644 --- a/bindings/java/src/docs/RawPackageUpload.md +++ b/bindings/java/src/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/RecycleBinApi.md b/bindings/java/src/docs/RecycleBinApi.md index 84730e10..b32b671b 100644 --- a/bindings/java/src/docs/RecycleBinApi.md +++ b/bindings/java/src/docs/RecycleBinApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**recycleBinAction**](RecycleBinApi.md#recycleBinAction) | **POST** /recycle-bin/{owner}/action/ | [**recycleBinList**](RecycleBinApi.md#recycleBinList) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -[**recycleBinRecycleBinAction**](RecycleBinApi.md#recycleBinRecycleBinAction) | **POST** /recycle-bin/{owner}/action/ | - -# **recycleBinList** -> List<RecycleBinPackage> recycleBinList(owner, page, pageSize, repository) + +# **recycleBinAction** +> PackageBulkActionResponse recycleBinAction(owner, data) -List soft-deleted packages in recycle bin -Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + +Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. ### Example ```java @@ -40,14 +40,12 @@ basic.setPassword("YOUR PASSWORD"); RecycleBinApi apiInstance = new RecycleBinApi(); String owner = "owner_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 repository = "repository_example"; // String | Filter packages by repository slug +PackageRecycleBin data = new PackageRecycleBin(); // PackageRecycleBin | try { - List result = apiInstance.recycleBinList(owner, page, pageSize, repository); + PackageBulkActionResponse result = apiInstance.recycleBinAction(owner, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling RecycleBinApi#recycleBinList"); + System.err.println("Exception when calling RecycleBinApi#recycleBinAction"); e.printStackTrace(); } ``` @@ -57,13 +55,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **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] - **repository** | **String**| Filter packages by repository slug | [optional] + **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] ### Return type -[**List<RecycleBinPackage>**](RecycleBinPackage.md) +[**PackageBulkActionResponse**](PackageBulkActionResponse.md) ### Authorization @@ -74,13 +70,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **recycleBinRecycleBinAction** -> PackageBulkActionResponse recycleBinRecycleBinAction(owner, data) - + +# **recycleBinList** +> List<RecycleBinPackage> recycleBinList(owner, page, pageSize, repository) +List soft-deleted packages in recycle bin -Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. +Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. ### Example ```java @@ -106,12 +102,14 @@ basic.setPassword("YOUR PASSWORD"); RecycleBinApi apiInstance = new RecycleBinApi(); String owner = "owner_example"; // String | -PackageRecycleBin data = new PackageRecycleBin(); // PackageRecycleBin | +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 repository = "repository_example"; // String | Filter packages by repository slug try { - PackageBulkActionResponse result = apiInstance.recycleBinRecycleBinAction(owner, data); + List result = apiInstance.recycleBinList(owner, page, pageSize, repository); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling RecycleBinApi#recycleBinRecycleBinAction"); + System.err.println("Exception when calling RecycleBinApi#recycleBinList"); e.printStackTrace(); } ``` @@ -121,11 +119,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | - **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] + **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] + **repository** | **String**| Filter packages by repository slug | [optional] ### Return type -[**PackageBulkActionResponse**](PackageBulkActionResponse.md) +[**List<RecycleBinPackage>**](RecycleBinPackage.md) ### Authorization diff --git a/bindings/java/src/docs/ReposApi.md b/bindings/java/src/docs/ReposApi.md index 465500cc..150d5194 100644 --- a/bindings/java/src/docs/ReposApi.md +++ b/bindings/java/src/docs/ReposApi.md @@ -7,11 +7,20 @@ Method | HTTP request | Description [**apiReposGeoipStatus**](ReposApi.md#apiReposGeoipStatus) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. [**repoRetentionPartialUpdate**](ReposApi.md#repoRetentionPartialUpdate) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. [**repoRetentionRead**](ReposApi.md#repoRetentionRead) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +[**reposConnectedCreate**](ReposApi.md#reposConnectedCreate) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +[**reposConnectedDelete**](ReposApi.md#reposConnectedDelete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +[**reposConnectedList**](ReposApi.md#reposConnectedList) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +[**reposConnectedPartialUpdate**](ReposApi.md#reposConnectedPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +[**reposConnectedRead**](ReposApi.md#reposConnectedRead) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +[**reposConnectedUpdate**](ReposApi.md#reposConnectedUpdate) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. [**reposCreate**](ReposApi.md#reposCreate) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. [**reposDelete**](ReposApi.md#reposDelete) | **DELETE** /repos/{owner}/{identifier}/ | [**reposEcdsaCreate**](ReposApi.md#reposEcdsaCreate) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. [**reposEcdsaList**](ReposApi.md#reposEcdsaList) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. [**reposEcdsaRegenerate**](ReposApi.md#reposEcdsaRegenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +[**reposEd25519Create**](ReposApi.md#reposEd25519Create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +[**reposEd25519List**](ReposApi.md#reposEd25519List) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +[**reposEd25519Regenerate**](ReposApi.md#reposEd25519Regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. [**reposGeoipDisable**](ReposApi.md#reposGeoipDisable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. [**reposGeoipEnable**](ReposApi.md#reposGeoipEnable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. [**reposGeoipPartialUpdate**](ReposApi.md#reposGeoipPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -339,6 +348,395 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposConnectedCreate** +> ConnectedRepository reposConnectedCreate(owner, identifier, data) + +Create a connected repository for this repository. + +Create a connected repository 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 | +ConnectedRepositoryRequest data = new ConnectedRepositoryRequest(); // ConnectedRepositoryRequest | +try { + ConnectedRepository result = apiInstance.reposConnectedCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposConnectedDelete** +> reposConnectedDelete(owner, identifier, slugPerm) + +Delete a connected repository for this repository. + +Delete a connected repository 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.reposConnectedDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedDelete"); + 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 + + +# **reposConnectedList** +> InlineResponse2001 reposConnectedList(owner, identifier, page, pageSize) + +List connected repositories for this repository. + +List connected repositories 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 { + InlineResponse2001 result = apiInstance.reposConnectedList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedList"); + 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 + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposConnectedPartialUpdate** +> ConnectedRepository reposConnectedPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a connected repository for this repository. + +Partially update a connected repository 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 | +ConnectedRepositoryRequestPatch data = new ConnectedRepositoryRequestPatch(); // ConnectedRepositoryRequestPatch | +try { + ConnectedRepository result = apiInstance.reposConnectedPartialUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**ConnectedRepositoryRequestPatch**](ConnectedRepositoryRequestPatch.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposConnectedRead** +> ConnectedRepository reposConnectedRead(owner, identifier, slugPerm) + +Retrieve a connected repository for this repository. + +Retrieve a connected repository 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 { + ConnectedRepository result = apiInstance.reposConnectedRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposConnectedUpdate** +> ConnectedRepository reposConnectedUpdate(owner, identifier, slugPerm, data) + +Update a connected repository for this repository. + +Update a connected repository 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 | +ConnectedRepositoryRequest data = new ConnectedRepositoryRequest(); // ConnectedRepositoryRequest | +try { + ConnectedRepository result = apiInstance.reposConnectedUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposConnectedUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json @@ -412,7 +810,7 @@ Name | Type | Description | Notes -Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. +Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. ### Example ```java @@ -650,6 +1048,194 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposEd25519Create** +> RepositoryEd25519Key reposEd25519Create(owner, identifier, data) + +Set the active Ed25519 key for the Repository. + +Set the active Ed25519 key for the 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 | +RepositoryEd25519KeyCreate data = new RepositoryEd25519KeyCreate(); // RepositoryEd25519KeyCreate | +try { + RepositoryEd25519Key result = apiInstance.reposEd25519Create(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposEd25519Create"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**RepositoryEd25519KeyCreate**](RepositoryEd25519KeyCreate.md)| | [optional] + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposEd25519List** +> RepositoryEd25519Key reposEd25519List(owner, identifier) + +Retrieve the active Ed25519 key for the Repository. + +Retrieve the active Ed25519 key for the 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 | +try { + RepositoryEd25519Key result = apiInstance.reposEd25519List(owner, identifier); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposEd25519List"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposEd25519Regenerate** +> RepositoryEd25519Key reposEd25519Regenerate(owner, identifier) + +Regenerate Ed25519 Key for the Repository. + +Regenerate Ed25519 Key for the 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 | +try { + RepositoryEd25519Key result = apiInstance.reposEd25519Regenerate(owner, identifier); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposEd25519Regenerate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/Repository.md b/bindings/java/src/docs/Repository.md index 9558b565..a713096a 100644 --- a/bindings/java/src/docs/Repository.md +++ b/bindings/java/src/docs/Repository.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **name** | **String** | A descriptive name for the repository. | **namespace** | **String** | Namespace to which this repository belongs. | [optional] **namespaceUrl** | **String** | API endpoint where data about this namespace can be retrieved. | [optional] +**npmUpstreamTagsTakePrecedence** | **Boolean** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nugetNativeSigningEnabled** | **Boolean** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **numDownloads** | **java.math.BigInteger** | The number of downloads for packages in the repository. | [optional] **numPolicyViolatedPackages** | **java.math.BigInteger** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/java/src/docs/RepositoryCreate.md b/bindings/java/src/docs/RepositoryCreate.md index 241a95bf..3f19a53e 100644 --- a/bindings/java/src/docs/RepositoryCreate.md +++ b/bindings/java/src/docs/RepositoryCreate.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **name** | **String** | A descriptive name for the repository. | **namespace** | **String** | Namespace to which this repository belongs. | [optional] **namespaceUrl** | **String** | API endpoint where data about this namespace can be retrieved. | [optional] +**npmUpstreamTagsTakePrecedence** | **Boolean** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nugetNativeSigningEnabled** | **Boolean** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **numDownloads** | **java.math.BigInteger** | The number of downloads for packages in the repository. | [optional] **numPolicyViolatedPackages** | **java.math.BigInteger** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/java/src/docs/RepositoryCreateRequest.md b/bindings/java/src/docs/RepositoryCreateRequest.md index 3a314958..b7aa85bb 100644 --- a/bindings/java/src/docs/RepositoryCreateRequest.md +++ b/bindings/java/src/docs/RepositoryCreateRequest.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **moveOwn** | **Boolean** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **movePackages** | [**MovePackagesEnum**](#MovePackagesEnum) | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] **name** | **String** | A descriptive name for the repository. | +**npmUpstreamTagsTakePrecedence** | **Boolean** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nugetNativeSigningEnabled** | **Boolean** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **openSourceLicense** | **String** | The SPDX identifier of the open source license. | [optional] **openSourceProjectUrl** | **String** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/java/src/docs/RepositoryEd25519Key.md b/bindings/java/src/docs/RepositoryEd25519Key.md new file mode 100644 index 00000000..ada03fb6 --- /dev/null +++ b/bindings/java/src/docs/RepositoryEd25519Key.md @@ -0,0 +1,15 @@ + +# RepositoryEd25519Key + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | If selected this is the active key for this repository. | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**_default** | **Boolean** | If selected this is the default key for this repository. | [optional] +**fingerprint** | **String** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] +**fingerprintShort** | **String** | | [optional] +**publicKey** | **String** | The public key given to repository users. | [optional] + + + diff --git a/bindings/java/src/docs/RepositoryEd25519KeyCreate.md b/bindings/java/src/docs/RepositoryEd25519KeyCreate.md new file mode 100644 index 00000000..cf092f4c --- /dev/null +++ b/bindings/java/src/docs/RepositoryEd25519KeyCreate.md @@ -0,0 +1,11 @@ + +# RepositoryEd25519KeyCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ed25519Passphrase** | **String** | The Ed25519 passphrase used for signing. | [optional] +**ed25519PrivateKey** | **String** | The Ed25519 private key. | + + + diff --git a/bindings/java/src/docs/RepositoryRequestPatch.md b/bindings/java/src/docs/RepositoryRequestPatch.md index e6dc2951..3f49b728 100644 --- a/bindings/java/src/docs/RepositoryRequestPatch.md +++ b/bindings/java/src/docs/RepositoryRequestPatch.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **moveOwn** | **Boolean** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **movePackages** | [**MovePackagesEnum**](#MovePackagesEnum) | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] **name** | **String** | A descriptive name for the repository. | [optional] +**npmUpstreamTagsTakePrecedence** | **Boolean** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nugetNativeSigningEnabled** | **Boolean** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **openSourceLicense** | **String** | The SPDX identifier of the open source license. | [optional] **openSourceProjectUrl** | **String** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/java/src/docs/RpmPackageUpload.md b/bindings/java/src/docs/RpmPackageUpload.md index 8ce3c74b..b0aafae1 100644 --- a/bindings/java/src/docs/RpmPackageUpload.md +++ b/bindings/java/src/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/RubyPackageUpload.md b/bindings/java/src/docs/RubyPackageUpload.md index 2ba37c8a..b26b3155 100644 --- a/bindings/java/src/docs/RubyPackageUpload.md +++ b/bindings/java/src/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/ServiceTeams.md b/bindings/java/src/docs/ServiceTeams.md index 01ed225c..165a063a 100644 --- a/bindings/java/src/docs/ServiceTeams.md +++ b/bindings/java/src/docs/ServiceTeams.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the team | [optional] **role** | [**RoleEnum**](#RoleEnum) | The team role associated with the service | [optional] **slug** | **String** | The teams associated with the service | diff --git a/bindings/java/src/docs/SwiftPackageUpload.md b/bindings/java/src/docs/SwiftPackageUpload.md index 453b8d8c..bf5b425a 100644 --- a/bindings/java/src/docs/SwiftPackageUpload.md +++ b/bindings/java/src/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -52,6 +53,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/TerraformPackageUpload.md b/bindings/java/src/docs/TerraformPackageUpload.md index f18714d7..8a3611a7 100644 --- a/bindings/java/src/docs/TerraformPackageUpload.md +++ b/bindings/java/src/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/docs/UserApi.md b/bindings/java/src/docs/UserApi.md index 9b042955..c9459b25 100644 --- a/bindings/java/src/docs/UserApi.md +++ b/bindings/java/src/docs/UserApi.md @@ -179,7 +179,7 @@ This endpoint does not need any parameter. # **userTokensList** -> InlineResponse2001 userTokensList(page, pageSize) +> InlineResponse2002 userTokensList(page, pageSize) Retrieve the API key assigned to the user that is currently authenticated. @@ -211,7 +211,7 @@ UserApi apiInstance = new UserApi(); java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - InlineResponse2001 result = apiInstance.userTokensList(page, pageSize); + InlineResponse2002 result = apiInstance.userTokensList(page, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#userTokensList"); @@ -228,7 +228,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization diff --git a/bindings/java/src/docs/VagrantPackageUpload.md b/bindings/java/src/docs/VagrantPackageUpload.md index 93be02a5..0a285ca0 100644 --- a/bindings/java/src/docs/VagrantPackageUpload.md +++ b/bindings/java/src/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **provider** | **String** | The virtual machine provider for the box. | diff --git a/bindings/java/src/docs/VsxPackageUpload.md b/bindings/java/src/docs/VsxPackageUpload.md index 60ca33dc..7d3792fc 100644 --- a/bindings/java/src/docs/VsxPackageUpload.md +++ b/bindings/java/src/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **isCopyable** | **Boolean** | | [optional] **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **numFiles** | **java.math.BigInteger** | | [optional] **originRepository** | **String** | | [optional] **originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] **packageType** | **java.math.BigInteger** | The type of package contents. | [optional] **policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] **rawLicense** | **String** | The raw license string. | [optional] diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 202e13dc..40a18675 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.26 + 2.0.27 https://api.cloudsmith.io/?format=openapi Cloudsmith API diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java index 5f3d325c..77882651 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java @@ -87,7 +87,7 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/2.0.26/java"); + setUserAgent("Swagger-Codegen/2.0.27/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java index 43401033..feee9882 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 @@ -320,6 +320,15 @@ 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/EntitlementsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java index dae7eab4..9c6e1485 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java @@ -678,13 +678,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param showTokens Show entitlement token strings in results (optional, default to false) * @param query A search term for querying names of entitlements. (optional) * @param active If true, only include active tokens (optional, default to false) + * @param excludeOtherUserTokens If true, exclude user tokens that belong to other users (optional, default to false) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (optional, default to name) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call entitlementsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call entitlementsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, Boolean excludeOtherUserTokens, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -704,6 +705,8 @@ public com.squareup.okhttp.Call entitlementsListCall(String owner, String repo, localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); if (active != null) localVarQueryParams.addAll(apiClient.parameterToPair("active", active)); + if (excludeOtherUserTokens != null) + localVarQueryParams.addAll(apiClient.parameterToPair("exclude_other_user_tokens", excludeOtherUserTokens)); if (sort != null) localVarQueryParams.addAll(apiClient.parameterToPair("sort", sort)); @@ -743,18 +746,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, Boolean excludeOtherUserTokens, 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, showTokens, query, active, sort }; - Method method = this.getClass().getMethod("entitlementsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, Boolean.class, String.class, Boolean.class, String.class); + Object[] parameterValues = { owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort }; + Method method = this.getClass().getMethod("entitlementsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, Boolean.class, String.class, Boolean.class, Boolean.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = entitlementsListCall(owner, repo, page, pageSize, showTokens, query, active, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = entitlementsListCall(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort, progressListener, progressRequestListener); return call; } else { @@ -780,12 +783,13 @@ private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner * @param showTokens Show entitlement token strings in results (optional, default to false) * @param query A search term for querying names of entitlements. (optional) * @param active If true, only include active tokens (optional, default to false) + * @param excludeOtherUserTokens If true, exclude user tokens that belong to other users (optional, default to false) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (optional, default to name) * @return List<RepositoryToken> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List entitlementsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, String sort) throws ApiException { - ApiResponse> resp = entitlementsListWithHttpInfo(owner, repo, page, pageSize, showTokens, query, active, sort); + public List entitlementsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, Boolean excludeOtherUserTokens, String sort) throws ApiException { + ApiResponse> resp = entitlementsListWithHttpInfo(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort); return resp.getData(); } @@ -799,12 +803,13 @@ public List entitlementsList(String owner, String repo, java.ma * @param showTokens Show entitlement token strings in results (optional, default to false) * @param query A search term for querying names of entitlements. (optional) * @param active If true, only include active tokens (optional, default to false) + * @param excludeOtherUserTokens If true, exclude user tokens that belong to other users (optional, default to false) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (optional, default to name) * @return ApiResponse<List<RepositoryToken>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> entitlementsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, String sort) throws ApiException { - com.squareup.okhttp.Call call = entitlementsListValidateBeforeCall(owner, repo, page, pageSize, showTokens, query, active, sort, null, null); + public ApiResponse> entitlementsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, Boolean excludeOtherUserTokens, String sort) throws ApiException { + com.squareup.okhttp.Call call = entitlementsListValidateBeforeCall(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort, null, null); Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -819,12 +824,13 @@ public ApiResponse> entitlementsListWithHttpInfo( @NotNull * @param showTokens Show entitlement token strings in results (optional, default to false) * @param query A search term for querying names of entitlements. (optional) * @param active If true, only include active tokens (optional, default to false) + * @param excludeOtherUserTokens If true, exclude user tokens that belong to other users (optional, default to false) * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (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 entitlementsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, String sort, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call entitlementsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, Boolean showTokens, String query, Boolean active, Boolean excludeOtherUserTokens, String sort, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -845,7 +851,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = entitlementsListValidateBeforeCall(owner, repo, page, pageSize, showTokens, query, active, sort, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = entitlementsListValidateBeforeCall(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java index f52f194e..a0cc57e4 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 @@ -39,6 +39,7 @@ import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; import io.cloudsmith.api.models.Organization; +import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; import io.cloudsmith.api.models.OrganizationGroupSyncRequest; import io.cloudsmith.api.models.OrganizationGroupSyncStatus; @@ -111,6 +112,158 @@ public void setHeadersOverrides(Map headers) { this.headers = headers; } + /** + * Build call for orgsCustomDomainsList + * @param org (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 orgsCustomDomainsListCall(String org, 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}/custom-domains/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsCustomDomainsListValidateBeforeCall(String org, 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, page, pageSize }; + Method method = this.getClass().getMethod("orgsCustomDomainsListWithHttpInfo", 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 = orgsCustomDomainsListCall(org, 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()); + } + + } + + /** + * Get the details for all custom domains. + * Get the details for all custom domains. + * @param org (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return List<OrganizationCustomDomains> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List orgsCustomDomainsList(String org, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = orgsCustomDomainsListWithHttpInfo(org, page, pageSize); + return resp.getData(); + } + + /** + * Get the details for all custom domains. + * Get the details for all custom domains. + * @param org (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<OrganizationCustomDomains>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> orgsCustomDomainsListWithHttpInfo( @NotNull String org, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = orgsCustomDomainsListValidateBeforeCall(org, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the details for all custom domains. (asynchronously) + * Get the details for all custom domains. + * @param org (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 orgsCustomDomainsListAsync(String org, 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 = orgsCustomDomainsListValidateBeforeCall(org, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgsDelete * @param org (required) diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RecycleBinApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RecycleBinApi.java index c64a4a63..30f5f9c9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RecycleBinApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RecycleBinApi.java @@ -72,31 +72,23 @@ public void setHeadersOverrides(Map headers) { } /** - * Build call for recycleBinList + * Build call for recycleBinAction * @param owner (required) - * @param page A page number within the paginated result set. (optional) - * @param pageSize Number of results to return per page. (optional) - * @param repository Filter packages by repository slug (optional) + * @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 recycleBinListCall(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call recycleBinActionCall(String owner, PackageRecycleBin data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; // create path and map variables - String localVarPath = "/recycle-bin/{owner}/" + String localVarPath = "/recycle-bin/{owner}/action/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); - if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); - if (repository != null) - localVarQueryParams.addAll(apiClient.parameterToPair("repository", repository)); Map localVarHeaderParams = new HashMap(); @@ -130,22 +122,22 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch if (headers != null) { localVarHeaderParams.putAll(headers); } - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call recycleBinListValidateBeforeCall(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call recycleBinActionValidateBeforeCall(String owner, PackageRecycleBin data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, page, pageSize, repository }; - Method method = this.getClass().getMethod("recycleBinListWithHttpInfo", String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class); + Object[] parameterValues = { owner, data }; + Method method = this.getClass().getMethod("recycleBinActionWithHttpInfo", String.class, PackageRecycleBin.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = recycleBinListCall(owner, page, pageSize, repository, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = recycleBinActionCall(owner, data, progressListener, progressRequestListener); return call; } else { @@ -162,48 +154,42 @@ private com.squareup.okhttp.Call recycleBinListValidateBeforeCall(String owner, } /** - * List soft-deleted packages in recycle bin - * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + * + * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. * @param owner (required) - * @param page A page number within the paginated result set. (optional) - * @param pageSize Number of results to return per page. (optional) - * @param repository Filter packages by repository slug (optional) - * @return List<RecycleBinPackage> + * @param data (optional) + * @return PackageBulkActionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List recycleBinList(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository) throws ApiException { - ApiResponse> resp = recycleBinListWithHttpInfo(owner, page, pageSize, repository); + public PackageBulkActionResponse recycleBinAction(String owner, PackageRecycleBin data) throws ApiException { + ApiResponse resp = recycleBinActionWithHttpInfo(owner, data); return resp.getData(); } /** - * List soft-deleted packages in recycle bin - * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + * + * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. * @param owner (required) - * @param page A page number within the paginated result set. (optional) - * @param pageSize Number of results to return per page. (optional) - * @param repository Filter packages by repository slug (optional) - * @return ApiResponse<List<RecycleBinPackage>> + * @param data (optional) + * @return ApiResponse<PackageBulkActionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> recycleBinListWithHttpInfo( @NotNull String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository) throws ApiException { - com.squareup.okhttp.Call call = recycleBinListValidateBeforeCall(owner, page, pageSize, repository, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse recycleBinActionWithHttpInfo( @NotNull String owner, PackageRecycleBin data) throws ApiException { + com.squareup.okhttp.Call call = recycleBinActionValidateBeforeCall(owner, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List soft-deleted packages in recycle bin (asynchronously) - * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + * (asynchronously) + * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. * @param owner (required) - * @param page A page number within the paginated result set. (optional) - * @param pageSize Number of results to return per page. (optional) - * @param repository Filter packages by repository slug (optional) + * @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 recycleBinListAsync(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call recycleBinActionAsync(String owner, PackageRecycleBin data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -224,29 +210,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = recycleBinListValidateBeforeCall(owner, page, pageSize, repository, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = recycleBinActionValidateBeforeCall(owner, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for recycleBinRecycleBinAction + * Build call for recycleBinList * @param owner (required) - * @param data (optional) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param repository Filter packages by repository slug (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 recycleBinRecycleBinActionCall(String owner, PackageRecycleBin data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = data; + public com.squareup.okhttp.Call recycleBinListCall(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/recycle-bin/{owner}/action/" + String localVarPath = "/recycle-bin/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + if (repository != null) + localVarQueryParams.addAll(apiClient.parameterToPair("repository", repository)); Map localVarHeaderParams = new HashMap(); @@ -280,22 +274,22 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch if (headers != null) { localVarHeaderParams.putAll(headers); } - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call recycleBinRecycleBinActionValidateBeforeCall(String owner, PackageRecycleBin data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call recycleBinListValidateBeforeCall(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, data }; - Method method = this.getClass().getMethod("recycleBinRecycleBinActionWithHttpInfo", String.class, PackageRecycleBin.class); + Object[] parameterValues = { owner, page, pageSize, repository }; + Method method = this.getClass().getMethod("recycleBinListWithHttpInfo", String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = recycleBinRecycleBinActionCall(owner, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = recycleBinListCall(owner, page, pageSize, repository, progressListener, progressRequestListener); return call; } else { @@ -312,42 +306,48 @@ private com.squareup.okhttp.Call recycleBinRecycleBinActionValidateBeforeCall(St } /** - * - * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + * List soft-deleted packages in recycle bin + * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. * @param owner (required) - * @param data (optional) - * @return PackageBulkActionResponse + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param repository Filter packages by repository slug (optional) + * @return List<RecycleBinPackage> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PackageBulkActionResponse recycleBinRecycleBinAction(String owner, PackageRecycleBin data) throws ApiException { - ApiResponse resp = recycleBinRecycleBinActionWithHttpInfo(owner, data); + public List recycleBinList(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository) throws ApiException { + ApiResponse> resp = recycleBinListWithHttpInfo(owner, page, pageSize, repository); return resp.getData(); } /** - * - * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + * List soft-deleted packages in recycle bin + * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. * @param owner (required) - * @param data (optional) - * @return ApiResponse<PackageBulkActionResponse> + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param repository Filter packages by repository slug (optional) + * @return ApiResponse<List<RecycleBinPackage>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse recycleBinRecycleBinActionWithHttpInfo( @NotNull String owner, PackageRecycleBin data) throws ApiException { - com.squareup.okhttp.Call call = recycleBinRecycleBinActionValidateBeforeCall(owner, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse> recycleBinListWithHttpInfo( @NotNull String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository) throws ApiException { + com.squareup.okhttp.Call call = recycleBinListValidateBeforeCall(owner, page, pageSize, repository, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * (asynchronously) - * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + * List soft-deleted packages in recycle bin (asynchronously) + * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. * @param owner (required) - * @param data (optional) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param repository Filter packages by repository slug (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 recycleBinRecycleBinActionAsync(String owner, PackageRecycleBin data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call recycleBinListAsync(String owner, java.math.BigInteger page, java.math.BigInteger pageSize, String repository, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -368,8 +368,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = recycleBinRecycleBinActionValidateBeforeCall(owner, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = recycleBinListValidateBeforeCall(owner, page, pageSize, repository, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java index b4e045cb..3026ad7e 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 @@ -48,6 +48,9 @@ import io.cloudsmith.api.models.CondaUpstream; import io.cloudsmith.api.models.CondaUpstreamRequest; import io.cloudsmith.api.models.CondaUpstreamRequestPatch; +import io.cloudsmith.api.models.ConnectedRepository; +import io.cloudsmith.api.models.ConnectedRepositoryRequest; +import io.cloudsmith.api.models.ConnectedRepositoryRequestPatch; import io.cloudsmith.api.models.CranUpstream; import io.cloudsmith.api.models.CranUpstreamRequest; import io.cloudsmith.api.models.CranUpstreamRequestPatch; @@ -76,6 +79,7 @@ import io.cloudsmith.api.models.HuggingfaceUpstream; import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; @@ -93,6 +97,8 @@ import io.cloudsmith.api.models.RepositoryCreateRequest; import io.cloudsmith.api.models.RepositoryEcdsaKey; import io.cloudsmith.api.models.RepositoryEcdsaKeyCreate; +import io.cloudsmith.api.models.RepositoryEd25519Key; +import io.cloudsmith.api.models.RepositoryEd25519KeyCreate; import io.cloudsmith.api.models.RepositoryGeoIpRules; import io.cloudsmith.api.models.RepositoryGeoIpRulesRequest; import io.cloudsmith.api.models.RepositoryGeoIpRulesRequestPatch; @@ -592,6 +598,916 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for reposConnectedCreate + * @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 reposConnectedCreateCall(String owner, String identifier, ConnectedRepositoryRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/connected/" + .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 reposConnectedCreateValidateBeforeCall(String owner, String identifier, ConnectedRepositoryRequest 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("reposConnectedCreateWithHttpInfo", String.class, String.class, ConnectedRepositoryRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposConnectedCreateCall(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 connected repository for this repository. + * Create a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ConnectedRepository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ConnectedRepository reposConnectedCreate(String owner, String identifier, ConnectedRepositoryRequest data) throws ApiException { + ApiResponse resp = reposConnectedCreateWithHttpInfo(owner, identifier, data); + return resp.getData(); + } + + /** + * Create a connected repository for this repository. + * Create a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ApiResponse<ConnectedRepository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposConnectedCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, ConnectedRepositoryRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a connected repository for this repository. (asynchronously) + * Create a connected repository 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 reposConnectedCreateAsync(String owner, String identifier, ConnectedRepositoryRequest 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 = reposConnectedCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposConnectedDelete + * @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 reposConnectedDeleteCall(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}/connected/{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 reposConnectedDeleteValidateBeforeCall(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("reposConnectedDeleteWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposConnectedDeleteCall(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 connected repository for this repository. + * Delete a connected repository 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 reposConnectedDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposConnectedDeleteWithHttpInfo(owner, identifier, slugPerm); + } + + /** + * Delete a connected repository for this repository. + * Delete a connected repository 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 reposConnectedDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + return apiClient.execute(call); + } + + /** + * Delete a connected repository for this repository. (asynchronously) + * Delete a connected repository 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 reposConnectedDeleteAsync(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 = reposConnectedDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposConnectedList + * @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 reposConnectedListCall(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}/connected/" + .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 reposConnectedListValidateBeforeCall(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("reposConnectedListWithHttpInfo", 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 = reposConnectedListCall(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 connected repositories for this repository. + * List connected repositories 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 InlineResponse2001 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public InlineResponse2001 reposConnectedList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse resp = reposConnectedListWithHttpInfo(owner, identifier, page, pageSize); + return resp.getData(); + } + + /** + * List connected repositories for this repository. + * List connected repositories 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<InlineResponse2001> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposConnectedListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List connected repositories for this repository. (asynchronously) + * List connected repositories 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 reposConnectedListAsync(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 = reposConnectedListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposConnectedPartialUpdate + * @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 reposConnectedPartialUpdateCall(String owner, String identifier, String slugPerm, ConnectedRepositoryRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/connected/{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 reposConnectedPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ConnectedRepositoryRequestPatch 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("reposConnectedPartialUpdateWithHttpInfo", String.class, String.class, String.class, ConnectedRepositoryRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposConnectedPartialUpdateCall(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 connected repository for this repository. + * Partially update a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ConnectedRepository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ConnectedRepository reposConnectedPartialUpdate(String owner, String identifier, String slugPerm, ConnectedRepositoryRequestPatch data) throws ApiException { + ApiResponse resp = reposConnectedPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Partially update a connected repository for this repository. + * Partially update a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<ConnectedRepository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposConnectedPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ConnectedRepositoryRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Partially update a connected repository for this repository. (asynchronously) + * Partially update a connected repository 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 reposConnectedPartialUpdateAsync(String owner, String identifier, String slugPerm, ConnectedRepositoryRequestPatch 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 = reposConnectedPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposConnectedRead + * @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 reposConnectedReadCall(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}/connected/{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 reposConnectedReadValidateBeforeCall(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("reposConnectedReadWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposConnectedReadCall(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 connected repository for this repository. + * Retrieve a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ConnectedRepository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ConnectedRepository reposConnectedRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposConnectedReadWithHttpInfo(owner, identifier, slugPerm); + return resp.getData(); + } + + /** + * Retrieve a connected repository for this repository. + * Retrieve a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<ConnectedRepository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposConnectedReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a connected repository for this repository. (asynchronously) + * Retrieve a connected repository 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 reposConnectedReadAsync(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 = reposConnectedReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposConnectedUpdate + * @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 reposConnectedUpdateCall(String owner, String identifier, String slugPerm, ConnectedRepositoryRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/connected/{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 reposConnectedUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ConnectedRepositoryRequest 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("reposConnectedUpdateWithHttpInfo", String.class, String.class, String.class, ConnectedRepositoryRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposConnectedUpdateCall(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 connected repository for this repository. + * Update a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ConnectedRepository + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ConnectedRepository reposConnectedUpdate(String owner, String identifier, String slugPerm, ConnectedRepositoryRequest data) throws ApiException { + ApiResponse resp = reposConnectedUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Update a connected repository for this repository. + * Update a connected repository for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<ConnectedRepository> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposConnectedUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ConnectedRepositoryRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposConnectedUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update a connected repository for this repository. (asynchronously) + * Update a connected repository 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 reposConnectedUpdateAsync(String owner, String identifier, String slugPerm, ConnectedRepositoryRequest 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 = reposConnectedUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for reposCreate * @param owner (required) @@ -601,12 +1517,447 @@ 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 reposCreateCall(String owner, RepositoryCreateRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = data; + public com.squareup.okhttp.Call reposCreateCall(String owner, RepositoryCreateRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + 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 reposCreateValidateBeforeCall(String owner, RepositoryCreateRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, data }; + Method method = this.getClass().getMethod("reposCreateWithHttpInfo", String.class, RepositoryCreateRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposCreateCall(owner, 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 repository in a given namespace. + * Create a new repository in a given namespace. + * @param owner (required) + * @param data (optional) + * @return RepositoryCreate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public RepositoryCreate reposCreate(String owner, RepositoryCreateRequest data) throws ApiException { + ApiResponse resp = reposCreateWithHttpInfo(owner, data); + return resp.getData(); + } + + /** + * Create a new repository in a given namespace. + * Create a new repository in a given namespace. + * @param owner (required) + * @param data (optional) + * @return ApiResponse<RepositoryCreate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposCreateWithHttpInfo( @NotNull String owner, RepositoryCreateRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposCreateValidateBeforeCall(owner, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a new repository in a given namespace. (asynchronously) + * Create a new repository in a given namespace. + * @param owner (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 reposCreateAsync(String owner, RepositoryCreateRequest 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 = reposCreateValidateBeforeCall(owner, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposDelete + * @param owner (required) + * @param identifier (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 reposDeleteCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + 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 reposDeleteValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier }; + Method method = this.getClass().getMethod("reposDeleteWithHttpInfo", String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposDeleteCall(owner, identifier, 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 repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * @param owner (required) + * @param identifier (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void reposDelete(String owner, String identifier) throws ApiException { + reposDeleteWithHttpInfo(owner, identifier); + } + + /** + * + * Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * @param owner (required) + * @param identifier (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { + com.squareup.okhttp.Call call = reposDeleteValidateBeforeCall(owner, identifier, null, null); + return apiClient.execute(call); + } + + /** + * (asynchronously) + * Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * @param owner (required) + * @param identifier (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 reposDeleteAsync(String owner, String identifier, 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 = reposDeleteValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposEcdsaCreate + * @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 reposEcdsaCreateCall(String owner, String identifier, RepositoryEcdsaKeyCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/ecdsa/" + .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 reposEcdsaCreateValidateBeforeCall(String owner, String identifier, RepositoryEcdsaKeyCreate 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("reposEcdsaCreateWithHttpInfo", String.class, String.class, RepositoryEcdsaKeyCreate.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposEcdsaCreateCall(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()); + } + + } + + /** + * Set the active ECDSA key for the Repository. + * Set the active ECDSA key for the Repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return RepositoryEcdsaKey + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public RepositoryEcdsaKey reposEcdsaCreate(String owner, String identifier, RepositoryEcdsaKeyCreate data) throws ApiException { + ApiResponse resp = reposEcdsaCreateWithHttpInfo(owner, identifier, data); + return resp.getData(); + } + + /** + * Set the active ECDSA key for the Repository. + * Set the active ECDSA key for the Repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ApiResponse<RepositoryEcdsaKey> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposEcdsaCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, RepositoryEcdsaKeyCreate data) throws ApiException { + com.squareup.okhttp.Call call = reposEcdsaCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Set the active ECDSA key for the Repository. (asynchronously) + * Set the active ECDSA key for the 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 reposEcdsaCreateAsync(String owner, String identifier, RepositoryEcdsaKeyCreate 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 = reposEcdsaCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposEcdsaList + * @param owner (required) + * @param identifier (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 reposEcdsaListCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/" - .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); + String localVarPath = "/repos/{owner}/{identifier}/ecdsa/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -643,22 +1994,22 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch if (headers != null) { localVarHeaderParams.putAll(headers); } - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposCreateValidateBeforeCall(String owner, RepositoryCreateRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposEcdsaListValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - Object[] parameterValues = { owner, data }; - Method method = this.getClass().getMethod("reposCreateWithHttpInfo", String.class, RepositoryCreateRequest.class); + Object[] parameterValues = { owner, identifier }; + Method method = this.getClass().getMethod("reposEcdsaListWithHttpInfo", String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposCreateCall(owner, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposEcdsaListCall(owner, identifier, progressListener, progressRequestListener); return call; } else { @@ -675,42 +2026,42 @@ private com.squareup.okhttp.Call reposCreateValidateBeforeCall(String owner, Rep } /** - * Create a new repository in a given namespace. - * Create a new repository in a given namespace. + * Retrieve the active ECDSA key for the Repository. + * Retrieve the active ECDSA key for the Repository. * @param owner (required) - * @param data (optional) - * @return RepositoryCreate + * @param identifier (required) + * @return RepositoryEcdsaKey * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RepositoryCreate reposCreate(String owner, RepositoryCreateRequest data) throws ApiException { - ApiResponse resp = reposCreateWithHttpInfo(owner, data); + public RepositoryEcdsaKey reposEcdsaList(String owner, String identifier) throws ApiException { + ApiResponse resp = reposEcdsaListWithHttpInfo(owner, identifier); return resp.getData(); } /** - * Create a new repository in a given namespace. - * Create a new repository in a given namespace. + * Retrieve the active ECDSA key for the Repository. + * Retrieve the active ECDSA key for the Repository. * @param owner (required) - * @param data (optional) - * @return ApiResponse<RepositoryCreate> + * @param identifier (required) + * @return ApiResponse<RepositoryEcdsaKey> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposCreateWithHttpInfo( @NotNull String owner, RepositoryCreateRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposCreateValidateBeforeCall(owner, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposEcdsaListWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { + com.squareup.okhttp.Call call = reposEcdsaListValidateBeforeCall(owner, identifier, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a new repository in a given namespace. (asynchronously) - * Create a new repository in a given namespace. + * Retrieve the active ECDSA key for the Repository. (asynchronously) + * Retrieve the active ECDSA key for the Repository. * @param owner (required) - * @param data (optional) + * @param identifier (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 reposCreateAsync(String owner, RepositoryCreateRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposEcdsaListAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -731,13 +2082,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposCreateValidateBeforeCall(owner, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposEcdsaListValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposDelete + * Build call for reposEcdsaRegenerate * @param owner (required) * @param identifier (required) * @param progressListener Progress listener @@ -745,11 +2096,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 reposDeleteCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposEcdsaRegenerateCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/" + String localVarPath = "/repos/{owner}/{identifier}/ecdsa/regenerate/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -788,22 +2139,22 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch if (headers != null) { localVarHeaderParams.putAll(headers); } - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposDeleteValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposEcdsaRegenerateValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier }; - Method method = this.getClass().getMethod("reposDeleteWithHttpInfo", String.class, String.class); + Method method = this.getClass().getMethod("reposEcdsaRegenerateWithHttpInfo", String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposDeleteCall(owner, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposEcdsaRegenerateCall(owner, identifier, progressListener, progressRequestListener); return call; } else { @@ -820,39 +2171,42 @@ private com.squareup.okhttp.Call reposDeleteValidateBeforeCall(String owner, Str } /** - * - * Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * Regenerate ECDSA Key for the Repository. + * Regenerate ECDSA Key for the Repository. * @param owner (required) * @param identifier (required) + * @return RepositoryEcdsaKey * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposDelete(String owner, String identifier) throws ApiException { - reposDeleteWithHttpInfo(owner, identifier); + public RepositoryEcdsaKey reposEcdsaRegenerate(String owner, String identifier) throws ApiException { + ApiResponse resp = reposEcdsaRegenerateWithHttpInfo(owner, identifier); + return resp.getData(); } /** - * - * Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * Regenerate ECDSA Key for the Repository. + * Regenerate ECDSA Key for the Repository. * @param owner (required) * @param identifier (required) - * @return ApiResponse<Void> + * @return ApiResponse<RepositoryEcdsaKey> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = reposDeleteValidateBeforeCall(owner, identifier, null, null); - return apiClient.execute(call); + public ApiResponse reposEcdsaRegenerateWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { + com.squareup.okhttp.Call call = reposEcdsaRegenerateValidateBeforeCall(owner, identifier, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); } /** - * (asynchronously) - * Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * Regenerate ECDSA Key for the Repository. (asynchronously) + * Regenerate ECDSA Key for the Repository. * @param owner (required) * @param identifier (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 reposDeleteAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposEcdsaRegenerateAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -873,12 +2227,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposDeleteValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); + com.squareup.okhttp.Call call = reposEcdsaRegenerateValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposEcdsaCreate + * Build call for reposEd25519Create * @param owner (required) * @param identifier (required) * @param data (optional) @@ -887,11 +2242,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 reposEcdsaCreateCall(String owner, String identifier, RepositoryEcdsaKeyCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposEd25519CreateCall(String owner, String identifier, RepositoryEd25519KeyCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/ecdsa/" + String localVarPath = "/repos/{owner}/{identifier}/ed25519/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -934,18 +2289,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposEcdsaCreateValidateBeforeCall(String owner, String identifier, RepositoryEcdsaKeyCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposEd25519CreateValidateBeforeCall(String owner, String identifier, RepositoryEd25519KeyCreate 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("reposEcdsaCreateWithHttpInfo", String.class, String.class, RepositoryEcdsaKeyCreate.class); + Method method = this.getClass().getMethod("reposEd25519CreateWithHttpInfo", String.class, String.class, RepositoryEd25519KeyCreate.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposEcdsaCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposEd25519CreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -962,37 +2317,37 @@ private com.squareup.okhttp.Call reposEcdsaCreateValidateBeforeCall(String owner } /** - * Set the active ECDSA key for the Repository. - * Set the active ECDSA key for the Repository. + * Set the active Ed25519 key for the Repository. + * Set the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return RepositoryEcdsaKey + * @return RepositoryEd25519Key * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RepositoryEcdsaKey reposEcdsaCreate(String owner, String identifier, RepositoryEcdsaKeyCreate data) throws ApiException { - ApiResponse resp = reposEcdsaCreateWithHttpInfo(owner, identifier, data); + public RepositoryEd25519Key reposEd25519Create(String owner, String identifier, RepositoryEd25519KeyCreate data) throws ApiException { + ApiResponse resp = reposEd25519CreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Set the active ECDSA key for the Repository. - * Set the active ECDSA key for the Repository. + * Set the active Ed25519 key for the Repository. + * Set the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<RepositoryEcdsaKey> + * @return ApiResponse<RepositoryEd25519Key> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposEcdsaCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, RepositoryEcdsaKeyCreate data) throws ApiException { - com.squareup.okhttp.Call call = reposEcdsaCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposEd25519CreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, RepositoryEd25519KeyCreate data) throws ApiException { + com.squareup.okhttp.Call call = reposEd25519CreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Set the active ECDSA key for the Repository. (asynchronously) - * Set the active ECDSA key for the Repository. + * Set the active Ed25519 key for the Repository. (asynchronously) + * Set the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -1000,7 +2355,7 @@ public ApiResponse reposEcdsaCreateWithHttpInfo( @NotNull St * @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 reposEcdsaCreateAsync(String owner, String identifier, RepositoryEcdsaKeyCreate data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposEd25519CreateAsync(String owner, String identifier, RepositoryEd25519KeyCreate data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1021,13 +2376,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposEcdsaCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposEd25519CreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposEcdsaList + * Build call for reposEd25519List * @param owner (required) * @param identifier (required) * @param progressListener Progress listener @@ -1035,11 +2390,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 reposEcdsaListCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposEd25519ListCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/ecdsa/" + String localVarPath = "/repos/{owner}/{identifier}/ed25519/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -1082,18 +2437,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposEcdsaListValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposEd25519ListValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier }; - Method method = this.getClass().getMethod("reposEcdsaListWithHttpInfo", String.class, String.class); + Method method = this.getClass().getMethod("reposEd25519ListWithHttpInfo", String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposEcdsaListCall(owner, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposEd25519ListCall(owner, identifier, progressListener, progressRequestListener); return call; } else { @@ -1110,42 +2465,42 @@ private com.squareup.okhttp.Call reposEcdsaListValidateBeforeCall(String owner, } /** - * Retrieve the active ECDSA key for the Repository. - * Retrieve the active ECDSA key for the Repository. + * Retrieve the active Ed25519 key for the Repository. + * Retrieve the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (required) - * @return RepositoryEcdsaKey + * @return RepositoryEd25519Key * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RepositoryEcdsaKey reposEcdsaList(String owner, String identifier) throws ApiException { - ApiResponse resp = reposEcdsaListWithHttpInfo(owner, identifier); + public RepositoryEd25519Key reposEd25519List(String owner, String identifier) throws ApiException { + ApiResponse resp = reposEd25519ListWithHttpInfo(owner, identifier); return resp.getData(); } /** - * Retrieve the active ECDSA key for the Repository. - * Retrieve the active ECDSA key for the Repository. + * Retrieve the active Ed25519 key for the Repository. + * Retrieve the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (required) - * @return ApiResponse<RepositoryEcdsaKey> + * @return ApiResponse<RepositoryEd25519Key> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposEcdsaListWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = reposEcdsaListValidateBeforeCall(owner, identifier, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposEd25519ListWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { + com.squareup.okhttp.Call call = reposEd25519ListValidateBeforeCall(owner, identifier, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve the active ECDSA key for the Repository. (asynchronously) - * Retrieve the active ECDSA key for the Repository. + * Retrieve the active Ed25519 key for the Repository. (asynchronously) + * Retrieve the active Ed25519 key for the Repository. * @param owner (required) * @param identifier (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 reposEcdsaListAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposEd25519ListAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1166,13 +2521,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposEcdsaListValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposEd25519ListValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposEcdsaRegenerate + * Build call for reposEd25519Regenerate * @param owner (required) * @param identifier (required) * @param progressListener Progress listener @@ -1180,11 +2535,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 reposEcdsaRegenerateCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposEd25519RegenerateCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/ecdsa/regenerate/" + String localVarPath = "/repos/{owner}/{identifier}/ed25519/regenerate/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -1227,18 +2582,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposEcdsaRegenerateValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposEd25519RegenerateValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier }; - Method method = this.getClass().getMethod("reposEcdsaRegenerateWithHttpInfo", String.class, String.class); + Method method = this.getClass().getMethod("reposEd25519RegenerateWithHttpInfo", String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposEcdsaRegenerateCall(owner, identifier, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposEd25519RegenerateCall(owner, identifier, progressListener, progressRequestListener); return call; } else { @@ -1255,42 +2610,42 @@ private com.squareup.okhttp.Call reposEcdsaRegenerateValidateBeforeCall(String o } /** - * Regenerate ECDSA Key for the Repository. - * Regenerate ECDSA Key for the Repository. + * Regenerate Ed25519 Key for the Repository. + * Regenerate Ed25519 Key for the Repository. * @param owner (required) * @param identifier (required) - * @return RepositoryEcdsaKey + * @return RepositoryEd25519Key * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RepositoryEcdsaKey reposEcdsaRegenerate(String owner, String identifier) throws ApiException { - ApiResponse resp = reposEcdsaRegenerateWithHttpInfo(owner, identifier); + public RepositoryEd25519Key reposEd25519Regenerate(String owner, String identifier) throws ApiException { + ApiResponse resp = reposEd25519RegenerateWithHttpInfo(owner, identifier); return resp.getData(); } /** - * Regenerate ECDSA Key for the Repository. - * Regenerate ECDSA Key for the Repository. + * Regenerate Ed25519 Key for the Repository. + * Regenerate Ed25519 Key for the Repository. * @param owner (required) * @param identifier (required) - * @return ApiResponse<RepositoryEcdsaKey> + * @return ApiResponse<RepositoryEd25519Key> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposEcdsaRegenerateWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { - com.squareup.okhttp.Call call = reposEcdsaRegenerateValidateBeforeCall(owner, identifier, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposEd25519RegenerateWithHttpInfo( @NotNull String owner, @NotNull String identifier) throws ApiException { + com.squareup.okhttp.Call call = reposEd25519RegenerateValidateBeforeCall(owner, identifier, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Regenerate ECDSA Key for the Repository. (asynchronously) - * Regenerate ECDSA Key for the Repository. + * Regenerate Ed25519 Key for the Repository. (asynchronously) + * Regenerate Ed25519 Key for the Repository. * @param owner (required) * @param identifier (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 reposEcdsaRegenerateAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposEd25519RegenerateAsync(String owner, String identifier, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1311,8 +2666,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposEcdsaRegenerateValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposEd25519RegenerateValidateBeforeCall(owner, identifier, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java index 84476047..b6d63651 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java @@ -37,7 +37,7 @@ import java.lang.reflect.Type; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse2001; +import io.cloudsmith.api.models.InlineResponse2002; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -572,11 +572,11 @@ private com.squareup.okhttp.Call userTokensListValidateBeforeCall(java.math.BigI * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return InlineResponse2001 + * @return InlineResponse2002 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2001 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); + public InlineResponse2002 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); return resp.getData(); } @@ -585,12 +585,12 @@ public InlineResponse2001 userTokensList(java.math.BigInteger page, java.math.Bi * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<InlineResponse2001> + * @return ApiResponse<InlineResponse2002> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -603,7 +603,7 @@ public ApiResponse userTokensListWithHttpInfo( java.math.Big * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -625,7 +625,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java index d2ef5c7d..44181789 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java @@ -128,6 +128,9 @@ public class AlpinePackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class AlpinePackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, alpinePackageUpload.isCopyable) && Objects.equals(this.isDeleteable, alpinePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, alpinePackageUpload.isDownloadable) && + Objects.equals(this.isHidden, alpinePackageUpload.isHidden) && Objects.equals(this.isMoveable, alpinePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, alpinePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, alpinePackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, alpinePackageUpload.numFiles) && Objects.equals(this.originRepository, alpinePackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, alpinePackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, alpinePackageUpload.osiApproved) && Objects.equals(this.packageType, alpinePackageUpload.packageType) && Objects.equals(this.policyViolated, alpinePackageUpload.policyViolated) && Objects.equals(this.rawLicense, alpinePackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java index bbd3974d..04630769 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUpload.java @@ -128,6 +128,9 @@ public class CargoPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class CargoPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, cargoPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, cargoPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cargoPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, cargoPackageUpload.isHidden) && Objects.equals(this.isMoveable, cargoPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cargoPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cargoPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, cargoPackageUpload.numFiles) && Objects.equals(this.originRepository, cargoPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, cargoPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, cargoPackageUpload.osiApproved) && Objects.equals(this.packageType, cargoPackageUpload.packageType) && Objects.equals(this.policyViolated, cargoPackageUpload.policyViolated) && Objects.equals(this.rawLicense, cargoPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java index e2e9d3ea..94759839 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUpload.java @@ -128,6 +128,9 @@ public class CocoapodsPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class CocoapodsPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, cocoapodsPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, cocoapodsPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cocoapodsPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, cocoapodsPackageUpload.isHidden) && Objects.equals(this.isMoveable, cocoapodsPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cocoapodsPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cocoapodsPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, cocoapodsPackageUpload.numFiles) && Objects.equals(this.originRepository, cocoapodsPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, cocoapodsPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, cocoapodsPackageUpload.osiApproved) && Objects.equals(this.packageType, cocoapodsPackageUpload.packageType) && Objects.equals(this.policyViolated, cocoapodsPackageUpload.policyViolated) && Objects.equals(this.rawLicense, cocoapodsPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); 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 7d8f67f2..599fb50e 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 @@ -128,6 +128,9 @@ public class ComposerPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class ComposerPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1207,6 +1231,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, composerPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, composerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, composerPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, composerPackageUpload.isHidden) && Objects.equals(this.isMoveable, composerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, composerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, composerPackageUpload.isQuarantined) && @@ -1224,6 +1249,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, composerPackageUpload.numFiles) && Objects.equals(this.originRepository, composerPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, composerPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, composerPackageUpload.osiApproved) && Objects.equals(this.packageType, composerPackageUpload.packageType) && Objects.equals(this.policyViolated, composerPackageUpload.policyViolated) && Objects.equals(this.rawLicense, composerPackageUpload.rawLicense) && @@ -1267,7 +1293,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1304,6 +1330,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1321,6 +1348,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java index f8998fd3..a1f86653 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 @@ -134,6 +134,9 @@ public class ConanPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -185,6 +188,9 @@ public class ConanPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -671,6 +677,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -833,6 +848,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1260,6 +1284,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, conanPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, conanPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, conanPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, conanPackageUpload.isHidden) && Objects.equals(this.isMoveable, conanPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, conanPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, conanPackageUpload.isQuarantined) && @@ -1277,6 +1302,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, conanPackageUpload.numFiles) && Objects.equals(this.originRepository, conanPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, conanPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, conanPackageUpload.osiApproved) && Objects.equals(this.packageType, conanPackageUpload.packageType) && Objects.equals(this.policyViolated, conanPackageUpload.policyViolated) && Objects.equals(this.rawLicense, conanPackageUpload.rawLicense) && @@ -1320,7 +1346,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, conanChannel, conanPrefix, 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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, conanChannel, conanPrefix, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1359,6 +1385,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1376,6 +1403,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java index db39a6e5..b8708f79 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUpload.java @@ -128,6 +128,9 @@ public class CondaPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class CondaPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, condaPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, condaPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, condaPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, condaPackageUpload.isHidden) && Objects.equals(this.isMoveable, condaPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, condaPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, condaPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, condaPackageUpload.numFiles) && Objects.equals(this.originRepository, condaPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, condaPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, condaPackageUpload.osiApproved) && Objects.equals(this.packageType, condaPackageUpload.packageType) && Objects.equals(this.policyViolated, condaPackageUpload.policyViolated) && Objects.equals(this.rawLicense, condaPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java new file mode 100644 index 00000000..ad9b1f7d --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepository.java @@ -0,0 +1,178 @@ +/* + * 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; + +/** + * ConnectedRepository + */ + +public class ConnectedRepository implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + @SerializedName("is_active") + private Boolean isActive = true; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("target_repository") + private String targetRepository = null; + + /** + * The date and time when the connection was created. + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "The date and time when the connection was created.") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public ConnectedRepository isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * @return isActive + **/ + @ApiModelProperty(value = "") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public ConnectedRepository priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.") + 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; + } + + public ConnectedRepository targetRepository(String targetRepository) { + this.targetRepository = targetRepository; + return this; + } + + /** + * The slug of the target repository to connect to. + * @return targetRepository + **/ + @NotNull + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @ApiModelProperty(required = true, value = "The slug of the target repository to connect to.") + public String getTargetRepository() { + return targetRepository; + } + + public void setTargetRepository(String targetRepository) { + this.targetRepository = targetRepository; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedRepository connectedRepository = (ConnectedRepository) o; + return Objects.equals(this.createdAt, connectedRepository.createdAt) && + Objects.equals(this.isActive, connectedRepository.isActive) && + Objects.equals(this.priority, connectedRepository.priority) && + Objects.equals(this.slugPerm, connectedRepository.slugPerm) && + Objects.equals(this.targetRepository, connectedRepository.targetRepository); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, isActive, priority, slugPerm, targetRepository); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedRepository {\n"); + + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" targetRepository: ").append(toIndentedString(targetRepository)).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/ConnectedRepositoryRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java new file mode 100644 index 00000000..ae079bb9 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequest.java @@ -0,0 +1,148 @@ +/* + * 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; + +/** + * ConnectedRepositoryRequest + */ + +public class ConnectedRepositoryRequest implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("is_active") + private Boolean isActive = true; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("target_repository") + private String targetRepository = null; + + public ConnectedRepositoryRequest isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * @return isActive + **/ + @ApiModelProperty(value = "") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public ConnectedRepositoryRequest priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public ConnectedRepositoryRequest targetRepository(String targetRepository) { + this.targetRepository = targetRepository; + return this; + } + + /** + * The slug of the target repository to connect to. + * @return targetRepository + **/ + @NotNull + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @ApiModelProperty(required = true, value = "The slug of the target repository to connect to.") + public String getTargetRepository() { + return targetRepository; + } + + public void setTargetRepository(String targetRepository) { + this.targetRepository = targetRepository; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedRepositoryRequest connectedRepositoryRequest = (ConnectedRepositoryRequest) o; + return Objects.equals(this.isActive, connectedRepositoryRequest.isActive) && + Objects.equals(this.priority, connectedRepositoryRequest.priority) && + Objects.equals(this.targetRepository, connectedRepositoryRequest.targetRepository); + } + + @Override + public int hashCode() { + return Objects.hash(isActive, priority, targetRepository); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedRepositoryRequest {\n"); + + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" targetRepository: ").append(toIndentedString(targetRepository)).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/ConnectedRepositoryRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java new file mode 100644 index 00000000..d6437e97 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryRequestPatch.java @@ -0,0 +1,147 @@ +/* + * 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; + +/** + * ConnectedRepositoryRequestPatch + */ + +public class ConnectedRepositoryRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("is_active") + private Boolean isActive = true; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("target_repository") + private String targetRepository = null; + + public ConnectedRepositoryRequestPatch isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * @return isActive + **/ + @ApiModelProperty(value = "") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public ConnectedRepositoryRequestPatch priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public ConnectedRepositoryRequestPatch targetRepository(String targetRepository) { + this.targetRepository = targetRepository; + return this; + } + + /** + * The slug of the target repository to connect to. + * @return targetRepository + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @ApiModelProperty(value = "The slug of the target repository to connect to.") + public String getTargetRepository() { + return targetRepository; + } + + public void setTargetRepository(String targetRepository) { + this.targetRepository = targetRepository; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedRepositoryRequestPatch connectedRepositoryRequestPatch = (ConnectedRepositoryRequestPatch) o; + return Objects.equals(this.isActive, connectedRepositoryRequestPatch.isActive) && + Objects.equals(this.priority, connectedRepositoryRequestPatch.priority) && + Objects.equals(this.targetRepository, connectedRepositoryRequestPatch.targetRepository); + } + + @Override + public int hashCode() { + return Objects.hash(isActive, priority, targetRepository); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedRepositoryRequestPatch {\n"); + + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" targetRepository: ").append(toIndentedString(targetRepository)).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/CranPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java index 3c5a2da5..3a754b05 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java @@ -128,6 +128,9 @@ public class CranPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class CranPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -632,6 +638,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -785,6 +800,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1219,6 +1243,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, cranPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, cranPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cranPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, cranPackageUpload.isHidden) && Objects.equals(this.isMoveable, cranPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cranPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cranPackageUpload.isQuarantined) && @@ -1236,6 +1261,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, cranPackageUpload.numFiles) && Objects.equals(this.originRepository, cranPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, cranPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, cranPackageUpload.osiApproved) && Objects.equals(this.packageType, cranPackageUpload.packageType) && Objects.equals(this.policyViolated, cranPackageUpload.policyViolated) && Objects.equals(this.rVersion, cranPackageUpload.rVersion) && @@ -1280,7 +1306,7 @@ public boolean equals(java.lang.Object o) { @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, rVersion, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rVersion, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1317,6 +1343,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1334,6 +1361,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rVersion: ").append(toIndentedString(rVersion)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java index 3fe940d0..de3dd595 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUpload.java @@ -128,6 +128,9 @@ public class DartPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class DartPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, dartPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, dartPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dartPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, dartPackageUpload.isHidden) && Objects.equals(this.isMoveable, dartPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dartPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dartPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, dartPackageUpload.numFiles) && Objects.equals(this.originRepository, dartPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, dartPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, dartPackageUpload.osiApproved) && Objects.equals(this.packageType, dartPackageUpload.packageType) && Objects.equals(this.policyViolated, dartPackageUpload.policyViolated) && Objects.equals(this.rawLicense, dartPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java index cc1b8738..7f819ca8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUpload.java @@ -128,6 +128,9 @@ public class DebPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class DebPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, debPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, debPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, debPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, debPackageUpload.isHidden) && Objects.equals(this.isMoveable, debPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, debPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, debPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, debPackageUpload.numFiles) && Objects.equals(this.originRepository, debPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, debPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, debPackageUpload.osiApproved) && Objects.equals(this.packageType, debPackageUpload.packageType) && Objects.equals(this.policyViolated, debPackageUpload.policyViolated) && Objects.equals(this.rawLicense, debPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java index 0f700e06..715933df 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUpload.java @@ -128,6 +128,9 @@ public class DockerPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class DockerPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, dockerPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, dockerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dockerPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, dockerPackageUpload.isHidden) && Objects.equals(this.isMoveable, dockerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dockerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dockerPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, dockerPackageUpload.numFiles) && Objects.equals(this.originRepository, dockerPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, dockerPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, dockerPackageUpload.osiApproved) && Objects.equals(this.packageType, dockerPackageUpload.packageType) && Objects.equals(this.policyViolated, dockerPackageUpload.policyViolated) && Objects.equals(this.rawLicense, dockerPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java index f01234ad..93f9c611 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUpload.java @@ -128,6 +128,9 @@ public class GenericPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class GenericPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -791,6 +806,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1216,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, genericPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, genericPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, genericPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, genericPackageUpload.isHidden) && Objects.equals(this.isMoveable, genericPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, genericPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, genericPackageUpload.isQuarantined) && @@ -1233,6 +1258,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, genericPackageUpload.numFiles) && Objects.equals(this.originRepository, genericPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, genericPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, genericPackageUpload.osiApproved) && Objects.equals(this.packageType, genericPackageUpload.packageType) && Objects.equals(this.policyViolated, genericPackageUpload.policyViolated) && Objects.equals(this.rawLicense, genericPackageUpload.rawLicense) && @@ -1276,7 +1302,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1313,6 +1339,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1330,6 +1357,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java index edc29f5e..a2c6cb46 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUpload.java @@ -128,6 +128,9 @@ public class GoPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class GoPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, goPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, goPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, goPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, goPackageUpload.isHidden) && Objects.equals(this.isMoveable, goPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, goPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, goPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, goPackageUpload.numFiles) && Objects.equals(this.originRepository, goPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, goPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, goPackageUpload.osiApproved) && Objects.equals(this.packageType, goPackageUpload.packageType) && Objects.equals(this.policyViolated, goPackageUpload.policyViolated) && Objects.equals(this.rawLicense, goPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java index 48baf8fd..153ceb80 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUpload.java @@ -128,6 +128,9 @@ public class HelmPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class HelmPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, helmPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, helmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, helmPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, helmPackageUpload.isHidden) && Objects.equals(this.isMoveable, helmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, helmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, helmPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, helmPackageUpload.numFiles) && Objects.equals(this.originRepository, helmPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, helmPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, helmPackageUpload.osiApproved) && Objects.equals(this.packageType, helmPackageUpload.packageType) && Objects.equals(this.policyViolated, helmPackageUpload.policyViolated) && Objects.equals(this.rawLicense, helmPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java index ce5d9083..df8a18ad 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUpload.java @@ -128,6 +128,9 @@ public class HexPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class HexPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, hexPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, hexPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, hexPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, hexPackageUpload.isHidden) && Objects.equals(this.isMoveable, hexPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, hexPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, hexPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, hexPackageUpload.numFiles) && Objects.equals(this.originRepository, hexPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, hexPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, hexPackageUpload.osiApproved) && Objects.equals(this.packageType, hexPackageUpload.packageType) && Objects.equals(this.policyViolated, hexPackageUpload.policyViolated) && Objects.equals(this.rawLicense, hexPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\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 index 10846995..c046bb7c 100644 --- 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 @@ -128,6 +128,9 @@ public class HuggingfacePackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class HuggingfacePackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, huggingfacePackageUpload.isCopyable) && Objects.equals(this.isDeleteable, huggingfacePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, huggingfacePackageUpload.isDownloadable) && + Objects.equals(this.isHidden, huggingfacePackageUpload.isHidden) && Objects.equals(this.isMoveable, huggingfacePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, huggingfacePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, huggingfacePackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, huggingfacePackageUpload.numFiles) && Objects.equals(this.originRepository, huggingfacePackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, huggingfacePackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, huggingfacePackageUpload.osiApproved) && Objects.equals(this.packageType, huggingfacePackageUpload.packageType) && Objects.equals(this.policyViolated, huggingfacePackageUpload.policyViolated) && Objects.equals(this.rawLicense, huggingfacePackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java index 7f764f4d..c2f133b4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java @@ -20,7 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.UserAuthenticationToken; +import io.cloudsmith.api.models.ConnectedRepository; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,14 +38,14 @@ public class InlineResponse2001 implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("results") - private List results = new ArrayList<>(); + private List results = new ArrayList<>(); - public InlineResponse2001 results(List results) { + public InlineResponse2001 results(List results) { this.results = results; return this; } - public InlineResponse2001 addResultsItem(UserAuthenticationToken resultsItem) { + public InlineResponse2001 addResultsItem(ConnectedRepository resultsItem) { this.results.add(resultsItem); return this; } @@ -57,11 +57,11 @@ public InlineResponse2001 addResultsItem(UserAuthenticationToken resultsItem) { @NotNull @Valid @ApiModelProperty(required = true, value = "") - public List getResults() { + public List getResults() { return results; } - public void setResults(List results) { + public void setResults(List results) { this.results = results; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java new file mode 100644 index 00000000..897568d0 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2002.java @@ -0,0 +1,109 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.UserAuthenticationToken; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * InlineResponse2002 + */ + +public class InlineResponse2002 implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("results") + private List results = new ArrayList<>(); + + public InlineResponse2002 results(List results) { + this.results = results; + return this; + } + + public InlineResponse2002 addResultsItem(UserAuthenticationToken resultsItem) { + this.results.add(resultsItem); + return this; + } + + /** + * Get results + * @return results + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse2002 inlineResponse2002 = (InlineResponse2002) o; + return Objects.equals(this.results, inlineResponse2002.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse2002 {\n"); + + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java index 88df35ad..c6a3ce30 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUpload.java @@ -128,6 +128,9 @@ public class LuarocksPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class LuarocksPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, luarocksPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, luarocksPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, luarocksPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, luarocksPackageUpload.isHidden) && Objects.equals(this.isMoveable, luarocksPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, luarocksPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, luarocksPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, luarocksPackageUpload.numFiles) && Objects.equals(this.originRepository, luarocksPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, luarocksPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, luarocksPackageUpload.osiApproved) && Objects.equals(this.packageType, luarocksPackageUpload.packageType) && Objects.equals(this.policyViolated, luarocksPackageUpload.policyViolated) && Objects.equals(this.rawLicense, luarocksPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\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 696f72b0..1a61897d 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 @@ -134,6 +134,9 @@ public class MavenPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -185,6 +188,9 @@ public class MavenPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -680,6 +686,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -833,6 +848,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1314,6 +1338,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, mavenPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, mavenPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mavenPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, mavenPackageUpload.isHidden) && Objects.equals(this.isMoveable, mavenPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mavenPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mavenPackageUpload.isQuarantined) && @@ -1331,6 +1356,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, mavenPackageUpload.numFiles) && Objects.equals(this.originRepository, mavenPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, mavenPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, mavenPackageUpload.osiApproved) && Objects.equals(this.packageType, mavenPackageUpload.packageType) && Objects.equals(this.packaging, mavenPackageUpload.packaging) && Objects.equals(this.policyViolated, mavenPackageUpload.policyViolated) && @@ -1377,7 +1403,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, artifactId, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, groupId, 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, packaging, policyViolated, rawLicense, release, repository, repositoryUrl, sbtVersion, scalaVersion, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, artifactId, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, groupId, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, packaging, policyViolated, rawLicense, release, repository, repositoryUrl, sbtVersion, scalaVersion, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1416,6 +1442,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1433,6 +1460,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" packaging: ").append(toIndentedString(packaging)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java index d82632a6..963bc363 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUpload.java @@ -128,6 +128,9 @@ public class McpPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class McpPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1207,6 +1231,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, mcpPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, mcpPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mcpPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, mcpPackageUpload.isHidden) && Objects.equals(this.isMoveable, mcpPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mcpPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mcpPackageUpload.isQuarantined) && @@ -1224,6 +1249,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, mcpPackageUpload.numFiles) && Objects.equals(this.originRepository, mcpPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, mcpPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, mcpPackageUpload.osiApproved) && Objects.equals(this.packageType, mcpPackageUpload.packageType) && Objects.equals(this.policyViolated, mcpPackageUpload.policyViolated) && Objects.equals(this.rawLicense, mcpPackageUpload.rawLicense) && @@ -1267,7 +1293,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1304,6 +1330,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1321,6 +1348,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MemberTeams.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MemberTeams.java new file mode 100644 index 00000000..0b3fa353 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MemberTeams.java @@ -0,0 +1,165 @@ +/* + * 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; + +/** + * MemberTeams + */ + +public class MemberTeams implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("name") + private String name = null; + + /** + * Gets or Sets role + */ + @JsonAdapter(RoleEnum.Adapter.class) + public enum RoleEnum { + MANAGER("Manager"), + + MEMBER("Member"); + + private String value; + + RoleEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RoleEnum fromValue(String text) { + for (RoleEnum b : RoleEnum.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 RoleEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RoleEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RoleEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("role") + private RoleEnum role = RoleEnum.MANAGER; + + @SerializedName("slug") + private String slug = null; + + /** + * Get name + * @return name + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getName() { + return name; + } + + /** + * Get role + * @return role + **/ + @ApiModelProperty(value = "") + public RoleEnum getRole() { + return role; + } + + /** + * Get slug + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlug() { + return slug; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MemberTeams memberTeams = (MemberTeams) o; + return Objects.equals(this.name, memberTeams.name) && + Objects.equals(this.role, memberTeams.role) && + Objects.equals(this.slug, memberTeams.slug); + } + + @Override + public int hashCode() { + return Objects.hash(name, role, slug); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MemberTeams {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).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/ModelPackage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java index ff4b0fd8..33c84dca 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java @@ -131,6 +131,9 @@ public class ModelPackage implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -182,6 +185,9 @@ public class ModelPackage implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -644,6 +650,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -797,6 +812,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1233,6 +1257,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, _package.isCopyable) && Objects.equals(this.isDeleteable, _package.isDeleteable) && Objects.equals(this.isDownloadable, _package.isDownloadable) && + Objects.equals(this.isHidden, _package.isHidden) && Objects.equals(this.isMoveable, _package.isMoveable) && Objects.equals(this.isQuarantinable, _package.isQuarantinable) && Objects.equals(this.isQuarantined, _package.isQuarantined) && @@ -1250,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, _package.numFiles) && Objects.equals(this.originRepository, _package.originRepository) && Objects.equals(this.originRepositoryUrl, _package.originRepositoryUrl) && + Objects.equals(this.osiApproved, _package.osiApproved) && Objects.equals(this.packageType, _package.packageType) && Objects.equals(this.policyViolated, _package.policyViolated) && Objects.equals(this.rawLicense, _package.rawLicense) && @@ -1294,7 +1320,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, 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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1332,6 +1358,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1349,6 +1376,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java index 9f55ae95..fb92fc09 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java @@ -128,6 +128,9 @@ public class NpmPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class NpmPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, npmPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, npmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, npmPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, npmPackageUpload.isHidden) && Objects.equals(this.isMoveable, npmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, npmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, npmPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, npmPackageUpload.numFiles) && Objects.equals(this.originRepository, npmPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, npmPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, npmPackageUpload.osiApproved) && Objects.equals(this.packageType, npmPackageUpload.packageType) && Objects.equals(this.policyViolated, npmPackageUpload.policyViolated) && Objects.equals(this.rawLicense, npmPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java index 1b7292f5..7a022371 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUpload.java @@ -128,6 +128,9 @@ public class NugetPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class NugetPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, nugetPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, nugetPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, nugetPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, nugetPackageUpload.isHidden) && Objects.equals(this.isMoveable, nugetPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, nugetPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, nugetPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, nugetPackageUpload.numFiles) && Objects.equals(this.originRepository, nugetPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, nugetPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, nugetPackageUpload.osiApproved) && Objects.equals(this.packageType, nugetPackageUpload.packageType) && Objects.equals(this.policyViolated, nugetPackageUpload.policyViolated) && Objects.equals(this.rawLicense, nugetPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationCustomDomainNestedRepo.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationCustomDomainNestedRepo.java new file mode 100644 index 00000000..02290fa8 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationCustomDomainNestedRepo.java @@ -0,0 +1,104 @@ +/* + * 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; + +/** + * OrganizationCustomDomainNestedRepo + */ + +public class OrganizationCustomDomainNestedRepo implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("name") + private String name = null; + + @SerializedName("slug") + private String slug = null; + + /** + * A descriptive name for the repository. + * @return name + **/ + @Size(min=1) @ApiModelProperty(value = "A descriptive name for the repository.") + public String getName() { + return name; + } + + /** + * The slug identifies the repository in URIs. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @ApiModelProperty(value = "The slug identifies the repository in URIs.") + public String getSlug() { + return slug; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationCustomDomainNestedRepo organizationCustomDomainNestedRepo = (OrganizationCustomDomainNestedRepo) o; + return Objects.equals(this.name, organizationCustomDomainNestedRepo.name) && + Objects.equals(this.slug, organizationCustomDomainNestedRepo.slug); + } + + @Override + public int hashCode() { + return Objects.hash(name, slug); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationCustomDomainNestedRepo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).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/OrganizationCustomDomains.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationCustomDomains.java new file mode 100644 index 00000000..cc380553 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationCustomDomains.java @@ -0,0 +1,343 @@ +/* + * 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.OrganizationCustomDomainNestedRepo; +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; + +/** + * OrganizationCustomDomains + */ + +public class OrganizationCustomDomains implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("backend_kind") + private java.math.BigInteger backendKind = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + @SerializedName("created_by") + private java.math.BigInteger createdBy = null; + + @SerializedName("dns_alias_value") + private String dnsAliasValue = null; + + @SerializedName("dns_cert_name") + private String dnsCertName = null; + + @SerializedName("dns_cert_value") + private String dnsCertValue = null; + + @SerializedName("domain_type") + private java.math.BigInteger domainType = null; + + @SerializedName("enabled") + private Boolean enabled = null; + + @SerializedName("host") + private String host = null; + + @SerializedName("namespace") + private java.math.BigInteger namespace = null; + + @SerializedName("primary") + private Boolean primary = true; + + @SerializedName("redirect_root") + private Boolean redirectRoot = null; + + @SerializedName("redirect_root_url") + private String redirectRootUrl = null; + + @SerializedName("repository") + private OrganizationCustomDomainNestedRepo repository = null; + + @SerializedName("repository_only") + private Boolean repositoryOnly = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("validated") + private Boolean validated = null; + + @SerializedName("validated_at") + private OffsetDateTime validatedAt = null; + + /** + * The domain for a specific package format. + * @return backendKind + **/ + @ApiModelProperty(value = "The domain for a specific package format.") + public java.math.BigInteger getBackendKind() { + return backendKind; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getCreatedBy() { + return createdBy; + } + + /** + * The CNAME value to use to publish this domain publicly. + * @return dnsAliasValue + **/ + @ApiModelProperty(value = "The CNAME value to use to publish this domain publicly.") + public String getDnsAliasValue() { + return dnsAliasValue; + } + + /** + * The CNAME name to create to allow us to generate a TLS cert. + * @return dnsCertName + **/ + @ApiModelProperty(value = "The CNAME name to create to allow us to generate a TLS cert.") + public String getDnsCertName() { + return dnsCertName; + } + + /** + * The CNAME value to use to allow us to generate a TLS cert. + * @return dnsCertValue + **/ + @ApiModelProperty(value = "The CNAME value to use to allow us to generate a TLS cert.") + public String getDnsCertValue() { + return dnsCertValue; + } + + /** + * The type for the custom domain. + * @return domainType + **/ + @ApiModelProperty(value = "The type for the custom domain.") + public java.math.BigInteger getDomainType() { + return domainType; + } + + /** + * If checked, the domain is enabled. + * @return enabled + **/ + @ApiModelProperty(value = "If checked, the domain is enabled.") + public Boolean isEnabled() { + return enabled; + } + + /** + * Get host + * @return host + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getHost() { + return host; + } + + /** + * Get namespace + * @return namespace + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getNamespace() { + return namespace; + } + + /** + * If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) + * @return primary + **/ + @ApiModelProperty(value = "If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.)") + public Boolean isPrimary() { + return primary; + } + + /** + * If checked, the domain root redirects to the repository. + * @return redirectRoot + **/ + @ApiModelProperty(value = "If checked, the domain root redirects to the repository.") + public Boolean isRedirectRoot() { + return redirectRoot; + } + + /** + * Where root requests should be redirected to if redirect_root is enabled. + * @return redirectRootUrl + **/ + @ApiModelProperty(value = "Where root requests should be redirected to if redirect_root is enabled.") + public String getRedirectRootUrl() { + return redirectRootUrl; + } + + public OrganizationCustomDomains repository(OrganizationCustomDomainNestedRepo repository) { + this.repository = repository; + return this; + } + + /** + * Get repository + * @return repository + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public OrganizationCustomDomainNestedRepo getRepository() { + return repository; + } + + public void setRepository(OrganizationCustomDomainNestedRepo repository) { + this.repository = repository; + } + + /** + * If checked, the domain applies to a specific repository only. + * @return repositoryOnly + **/ + @ApiModelProperty(value = "If checked, the domain applies to a specific repository only.") + public Boolean isRepositoryOnly() { + return repositoryOnly; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * If validated, the domain is ready for requests. + * @return validated + **/ + @ApiModelProperty(value = "If validated, the domain is ready for requests.") + public Boolean isValidated() { + return validated; + } + + /** + * Get validatedAt + * @return validatedAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getValidatedAt() { + return validatedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationCustomDomains organizationCustomDomains = (OrganizationCustomDomains) o; + return Objects.equals(this.backendKind, organizationCustomDomains.backendKind) && + Objects.equals(this.createdAt, organizationCustomDomains.createdAt) && + Objects.equals(this.createdBy, organizationCustomDomains.createdBy) && + Objects.equals(this.dnsAliasValue, organizationCustomDomains.dnsAliasValue) && + Objects.equals(this.dnsCertName, organizationCustomDomains.dnsCertName) && + Objects.equals(this.dnsCertValue, organizationCustomDomains.dnsCertValue) && + Objects.equals(this.domainType, organizationCustomDomains.domainType) && + Objects.equals(this.enabled, organizationCustomDomains.enabled) && + Objects.equals(this.host, organizationCustomDomains.host) && + Objects.equals(this.namespace, organizationCustomDomains.namespace) && + Objects.equals(this.primary, organizationCustomDomains.primary) && + Objects.equals(this.redirectRoot, organizationCustomDomains.redirectRoot) && + Objects.equals(this.redirectRootUrl, organizationCustomDomains.redirectRootUrl) && + Objects.equals(this.repository, organizationCustomDomains.repository) && + Objects.equals(this.repositoryOnly, organizationCustomDomains.repositoryOnly) && + Objects.equals(this.slugPerm, organizationCustomDomains.slugPerm) && + Objects.equals(this.validated, organizationCustomDomains.validated) && + Objects.equals(this.validatedAt, organizationCustomDomains.validatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(backendKind, createdAt, createdBy, dnsAliasValue, dnsCertName, dnsCertValue, domainType, enabled, host, namespace, primary, redirectRoot, redirectRootUrl, repository, repositoryOnly, slugPerm, validated, validatedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationCustomDomains {\n"); + + sb.append(" backendKind: ").append(toIndentedString(backendKind)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" dnsAliasValue: ").append(toIndentedString(dnsAliasValue)).append("\n"); + sb.append(" dnsCertName: ").append(toIndentedString(dnsCertName)).append("\n"); + sb.append(" dnsCertValue: ").append(toIndentedString(dnsCertValue)).append("\n"); + sb.append(" domainType: ").append(toIndentedString(domainType)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" host: ").append(toIndentedString(host)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" redirectRoot: ").append(toIndentedString(redirectRoot)).append("\n"); + sb.append(" redirectRootUrl: ").append(toIndentedString(redirectRootUrl)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" repositoryOnly: ").append(toIndentedString(repositoryOnly)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" validated: ").append(toIndentedString(validated)).append("\n"); + sb.append(" validatedAt: ").append(toIndentedString(validatedAt)).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/OrganizationMembership.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java index 863a3768..7dd662ea 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java @@ -20,10 +20,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.MemberTeams; 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.List; import java.io.Serializable; import javax.validation.constraints.*; import javax.validation.Valid; @@ -160,6 +163,9 @@ public RoleEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("role") private RoleEnum role = RoleEnum.OWNER; + @SerializedName("teams") + private List teams = null; + @SerializedName("user") private String user = null; @@ -287,6 +293,16 @@ public RoleEnum getRole() { return role; } + /** + * Get teams + * @return teams + **/ + @Valid + @ApiModelProperty(value = "") + public List getTeams() { + return teams; + } + /** * Get user * @return user @@ -349,6 +365,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.lastLoginAt, organizationMembership.lastLoginAt) && Objects.equals(this.lastLoginMethod, organizationMembership.lastLoginMethod) && Objects.equals(this.role, organizationMembership.role) && + Objects.equals(this.teams, organizationMembership.teams) && Objects.equals(this.user, organizationMembership.user) && Objects.equals(this.userId, organizationMembership.userId) && Objects.equals(this.userName, organizationMembership.userName) && @@ -358,7 +375,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(email, hasTwoFactor, isActive, joinedAt, lastLoginAt, lastLoginMethod, role, user, userId, userName, userUrl, visibility); + return Objects.hash(email, hasTwoFactor, isActive, joinedAt, lastLoginAt, lastLoginMethod, role, teams, user, userId, userName, userUrl, visibility); } @@ -374,6 +391,7 @@ public String toString() { sb.append(" lastLoginAt: ").append(toIndentedString(lastLoginAt)).append("\n"); sb.append(" lastLoginMethod: ").append(toIndentedString(lastLoginMethod)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" teams: ").append(toIndentedString(teams)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java index 101871bc..856fc231 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java @@ -128,6 +128,9 @@ public class P2PackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class P2PackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, p2PackageUpload.isCopyable) && Objects.equals(this.isDeleteable, p2PackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, p2PackageUpload.isDownloadable) && + Objects.equals(this.isHidden, p2PackageUpload.isHidden) && Objects.equals(this.isMoveable, p2PackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, p2PackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, p2PackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, p2PackageUpload.numFiles) && Objects.equals(this.originRepository, p2PackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, p2PackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, p2PackageUpload.osiApproved) && Objects.equals(this.packageType, p2PackageUpload.packageType) && Objects.equals(this.policyViolated, p2PackageUpload.policyViolated) && Objects.equals(this.rawLicense, p2PackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java index 6a833c39..3aea27b2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java @@ -131,6 +131,9 @@ public class PackageCopy implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -182,6 +185,9 @@ public class PackageCopy implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -644,6 +650,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -797,6 +812,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1233,6 +1257,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageCopy.isCopyable) && Objects.equals(this.isDeleteable, packageCopy.isDeleteable) && Objects.equals(this.isDownloadable, packageCopy.isDownloadable) && + Objects.equals(this.isHidden, packageCopy.isHidden) && Objects.equals(this.isMoveable, packageCopy.isMoveable) && Objects.equals(this.isQuarantinable, packageCopy.isQuarantinable) && Objects.equals(this.isQuarantined, packageCopy.isQuarantined) && @@ -1250,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, packageCopy.numFiles) && Objects.equals(this.originRepository, packageCopy.originRepository) && Objects.equals(this.originRepositoryUrl, packageCopy.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageCopy.osiApproved) && Objects.equals(this.packageType, packageCopy.packageType) && Objects.equals(this.policyViolated, packageCopy.policyViolated) && Objects.equals(this.rawLicense, packageCopy.rawLicense) && @@ -1294,7 +1320,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, 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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1332,6 +1358,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1349,6 +1376,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java index 111d93d4..4fda8546 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java @@ -131,6 +131,9 @@ public class PackageMove implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -182,6 +185,9 @@ public class PackageMove implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -644,6 +650,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -797,6 +812,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1233,6 +1257,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageMove.isCopyable) && Objects.equals(this.isDeleteable, packageMove.isDeleteable) && Objects.equals(this.isDownloadable, packageMove.isDownloadable) && + Objects.equals(this.isHidden, packageMove.isHidden) && Objects.equals(this.isMoveable, packageMove.isMoveable) && Objects.equals(this.isQuarantinable, packageMove.isQuarantinable) && Objects.equals(this.isQuarantined, packageMove.isQuarantined) && @@ -1250,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, packageMove.numFiles) && Objects.equals(this.originRepository, packageMove.originRepository) && Objects.equals(this.originRepositoryUrl, packageMove.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageMove.osiApproved) && Objects.equals(this.packageType, packageMove.packageType) && Objects.equals(this.policyViolated, packageMove.policyViolated) && Objects.equals(this.rawLicense, packageMove.rawLicense) && @@ -1294,7 +1320,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, 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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1332,6 +1358,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1349,6 +1376,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java index 9e06a11a..b8aff8f1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantine.java @@ -131,6 +131,9 @@ public class PackageQuarantine implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -182,6 +185,9 @@ public class PackageQuarantine implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -641,6 +647,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -794,6 +809,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1221,6 +1245,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageQuarantine.isCopyable) && Objects.equals(this.isDeleteable, packageQuarantine.isDeleteable) && Objects.equals(this.isDownloadable, packageQuarantine.isDownloadable) && + Objects.equals(this.isHidden, packageQuarantine.isHidden) && Objects.equals(this.isMoveable, packageQuarantine.isMoveable) && Objects.equals(this.isQuarantinable, packageQuarantine.isQuarantinable) && Objects.equals(this.isQuarantined, packageQuarantine.isQuarantined) && @@ -1238,6 +1263,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, packageQuarantine.numFiles) && Objects.equals(this.originRepository, packageQuarantine.originRepository) && Objects.equals(this.originRepositoryUrl, packageQuarantine.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageQuarantine.osiApproved) && Objects.equals(this.packageType, packageQuarantine.packageType) && Objects.equals(this.policyViolated, packageQuarantine.policyViolated) && Objects.equals(this.rawLicense, packageQuarantine.rawLicense) && @@ -1281,7 +1307,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, 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, rawLicense, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1319,6 +1345,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1336,6 +1363,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java index 08b5a7c7..6f953f7b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageResync.java @@ -131,6 +131,9 @@ public class PackageResync implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -182,6 +185,9 @@ public class PackageResync implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -644,6 +650,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -797,6 +812,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1233,6 +1257,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageResync.isCopyable) && Objects.equals(this.isDeleteable, packageResync.isDeleteable) && Objects.equals(this.isDownloadable, packageResync.isDownloadable) && + Objects.equals(this.isHidden, packageResync.isHidden) && Objects.equals(this.isMoveable, packageResync.isMoveable) && Objects.equals(this.isQuarantinable, packageResync.isQuarantinable) && Objects.equals(this.isQuarantined, packageResync.isQuarantined) && @@ -1250,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, packageResync.numFiles) && Objects.equals(this.originRepository, packageResync.originRepository) && Objects.equals(this.originRepositoryUrl, packageResync.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageResync.osiApproved) && Objects.equals(this.packageType, packageResync.packageType) && Objects.equals(this.policyViolated, packageResync.policyViolated) && Objects.equals(this.rawLicense, packageResync.rawLicense) && @@ -1294,7 +1320,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, 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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1332,6 +1358,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1349,6 +1376,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java index 9c5ea9f8..0780deb6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java @@ -47,6 +47,9 @@ public class PackageStatus implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -143,6 +146,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -340,6 +352,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageStatus.isCopyable) && Objects.equals(this.isDeleteable, packageStatus.isDeleteable) && Objects.equals(this.isDownloadable, packageStatus.isDownloadable) && + Objects.equals(this.isHidden, packageStatus.isHidden) && Objects.equals(this.isMoveable, packageStatus.isMoveable) && Objects.equals(this.isQuarantinable, packageStatus.isQuarantinable) && Objects.equals(this.isQuarantined, packageStatus.isQuarantined) && @@ -364,7 +377,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(isCancellable, isCopyable, isDeleteable, isDownloadable, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, selfUrl, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, syncFinishedAt, syncProgress); + return Objects.hash(isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, selfUrl, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, syncFinishedAt, syncProgress); } @@ -377,6 +390,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java index 51341ad7..d452e170 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTag.java @@ -131,6 +131,9 @@ public class PackageTag implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_immutable") private Boolean isImmutable = false; @@ -185,6 +188,9 @@ public class PackageTag implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -644,6 +650,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + public PackageTag isImmutable(Boolean isImmutable) { this.isImmutable = isImmutable; return this; @@ -815,6 +830,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1232,6 +1256,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, packageTag.isCopyable) && Objects.equals(this.isDeleteable, packageTag.isDeleteable) && Objects.equals(this.isDownloadable, packageTag.isDownloadable) && + Objects.equals(this.isHidden, packageTag.isHidden) && Objects.equals(this.isImmutable, packageTag.isImmutable) && Objects.equals(this.isMoveable, packageTag.isMoveable) && Objects.equals(this.isQuarantinable, packageTag.isQuarantinable) && @@ -1250,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, packageTag.numFiles) && Objects.equals(this.originRepository, packageTag.originRepository) && Objects.equals(this.originRepositoryUrl, packageTag.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageTag.osiApproved) && Objects.equals(this.packageType, packageTag.packageType) && Objects.equals(this.policyViolated, packageTag.policyViolated) && Objects.equals(this.rawLicense, packageTag.rawLicense) && @@ -1293,7 +1319,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isImmutable, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isImmutable, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1331,6 +1357,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).append("\n"); sb.append(" isImmutable: ").append(toIndentedString(isImmutable)).append("\n"); sb.append(" isMoveable: ").append(toIndentedString(isMoveable)).append("\n"); sb.append(" isQuarantinable: ").append(toIndentedString(isQuarantinable)).append("\n"); @@ -1349,6 +1376,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java index fdbfda79..e6b53037 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUpload.java @@ -128,6 +128,9 @@ public class PythonPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class PythonPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, pythonPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, pythonPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, pythonPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, pythonPackageUpload.isHidden) && Objects.equals(this.isMoveable, pythonPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, pythonPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, pythonPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, pythonPackageUpload.numFiles) && Objects.equals(this.originRepository, pythonPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, pythonPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, pythonPackageUpload.osiApproved) && Objects.equals(this.packageType, pythonPackageUpload.packageType) && Objects.equals(this.policyViolated, pythonPackageUpload.policyViolated) && Objects.equals(this.rawLicense, pythonPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).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 ef6fac3e..57e07e13 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 @@ -128,6 +128,9 @@ public class RawPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class RawPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -638,6 +644,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -800,6 +815,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1234,6 +1258,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, rawPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, rawPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rawPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, rawPackageUpload.isHidden) && Objects.equals(this.isMoveable, rawPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rawPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rawPackageUpload.isQuarantined) && @@ -1251,6 +1276,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, rawPackageUpload.numFiles) && Objects.equals(this.originRepository, rawPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, rawPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, rawPackageUpload.osiApproved) && Objects.equals(this.packageType, rawPackageUpload.packageType) && Objects.equals(this.policyViolated, rawPackageUpload.policyViolated) && Objects.equals(this.rawLicense, rawPackageUpload.rawLicense) && @@ -1294,7 +1320,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1331,6 +1357,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1348,6 +1375,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java index db5af326..169f25c4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java @@ -476,6 +476,9 @@ public MovePackagesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("namespace_url") private String namespaceUrl = null; + @SerializedName("npm_upstream_tags_take_precedence") + private Boolean npmUpstreamTagsTakePrecedence = null; + @SerializedName("nuget_native_signing_enabled") private Boolean nugetNativeSigningEnabled = null; @@ -1349,6 +1352,24 @@ public String getNamespaceUrl() { return namespaceUrl; } + public Repository npmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + return this; + } + + /** + * If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + * @return npmUpstreamTagsTakePrecedence + **/ + @ApiModelProperty(value = "If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.") + public Boolean isNpmUpstreamTagsTakePrecedence() { + return npmUpstreamTagsTakePrecedence; + } + + public void setNpmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + } + public Repository nugetNativeSigningEnabled(Boolean nugetNativeSigningEnabled) { this.nugetNativeSigningEnabled = nugetNativeSigningEnabled; return this; @@ -1983,6 +2004,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, repository.name) && Objects.equals(this.namespace, repository.namespace) && Objects.equals(this.namespaceUrl, repository.namespaceUrl) && + Objects.equals(this.npmUpstreamTagsTakePrecedence, repository.npmUpstreamTagsTakePrecedence) && Objects.equals(this.nugetNativeSigningEnabled, repository.nugetNativeSigningEnabled) && Objects.equals(this.numDownloads, repository.numDownloads) && Objects.equals(this.numPolicyViolatedPackages, repository.numPolicyViolatedPackages) && @@ -2027,7 +2049,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -2066,6 +2088,7 @@ public String toString() { 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(" npmUpstreamTagsTakePrecedence: ").append(toIndentedString(npmUpstreamTagsTakePrecedence)).append("\n"); sb.append(" nugetNativeSigningEnabled: ").append(toIndentedString(nugetNativeSigningEnabled)).append("\n"); sb.append(" numDownloads: ").append(toIndentedString(numDownloads)).append("\n"); sb.append(" numPolicyViolatedPackages: ").append(toIndentedString(numPolicyViolatedPackages)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java index 91627954..266d82b6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreate.java @@ -476,6 +476,9 @@ public MovePackagesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("namespace_url") private String namespaceUrl = null; + @SerializedName("npm_upstream_tags_take_precedence") + private Boolean npmUpstreamTagsTakePrecedence = null; + @SerializedName("nuget_native_signing_enabled") private Boolean nugetNativeSigningEnabled = null; @@ -1349,6 +1352,24 @@ public String getNamespaceUrl() { return namespaceUrl; } + public RepositoryCreate npmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + return this; + } + + /** + * If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + * @return npmUpstreamTagsTakePrecedence + **/ + @ApiModelProperty(value = "If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.") + public Boolean isNpmUpstreamTagsTakePrecedence() { + return npmUpstreamTagsTakePrecedence; + } + + public void setNpmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + } + public RepositoryCreate nugetNativeSigningEnabled(Boolean nugetNativeSigningEnabled) { this.nugetNativeSigningEnabled = nugetNativeSigningEnabled; return this; @@ -1992,6 +2013,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, repositoryCreate.name) && Objects.equals(this.namespace, repositoryCreate.namespace) && Objects.equals(this.namespaceUrl, repositoryCreate.namespaceUrl) && + Objects.equals(this.npmUpstreamTagsTakePrecedence, repositoryCreate.npmUpstreamTagsTakePrecedence) && Objects.equals(this.nugetNativeSigningEnabled, repositoryCreate.nugetNativeSigningEnabled) && Objects.equals(this.numDownloads, repositoryCreate.numDownloads) && Objects.equals(this.numPolicyViolatedPackages, repositoryCreate.numPolicyViolatedPackages) && @@ -2036,7 +2058,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(broadcastState, cdnUrl, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, createdAt, defaultPrivilege, deleteOwn, deletePackages, deletedAt, description, distributes, dockerRefreshTokensEnabled, ecdsaKeys, enforceEula, genericPackageIndexEnabled, gpgKeys, indexFiles, isOpenSource, isPrivate, isPublic, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, namespace, namespaceUrl, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, numDownloads, numPolicyViolatedPackages, numQuarantinedPackages, openSourceLicense, openSourceProjectUrl, packageCount, packageCountExclSubcomponents, packageGroupCount, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryType, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, selfHtmlUrl, selfUrl, selfWebappUrl, showSetupAll, size, sizeStr, slug, slugPerm, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -2075,6 +2097,7 @@ public String toString() { 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(" npmUpstreamTagsTakePrecedence: ").append(toIndentedString(npmUpstreamTagsTakePrecedence)).append("\n"); sb.append(" nugetNativeSigningEnabled: ").append(toIndentedString(nugetNativeSigningEnabled)).append("\n"); sb.append(" numDownloads: ").append(toIndentedString(numDownloads)).append("\n"); sb.append(" numPolicyViolatedPackages: ").append(toIndentedString(numPolicyViolatedPackages)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreateRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreateRequest.java index ec9d3db5..ef969d5e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreateRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryCreateRequest.java @@ -443,6 +443,9 @@ public MovePackagesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("name") private String name = null; + @SerializedName("npm_upstream_tags_take_precedence") + private Boolean npmUpstreamTagsTakePrecedence = null; + @SerializedName("nuget_native_signing_enabled") private Boolean nugetNativeSigningEnabled = null; @@ -1183,6 +1186,24 @@ public void setName(String name) { this.name = name; } + public RepositoryCreateRequest npmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + return this; + } + + /** + * If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + * @return npmUpstreamTagsTakePrecedence + **/ + @ApiModelProperty(value = "If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.") + public Boolean isNpmUpstreamTagsTakePrecedence() { + return npmUpstreamTagsTakePrecedence; + } + + public void setNpmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + } + public RepositoryCreateRequest nugetNativeSigningEnabled(Boolean nugetNativeSigningEnabled) { this.nugetNativeSigningEnabled = nugetNativeSigningEnabled; return this; @@ -1699,6 +1720,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.moveOwn, repositoryCreateRequest.moveOwn) && Objects.equals(this.movePackages, repositoryCreateRequest.movePackages) && Objects.equals(this.name, repositoryCreateRequest.name) && + Objects.equals(this.npmUpstreamTagsTakePrecedence, repositoryCreateRequest.npmUpstreamTagsTakePrecedence) && Objects.equals(this.nugetNativeSigningEnabled, repositoryCreateRequest.nugetNativeSigningEnabled) && Objects.equals(this.openSourceLicense, repositoryCreateRequest.openSourceLicense) && Objects.equals(this.openSourceProjectUrl, repositoryCreateRequest.openSourceProjectUrl) && @@ -1730,7 +1752,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, defaultPrivilege, deleteOwn, deletePackages, description, distributes, dockerRefreshTokensEnabled, enforceEula, genericPackageIndexEnabled, indexFiles, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, nugetNativeSigningEnabled, openSourceLicense, openSourceProjectUrl, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, showSetupAll, slug, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(broadcastState, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, defaultPrivilege, deleteOwn, deletePackages, description, distributes, dockerRefreshTokensEnabled, enforceEula, genericPackageIndexEnabled, indexFiles, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, openSourceLicense, openSourceProjectUrl, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, showSetupAll, slug, storageRegion, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -1759,6 +1781,7 @@ public String toString() { sb.append(" moveOwn: ").append(toIndentedString(moveOwn)).append("\n"); sb.append(" movePackages: ").append(toIndentedString(movePackages)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" npmUpstreamTagsTakePrecedence: ").append(toIndentedString(npmUpstreamTagsTakePrecedence)).append("\n"); sb.append(" nugetNativeSigningEnabled: ").append(toIndentedString(nugetNativeSigningEnabled)).append("\n"); sb.append(" openSourceLicense: ").append(toIndentedString(openSourceLicense)).append("\n"); sb.append(" openSourceProjectUrl: ").append(toIndentedString(openSourceProjectUrl)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java new file mode 100644 index 00000000..d1d21df1 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519Key.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * RepositoryEd25519Key + */ + +public class RepositoryEd25519Key implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("active") + private Boolean active = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + @SerializedName("default") + private Boolean _default = null; + + @SerializedName("fingerprint") + private String fingerprint = null; + + @SerializedName("fingerprint_short") + private String fingerprintShort = null; + + @SerializedName("public_key") + private String publicKey = null; + + /** + * If selected this is the active key for this repository. + * @return active + **/ + @ApiModelProperty(value = "If selected this is the active key for this repository.") + public Boolean isActive() { + return active; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * If selected this is the default key for this repository. + * @return _default + **/ + @ApiModelProperty(value = "If selected this is the default key for this repository.") + public Boolean isDefault() { + return _default; + } + + /** + * Uppercase hex-encoded SHA-256 fingerprint of the public key. + * @return fingerprint + **/ + @Size(min=1) @ApiModelProperty(value = "Uppercase hex-encoded SHA-256 fingerprint of the public key.") + public String getFingerprint() { + return fingerprint; + } + + /** + * Get fingerprintShort + * @return fingerprintShort + **/ + @ApiModelProperty(value = "") + public String getFingerprintShort() { + return fingerprintShort; + } + + /** + * The public key given to repository users. + * @return publicKey + **/ + @Size(min=1) @ApiModelProperty(value = "The public key given to repository users.") + public String getPublicKey() { + return publicKey; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepositoryEd25519Key repositoryEd25519Key = (RepositoryEd25519Key) o; + return Objects.equals(this.active, repositoryEd25519Key.active) && + Objects.equals(this.createdAt, repositoryEd25519Key.createdAt) && + Objects.equals(this._default, repositoryEd25519Key._default) && + Objects.equals(this.fingerprint, repositoryEd25519Key.fingerprint) && + Objects.equals(this.fingerprintShort, repositoryEd25519Key.fingerprintShort) && + Objects.equals(this.publicKey, repositoryEd25519Key.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(active, createdAt, _default, fingerprint, fingerprintShort, publicKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepositoryEd25519Key {\n"); + + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); + sb.append(" fingerprintShort: ").append(toIndentedString(fingerprintShort)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).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/RepositoryEd25519KeyCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519KeyCreate.java new file mode 100644 index 00000000..75b67f5b --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryEd25519KeyCreate.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * RepositoryEd25519KeyCreate + */ + +public class RepositoryEd25519KeyCreate implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("ed25519_passphrase") + private String ed25519Passphrase = null; + + @SerializedName("ed25519_private_key") + private String ed25519PrivateKey = null; + + public RepositoryEd25519KeyCreate ed25519Passphrase(String ed25519Passphrase) { + this.ed25519Passphrase = ed25519Passphrase; + return this; + } + + /** + * The Ed25519 passphrase used for signing. + * @return ed25519Passphrase + **/ + @Size(min=1) @ApiModelProperty(value = "The Ed25519 passphrase used for signing.") + public String getEd25519Passphrase() { + return ed25519Passphrase; + } + + public void setEd25519Passphrase(String ed25519Passphrase) { + this.ed25519Passphrase = ed25519Passphrase; + } + + public RepositoryEd25519KeyCreate ed25519PrivateKey(String ed25519PrivateKey) { + this.ed25519PrivateKey = ed25519PrivateKey; + return this; + } + + /** + * The Ed25519 private key. + * @return ed25519PrivateKey + **/ + @NotNull + @Size(min=1) @ApiModelProperty(required = true, value = "The Ed25519 private key.") + public String getEd25519PrivateKey() { + return ed25519PrivateKey; + } + + public void setEd25519PrivateKey(String ed25519PrivateKey) { + this.ed25519PrivateKey = ed25519PrivateKey; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepositoryEd25519KeyCreate repositoryEd25519KeyCreate = (RepositoryEd25519KeyCreate) o; + return Objects.equals(this.ed25519Passphrase, repositoryEd25519KeyCreate.ed25519Passphrase) && + Objects.equals(this.ed25519PrivateKey, repositoryEd25519KeyCreate.ed25519PrivateKey); + } + + @Override + public int hashCode() { + return Objects.hash(ed25519Passphrase, ed25519PrivateKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepositoryEd25519KeyCreate {\n"); + + sb.append(" ed25519Passphrase: ").append(toIndentedString(ed25519Passphrase)).append("\n"); + sb.append(" ed25519PrivateKey: ").append(toIndentedString(ed25519PrivateKey)).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/RepositoryRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryRequestPatch.java index b5bf0475..e66d7948 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryRequestPatch.java @@ -443,6 +443,9 @@ public MovePackagesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("name") private String name = null; + @SerializedName("npm_upstream_tags_take_precedence") + private Boolean npmUpstreamTagsTakePrecedence = null; + @SerializedName("nuget_native_signing_enabled") private Boolean nugetNativeSigningEnabled = null; @@ -1179,6 +1182,24 @@ public void setName(String name) { this.name = name; } + public RepositoryRequestPatch npmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + return this; + } + + /** + * If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + * @return npmUpstreamTagsTakePrecedence + **/ + @ApiModelProperty(value = "If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.") + public Boolean isNpmUpstreamTagsTakePrecedence() { + return npmUpstreamTagsTakePrecedence; + } + + public void setNpmUpstreamTagsTakePrecedence(Boolean npmUpstreamTagsTakePrecedence) { + this.npmUpstreamTagsTakePrecedence = npmUpstreamTagsTakePrecedence; + } + public RepositoryRequestPatch nugetNativeSigningEnabled(Boolean nugetNativeSigningEnabled) { this.nugetNativeSigningEnabled = nugetNativeSigningEnabled; return this; @@ -1677,6 +1698,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.moveOwn, repositoryRequestPatch.moveOwn) && Objects.equals(this.movePackages, repositoryRequestPatch.movePackages) && Objects.equals(this.name, repositoryRequestPatch.name) && + Objects.equals(this.npmUpstreamTagsTakePrecedence, repositoryRequestPatch.npmUpstreamTagsTakePrecedence) && Objects.equals(this.nugetNativeSigningEnabled, repositoryRequestPatch.nugetNativeSigningEnabled) && Objects.equals(this.openSourceLicense, repositoryRequestPatch.openSourceLicense) && Objects.equals(this.openSourceProjectUrl, repositoryRequestPatch.openSourceProjectUrl) && @@ -1707,7 +1729,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(broadcastState, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, defaultPrivilege, deleteOwn, deletePackages, description, distributes, dockerRefreshTokensEnabled, enforceEula, genericPackageIndexEnabled, indexFiles, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, nugetNativeSigningEnabled, openSourceLicense, openSourceProjectUrl, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, showSetupAll, slug, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); + return Objects.hash(broadcastState, contentKind, contextualAuthRealm, copyOwn, copyPackages, cosignSigningEnabled, defaultPrivilege, deleteOwn, deletePackages, description, distributes, dockerRefreshTokensEnabled, enforceEula, genericPackageIndexEnabled, indexFiles, isPublicHidden, manageEntitlementsPrivilege, moveOwn, movePackages, name, npmUpstreamTagsTakePrecedence, nugetNativeSigningEnabled, openSourceLicense, openSourceProjectUrl, proxyNpmjs, proxyPypi, rawPackageIndexEnabled, rawPackageIndexSignaturesEnabled, replacePackages, replacePackagesByDefault, repositoryTypeStr, resyncOwn, resyncPackages, scanOwn, scanPackages, showSetupAll, slug, strictNpmValidation, tagPreReleasesAsLatest, useDebianLabels, useDefaultCargoUpstream, useEntitlementsPrivilege, useNoarchPackages, useSourcePackages, useVulnerabilityScanning, userEntitlementsEnabled, viewStatistics); } @@ -1736,6 +1758,7 @@ public String toString() { sb.append(" moveOwn: ").append(toIndentedString(moveOwn)).append("\n"); sb.append(" movePackages: ").append(toIndentedString(movePackages)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" npmUpstreamTagsTakePrecedence: ").append(toIndentedString(npmUpstreamTagsTakePrecedence)).append("\n"); sb.append(" nugetNativeSigningEnabled: ").append(toIndentedString(nugetNativeSigningEnabled)).append("\n"); sb.append(" openSourceLicense: ").append(toIndentedString(openSourceLicense)).append("\n"); sb.append(" openSourceProjectUrl: ").append(toIndentedString(openSourceProjectUrl)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java index a2458bee..8a899658 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUpload.java @@ -128,6 +128,9 @@ public class RpmPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class RpmPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, rpmPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, rpmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rpmPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, rpmPackageUpload.isHidden) && Objects.equals(this.isMoveable, rpmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rpmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rpmPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, rpmPackageUpload.numFiles) && Objects.equals(this.originRepository, rpmPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, rpmPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, rpmPackageUpload.osiApproved) && Objects.equals(this.packageType, rpmPackageUpload.packageType) && Objects.equals(this.policyViolated, rpmPackageUpload.policyViolated) && Objects.equals(this.rawLicense, rpmPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java index 5d3fb5f4..819b0e3a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUpload.java @@ -128,6 +128,9 @@ public class RubyPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class RubyPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, rubyPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, rubyPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rubyPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, rubyPackageUpload.isHidden) && Objects.equals(this.isMoveable, rubyPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rubyPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rubyPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, rubyPackageUpload.numFiles) && Objects.equals(this.originRepository, rubyPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, rubyPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, rubyPackageUpload.osiApproved) && Objects.equals(this.packageType, rubyPackageUpload.packageType) && Objects.equals(this.policyViolated, rubyPackageUpload.policyViolated) && Objects.equals(this.rawLicense, rubyPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ServiceTeams.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ServiceTeams.java index ddfa16d3..ba4ffdac 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ServiceTeams.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ServiceTeams.java @@ -34,6 +34,9 @@ public class ServiceTeams implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("name") + private String name = null; + /** * The team role associated with the service */ @@ -87,6 +90,15 @@ public RoleEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("slug") private String slug = null; + /** + * The name of the team + * @return name + **/ + @Size(min=1) @ApiModelProperty(value = "The name of the team") + public String getName() { + return name; + } + public ServiceTeams role(RoleEnum role) { this.role = role; return this; @@ -134,13 +146,14 @@ public boolean equals(java.lang.Object o) { return false; } ServiceTeams serviceTeams = (ServiceTeams) o; - return Objects.equals(this.role, serviceTeams.role) && + return Objects.equals(this.name, serviceTeams.name) && + Objects.equals(this.role, serviceTeams.role) && Objects.equals(this.slug, serviceTeams.slug); } @Override public int hashCode() { - return Objects.hash(role, slug); + return Objects.hash(name, role, slug); } @@ -149,6 +162,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ServiceTeams {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); sb.append("}"); 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 2920505d..9cc6553b 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 @@ -134,6 +134,9 @@ public class SwiftPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -188,6 +191,9 @@ public class SwiftPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -680,6 +686,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -861,6 +876,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1335,6 +1359,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, swiftPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, swiftPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, swiftPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, swiftPackageUpload.isHidden) && Objects.equals(this.isMoveable, swiftPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, swiftPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, swiftPackageUpload.isQuarantined) && @@ -1353,6 +1378,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, swiftPackageUpload.numFiles) && Objects.equals(this.originRepository, swiftPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, swiftPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, swiftPackageUpload.osiApproved) && Objects.equals(this.packageType, swiftPackageUpload.packageType) && Objects.equals(this.policyViolated, swiftPackageUpload.policyViolated) && Objects.equals(this.rawLicense, swiftPackageUpload.rawLicense) && @@ -1398,7 +1424,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architectures, authorName, authorOrg, 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, licenseUrl, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, packageType, policyViolated, rawLicense, readmeUrl, release, repository, repositoryUrl, scope, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, authorName, authorOrg, 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, licenseUrl, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, readmeUrl, release, repository, repositoryUrl, scope, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1437,6 +1463,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1455,6 +1482,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java index e7a920ad..6e58f3e0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUpload.java @@ -128,6 +128,9 @@ public class TerraformPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class TerraformPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, terraformPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, terraformPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, terraformPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, terraformPackageUpload.isHidden) && Objects.equals(this.isMoveable, terraformPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, terraformPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, terraformPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, terraformPackageUpload.numFiles) && Objects.equals(this.originRepository, terraformPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, terraformPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, terraformPackageUpload.osiApproved) && Objects.equals(this.packageType, terraformPackageUpload.packageType) && Objects.equals(this.policyViolated, terraformPackageUpload.policyViolated) && Objects.equals(this.rawLicense, terraformPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java index 3ae1a1ca..3a502a99 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 @@ -128,6 +128,9 @@ public class VagrantPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class VagrantPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -632,6 +638,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -795,6 +810,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1240,6 +1264,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, vagrantPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, vagrantPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vagrantPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, vagrantPackageUpload.isHidden) && Objects.equals(this.isMoveable, vagrantPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vagrantPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vagrantPackageUpload.isQuarantined) && @@ -1257,6 +1282,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, vagrantPackageUpload.numFiles) && Objects.equals(this.originRepository, vagrantPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, vagrantPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, vagrantPackageUpload.osiApproved) && Objects.equals(this.packageType, vagrantPackageUpload.packageType) && Objects.equals(this.policyViolated, vagrantPackageUpload.policyViolated) && Objects.equals(this.provider, vagrantPackageUpload.provider) && @@ -1301,7 +1327,7 @@ public boolean equals(java.lang.Object o) { @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, provider, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, provider, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1338,6 +1364,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1355,6 +1382,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java index 49e1b7b3..b9b92d42 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUpload.java @@ -128,6 +128,9 @@ public class VsxPackageUpload implements Serializable { @SerializedName("is_downloadable") private Boolean isDownloadable = null; + @SerializedName("is_hidden") + private Boolean isHidden = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -179,6 +182,9 @@ public class VsxPackageUpload implements Serializable { @SerializedName("origin_repository_url") private String originRepositoryUrl = null; + @SerializedName("osi_approved") + private Boolean osiApproved = null; + @SerializedName("package_type") private java.math.BigInteger packageType = null; @@ -629,6 +635,15 @@ public Boolean isIsDownloadable() { return isDownloadable; } + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + public Boolean isIsHidden() { + return isHidden; + } + /** * Get isMoveable * @return isMoveable @@ -782,6 +797,15 @@ public String getOriginRepositoryUrl() { return originRepositoryUrl; } + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + /** * The type of package contents. * @return packageType @@ -1198,6 +1222,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isCopyable, vsxPackageUpload.isCopyable) && Objects.equals(this.isDeleteable, vsxPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vsxPackageUpload.isDownloadable) && + Objects.equals(this.isHidden, vsxPackageUpload.isHidden) && Objects.equals(this.isMoveable, vsxPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vsxPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vsxPackageUpload.isQuarantined) && @@ -1215,6 +1240,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.numFiles, vsxPackageUpload.numFiles) && Objects.equals(this.originRepository, vsxPackageUpload.originRepository) && Objects.equals(this.originRepositoryUrl, vsxPackageUpload.originRepositoryUrl) && + Objects.equals(this.osiApproved, vsxPackageUpload.osiApproved) && Objects.equals(this.packageType, vsxPackageUpload.packageType) && Objects.equals(this.policyViolated, vsxPackageUpload.policyViolated) && Objects.equals(this.rawLicense, vsxPackageUpload.rawLicense) && @@ -1258,7 +1284,7 @@ public boolean equals(java.lang.Object o) { @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, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, isHidden, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1295,6 +1321,7 @@ public String toString() { 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(" isHidden: ").append(toIndentedString(isHidden)).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"); @@ -1312,6 +1339,7 @@ public String toString() { 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(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java index 31009cc3..e1251ee4 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java @@ -130,8 +130,9 @@ public void entitlementsListTest() throws Exception { Boolean showTokens = null; String query = null; Boolean active = null; + Boolean excludeOtherUserTokens = null; String sort = null; - List response = api.entitlementsList(owner, repo, page, pageSize, showTokens, query, active, sort); + List response = api.entitlementsList(owner, repo, page, pageSize, showTokens, query, active, excludeOtherUserTokens, sort); // TODO: test validations } 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 3ccf1620..24367739 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 @@ -16,6 +16,7 @@ import io.cloudsmith.api.models.DynamicMapping; import io.cloudsmith.api.models.ErrorDetail; import io.cloudsmith.api.models.Organization; +import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; import io.cloudsmith.api.models.OrganizationGroupSyncRequest; import io.cloudsmith.api.models.OrganizationGroupSyncStatus; @@ -75,6 +76,24 @@ public class OrgsApiTest { private final OrgsApi api = new OrgsApi(); + /** + * Get the details for all custom domains. + * + * Get the details for all custom domains. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsCustomDomainsListTest() throws Exception { + String org = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.orgsCustomDomainsList(org, page, pageSize); + + // TODO: test validations + } + /** * Delete the specified organization. * diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RecycleBinApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RecycleBinApiTest.java index 32b41ebd..736ce800 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RecycleBinApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RecycleBinApiTest.java @@ -36,37 +36,37 @@ public class RecycleBinApiTest { /** - * List soft-deleted packages in recycle bin + * * - * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. * * @throws Exception * if the Api call fails */ @Test - public void recycleBinListTest() throws Exception { + public void recycleBinActionTest() throws Exception { String owner = null; - java.math.BigInteger page = null; - java.math.BigInteger pageSize = null; - String repository = null; - List response = api.recycleBinList(owner, page, pageSize, repository); + PackageRecycleBin data = null; + PackageBulkActionResponse response = api.recycleBinAction(owner, data); // TODO: test validations } /** - * + * List soft-deleted packages in recycle bin * - * Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + * Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. * * @throws Exception * if the Api call fails */ @Test - public void recycleBinRecycleBinActionTest() throws Exception { + public void recycleBinListTest() throws Exception { String owner = null; - PackageRecycleBin data = null; - PackageBulkActionResponse response = api.recycleBinRecycleBinAction(owner, data); + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + String repository = null; + List response = api.recycleBinList(owner, page, pageSize, repository); // TODO: test validations } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java index 1b69709e..ec0e0bd5 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 @@ -25,6 +25,9 @@ import io.cloudsmith.api.models.CondaUpstream; import io.cloudsmith.api.models.CondaUpstreamRequest; import io.cloudsmith.api.models.CondaUpstreamRequestPatch; +import io.cloudsmith.api.models.ConnectedRepository; +import io.cloudsmith.api.models.ConnectedRepositoryRequest; +import io.cloudsmith.api.models.ConnectedRepositoryRequestPatch; import io.cloudsmith.api.models.CranUpstream; import io.cloudsmith.api.models.CranUpstreamRequest; import io.cloudsmith.api.models.CranUpstreamRequestPatch; @@ -53,6 +56,7 @@ import io.cloudsmith.api.models.HuggingfaceUpstream; import io.cloudsmith.api.models.HuggingfaceUpstreamRequest; import io.cloudsmith.api.models.HuggingfaceUpstreamRequestPatch; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.MavenUpstream; import io.cloudsmith.api.models.MavenUpstreamRequest; import io.cloudsmith.api.models.MavenUpstreamRequestPatch; @@ -70,6 +74,8 @@ import io.cloudsmith.api.models.RepositoryCreateRequest; import io.cloudsmith.api.models.RepositoryEcdsaKey; import io.cloudsmith.api.models.RepositoryEcdsaKeyCreate; +import io.cloudsmith.api.models.RepositoryEd25519Key; +import io.cloudsmith.api.models.RepositoryEd25519KeyCreate; import io.cloudsmith.api.models.RepositoryGeoIpRules; import io.cloudsmith.api.models.RepositoryGeoIpRulesRequest; import io.cloudsmith.api.models.RepositoryGeoIpRulesRequestPatch; @@ -169,6 +175,117 @@ public void repoRetentionReadTest() throws Exception { // TODO: test validations } + /** + * Create a connected repository for this repository. + * + * Create a connected repository for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedCreateTest() throws Exception { + String owner = null; + String identifier = null; + ConnectedRepositoryRequest data = null; + ConnectedRepository response = api.reposConnectedCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a connected repository for this repository. + * + * Delete a connected repository for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposConnectedDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List connected repositories for this repository. + * + * List connected repositories for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + InlineResponse2001 response = api.reposConnectedList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a connected repository for this repository. + * + * Partially update a connected repository for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedPartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + ConnectedRepositoryRequestPatch data = null; + ConnectedRepository response = api.reposConnectedPartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a connected repository for this repository. + * + * Retrieve a connected repository for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + ConnectedRepository response = api.reposConnectedRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a connected repository for this repository. + * + * Update a connected repository for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposConnectedUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + ConnectedRepositoryRequest data = null; + ConnectedRepository response = api.reposConnectedUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a new repository in a given namespace. * @@ -189,7 +306,7 @@ public void reposCreateTest() throws Exception { /** * * - * Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + * Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. * * @throws Exception * if the Api call fails @@ -255,6 +372,58 @@ public void reposEcdsaRegenerateTest() throws Exception { // TODO: test validations } + /** + * Set the active Ed25519 key for the Repository. + * + * Set the active Ed25519 key for the Repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposEd25519CreateTest() throws Exception { + String owner = null; + String identifier = null; + RepositoryEd25519KeyCreate data = null; + RepositoryEd25519Key response = api.reposEd25519Create(owner, identifier, data); + + // TODO: test validations + } + + /** + * Retrieve the active Ed25519 key for the Repository. + * + * Retrieve the active Ed25519 key for the Repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposEd25519ListTest() throws Exception { + String owner = null; + String identifier = null; + RepositoryEd25519Key response = api.reposEd25519List(owner, identifier); + + // TODO: test validations + } + + /** + * Regenerate Ed25519 Key for the Repository. + * + * Regenerate Ed25519 Key for the Repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposEd25519RegenerateTest() throws Exception { + String owner = null; + String identifier = null; + RepositoryEd25519Key response = api.reposEd25519Regenerate(owner, identifier); + + // TODO: test validations + } + /** * Disable GeoIP for this repository. * diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java index 93dd3972..6ece5c1e 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java @@ -14,7 +14,7 @@ package io.cloudsmith.api.apis; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse2001; +import io.cloudsmith.api.models.InlineResponse2002; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -95,7 +95,7 @@ public void userTokensCreateTest() throws Exception { public void userTokensListTest() throws Exception { java.math.BigInteger page = null; java.math.BigInteger pageSize = null; - InlineResponse2001 response = api.userTokensList(page, pageSize); + InlineResponse2002 response = api.userTokensList(page, pageSize); // TODO: test validations } diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index f510a895..0f493a5b 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -4,7 +4,7 @@ The API to the Cloudsmith Service This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.26 +- Package version: 2.0.27 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -114,6 +114,7 @@ Class | Method | HTTP request | Description *MetricsApi* | [**metrics_packages_list**](docs/MetricsApi.md#metrics_packages_list) | **GET** /metrics/packages/{owner}/{repo}/ | View for listing package usage metrics, for a repository. *NamespacesApi* | [**namespaces_list**](docs/NamespacesApi.md#namespaces_list) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to. *NamespacesApi* | [**namespaces_read**](docs/NamespacesApi.md#namespaces_read) | **GET** /namespaces/{slug}/ | Get a specific namespace that the user belongs to. +*OrgsApi* | [**orgs_custom_domains_list**](docs/OrgsApi.md#orgs_custom_domains_list) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. *OrgsApi* | [**orgs_delete**](docs/OrgsApi.md#orgs_delete) | **DELETE** /orgs/{org}/ | Delete the specified organization. *OrgsApi* | [**orgs_deny_policy_create**](docs/OrgsApi.md#orgs_deny_policy_create) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. *OrgsApi* | [**orgs_deny_policy_delete**](docs/OrgsApi.md#orgs_deny_policy_delete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -263,16 +264,25 @@ Class | Method | HTTP request | Description *QuotaApi* | [**quota_oss_read**](docs/QuotaApi.md#quota_oss_read) | **GET** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. *QuotaApi* | [**quota_read**](docs/QuotaApi.md#quota_read) | **GET** /quota/{owner}/ | Quota usage for a given namespace. *RatesApi* | [**rates_limits_list**](docs/RatesApi.md#rates_limits_list) | **GET** /rates/limits/ | Endpoint to check rate limits for current user. +*RecycleBinApi* | [**recycle_bin_action**](docs/RecycleBinApi.md#recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | *RecycleBinApi* | [**recycle_bin_list**](docs/RecycleBinApi.md#recycle_bin_list) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -*RecycleBinApi* | [**recycle_bin_recycle_bin_action**](docs/RecycleBinApi.md#recycle_bin_recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | *ReposApi* | [**api_repos_geoip_status**](docs/ReposApi.md#api_repos_geoip_status) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. *ReposApi* | [**repo_retention_partial_update**](docs/ReposApi.md#repo_retention_partial_update) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. *ReposApi* | [**repo_retention_read**](docs/ReposApi.md#repo_retention_read) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +*ReposApi* | [**repos_connected_create**](docs/ReposApi.md#repos_connected_create) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +*ReposApi* | [**repos_connected_delete**](docs/ReposApi.md#repos_connected_delete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +*ReposApi* | [**repos_connected_list**](docs/ReposApi.md#repos_connected_list) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +*ReposApi* | [**repos_connected_partial_update**](docs/ReposApi.md#repos_connected_partial_update) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +*ReposApi* | [**repos_connected_read**](docs/ReposApi.md#repos_connected_read) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +*ReposApi* | [**repos_connected_update**](docs/ReposApi.md#repos_connected_update) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. *ReposApi* | [**repos_create**](docs/ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. *ReposApi* | [**repos_delete**](docs/ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | *ReposApi* | [**repos_ecdsa_create**](docs/ReposApi.md#repos_ecdsa_create) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. *ReposApi* | [**repos_ecdsa_list**](docs/ReposApi.md#repos_ecdsa_list) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. *ReposApi* | [**repos_ecdsa_regenerate**](docs/ReposApi.md#repos_ecdsa_regenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +*ReposApi* | [**repos_ed25519_create**](docs/ReposApi.md#repos_ed25519_create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +*ReposApi* | [**repos_ed25519_list**](docs/ReposApi.md#repos_ed25519_list) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +*ReposApi* | [**repos_ed25519_regenerate**](docs/ReposApi.md#repos_ed25519_regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. *ReposApi* | [**repos_geoip_disable**](docs/ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. *ReposApi* | [**repos_geoip_enable**](docs/ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. *ReposApi* | [**repos_geoip_partial_update**](docs/ReposApi.md#repos_geoip_partial_update) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -471,6 +481,9 @@ Class | Method | HTTP request | Description - [CondaUpstream](docs/CondaUpstream.md) - [CondaUpstreamRequest](docs/CondaUpstreamRequest.md) - [CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) + - [ConnectedRepository](docs/ConnectedRepository.md) + - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) + - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -532,6 +545,7 @@ Class | Method | HTTP request | Description - [HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) + - [InlineResponse2002](docs/InlineResponse2002.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -541,6 +555,7 @@ Class | Method | HTTP request | Description - [MavenUpstreamRequestPatch](docs/MavenUpstreamRequestPatch.md) - [McpPackageUpload](docs/McpPackageUpload.md) - [McpPackageUploadRequest](docs/McpPackageUploadRequest.md) + - [MemberTeams](docs/MemberTeams.md) - [Namespace](docs/Namespace.md) - [NamespaceAuditLog](docs/NamespaceAuditLog.md) - [NestedLicensePolicy](docs/NestedLicensePolicy.md) @@ -557,6 +572,8 @@ Class | Method | HTTP request | Description - [NugetUpstreamRequest](docs/NugetUpstreamRequest.md) - [NugetUpstreamRequestPatch](docs/NugetUpstreamRequestPatch.md) - [Organization](docs/Organization.md) + - [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) + - [OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [OrganizationGroupSync](docs/OrganizationGroupSync.md) - [OrganizationGroupSyncRequest](docs/OrganizationGroupSyncRequest.md) - [OrganizationGroupSyncStatus](docs/OrganizationGroupSyncStatus.md) @@ -645,6 +662,8 @@ Class | Method | HTTP request | Description - [RepositoryCreateRequest](docs/RepositoryCreateRequest.md) - [RepositoryEcdsaKey](docs/RepositoryEcdsaKey.md) - [RepositoryEcdsaKeyCreate](docs/RepositoryEcdsaKeyCreate.md) + - [RepositoryEd25519Key](docs/RepositoryEd25519Key.md) + - [RepositoryEd25519KeyCreate](docs/RepositoryEd25519KeyCreate.md) - [RepositoryGeoIpCidr](docs/RepositoryGeoIpCidr.md) - [RepositoryGeoIpCountryCode](docs/RepositoryGeoIpCountryCode.md) - [RepositoryGeoIpRules](docs/RepositoryGeoIpRules.md) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 4c8ba3ce..1b4e8e24 100644 --- a/bindings/python/src/build.json +++ b/bindings/python/src/build.json @@ -2,7 +2,7 @@ "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", "projectName": "cloudsmith_api", - "packageVersion": "2.0.26", + "packageVersion": "2.0.27", "packageUrl": "https://api.cloudsmith.io/?format=openapi", "sortParamsByRequiredFlag": true } diff --git a/bindings/python/src/cloudsmith_api/__init__.py b/bindings/python/src/cloudsmith_api/__init__.py index e4ce9113..43136be0 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -77,6 +77,9 @@ 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.connected_repository import ConnectedRepository +from cloudsmith_api.models.connected_repository_request import ConnectedRepositoryRequest +from cloudsmith_api.models.connected_repository_request_patch import ConnectedRepositoryRequestPatch 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 @@ -138,6 +141,7 @@ 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.inline_response2002 import InlineResponse2002 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -147,6 +151,7 @@ from cloudsmith_api.models.maven_upstream_request_patch import MavenUpstreamRequestPatch from cloudsmith_api.models.mcp_package_upload import McpPackageUpload from cloudsmith_api.models.mcp_package_upload_request import McpPackageUploadRequest +from cloudsmith_api.models.member_teams import MemberTeams from cloudsmith_api.models.namespace import Namespace from cloudsmith_api.models.namespace_audit_log import NamespaceAuditLog from cloudsmith_api.models.nested_license_policy import NestedLicensePolicy @@ -163,6 +168,8 @@ from cloudsmith_api.models.nuget_upstream_request import NugetUpstreamRequest from cloudsmith_api.models.nuget_upstream_request_patch import NugetUpstreamRequestPatch from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_custom_domain_nested_repo import OrganizationCustomDomainNestedRepo +from cloudsmith_api.models.organization_custom_domains import OrganizationCustomDomains from cloudsmith_api.models.organization_group_sync import OrganizationGroupSync from cloudsmith_api.models.organization_group_sync_request import OrganizationGroupSyncRequest from cloudsmith_api.models.organization_group_sync_status import OrganizationGroupSyncStatus @@ -251,6 +258,8 @@ from cloudsmith_api.models.repository_create_request import RepositoryCreateRequest from cloudsmith_api.models.repository_ecdsa_key import RepositoryEcdsaKey from cloudsmith_api.models.repository_ecdsa_key_create import RepositoryEcdsaKeyCreate +from cloudsmith_api.models.repository_ed25519_key import RepositoryEd25519Key +from cloudsmith_api.models.repository_ed25519_key_create import RepositoryEd25519KeyCreate from cloudsmith_api.models.repository_geo_ip_cidr import RepositoryGeoIpCidr from cloudsmith_api.models.repository_geo_ip_country_code import RepositoryGeoIpCountryCode from cloudsmith_api.models.repository_geo_ip_rules import RepositoryGeoIpRules diff --git a/bindings/python/src/cloudsmith_api/api/entitlements_api.py b/bindings/python/src/cloudsmith_api/api/entitlements_api.py index 5ba69397..340dcf36 100644 --- a/bindings/python/src/cloudsmith_api/api/entitlements_api.py +++ b/bindings/python/src/cloudsmith_api/api/entitlements_api.py @@ -510,6 +510,7 @@ def entitlements_list(self, owner, repo, **kwargs): # noqa: E501 :param bool show_tokens: Show entitlement token strings in results :param str query: A search term for querying names of entitlements. :param bool active: If true, only include active tokens + :param bool exclude_other_user_tokens: If true, exclude user tokens that belong to other users :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. :return: list[RepositoryToken] If the method is called asynchronously, @@ -539,13 +540,14 @@ def entitlements_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 :param bool show_tokens: Show entitlement token strings in results :param str query: A search term for querying names of entitlements. :param bool active: If true, only include active tokens + :param bool exclude_other_user_tokens: If true, exclude user tokens that belong to other users :param str sort: A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. :return: list[RepositoryToken] If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'show_tokens', 'query', 'active', 'sort'] # noqa: E501 + all_params = ['owner', 'repo', 'page', 'page_size', 'show_tokens', 'query', 'active', 'exclude_other_user_tokens', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -588,6 +590,8 @@ def entitlements_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 query_params.append(('query', params['query'])) # noqa: E501 if 'active' in params: query_params.append(('active', params['active'])) # noqa: E501 + if 'exclude_other_user_tokens' in params: + query_params.append(('exclude_other_user_tokens', params['exclude_other_user_tokens'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py index a8c32ed6..e1fa8f14 100644 --- a/bindings/python/src/cloudsmith_api/api/orgs_api.py +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -33,6 +33,113 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def orgs_custom_domains_list(self, org, **kwargs): # noqa: E501 + """Get the details for all custom domains. # noqa: E501 + + Get the details for all custom domains. # 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_custom_domains_list(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[OrganizationCustomDomains] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_custom_domains_list_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_custom_domains_list_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_custom_domains_list_with_http_info(self, org, **kwargs): # noqa: E501 + """Get the details for all custom domains. # noqa: E501 + + Get the details for all custom domains. # 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_custom_domains_list_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[OrganizationCustomDomains] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_custom_domains_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_custom_domains_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # 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}/custom-domains/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[OrganizationCustomDomains]', # 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_delete(self, org, **kwargs): # noqa: E501 """Delete the specified organization. # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/recycle_bin_api.py b/bindings/python/src/cloudsmith_api/api/recycle_bin_api.py index 6270ffc0..0b6a1cee 100644 --- a/bindings/python/src/cloudsmith_api/api/recycle_bin_api.py +++ b/bindings/python/src/cloudsmith_api/api/recycle_bin_api.py @@ -33,51 +33,47 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def recycle_bin_list(self, owner, **kwargs): # noqa: E501 - """List soft-deleted packages in recycle bin # noqa: E501 + def recycle_bin_action(self, owner, **kwargs): # noqa: E501 + """recycle_bin_action # noqa: E501 - Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # noqa: E501 + Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.recycle_bin_list(owner, async_req=True) + >>> thread = api.recycle_bin_action(owner, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param str repository: Filter packages by repository slug - :return: list[RecycleBinPackage] + :param PackageRecycleBin data: + :return: PackageBulkActionResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.recycle_bin_list_with_http_info(owner, **kwargs) # noqa: E501 + return self.recycle_bin_action_with_http_info(owner, **kwargs) # noqa: E501 else: - (data) = self.recycle_bin_list_with_http_info(owner, **kwargs) # noqa: E501 + (data) = self.recycle_bin_action_with_http_info(owner, **kwargs) # noqa: E501 return data - def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 - """List soft-deleted packages in recycle bin # noqa: E501 + def recycle_bin_action_with_http_info(self, owner, **kwargs): # noqa: E501 + """recycle_bin_action # noqa: E501 - Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # noqa: E501 + Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.recycle_bin_list_with_http_info(owner, async_req=True) + >>> thread = api.recycle_bin_action_with_http_info(owner, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param str repository: Filter packages by repository slug - :return: list[RecycleBinPackage] + :param PackageRecycleBin data: + :return: PackageBulkActionResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'page', 'page_size', 'repository'] # noqa: E501 + all_params = ['owner', 'data'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,14 +84,14 @@ def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method recycle_bin_list" % key + " to method recycle_bin_action" % 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 `recycle_bin_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `recycle_bin_action`") # noqa: E501 collection_formats = {} @@ -104,12 +100,6 @@ def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 path_params['owner'] = params['owner'] # noqa: E501 query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) # noqa: E501 - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) # noqa: E501 - if 'repository' in params: - query_params.append(('repository', params['repository'])) # noqa: E501 header_params = {} @@ -117,6 +107,8 @@ def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 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 @@ -129,14 +121,14 @@ def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/recycle-bin/{owner}/', 'GET', + '/recycle-bin/{owner}/action/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[RecycleBinPackage]', # noqa: E501 + response_type='PackageBulkActionResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -144,47 +136,51 @@ def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def recycle_bin_recycle_bin_action(self, owner, **kwargs): # noqa: E501 - """recycle_bin_recycle_bin_action # noqa: E501 + def recycle_bin_list(self, owner, **kwargs): # noqa: E501 + """List soft-deleted packages in recycle bin # noqa: E501 - Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # noqa: E501 + Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.recycle_bin_recycle_bin_action(owner, async_req=True) + >>> thread = api.recycle_bin_list(owner, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param PackageRecycleBin data: - :return: PackageBulkActionResponse + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param str repository: Filter packages by repository slug + :return: list[RecycleBinPackage] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.recycle_bin_recycle_bin_action_with_http_info(owner, **kwargs) # noqa: E501 + return self.recycle_bin_list_with_http_info(owner, **kwargs) # noqa: E501 else: - (data) = self.recycle_bin_recycle_bin_action_with_http_info(owner, **kwargs) # noqa: E501 + (data) = self.recycle_bin_list_with_http_info(owner, **kwargs) # noqa: E501 return data - def recycle_bin_recycle_bin_action_with_http_info(self, owner, **kwargs): # noqa: E501 - """recycle_bin_recycle_bin_action # noqa: E501 + def recycle_bin_list_with_http_info(self, owner, **kwargs): # noqa: E501 + """List soft-deleted packages in recycle bin # noqa: E501 - Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # noqa: E501 + Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.recycle_bin_recycle_bin_action_with_http_info(owner, async_req=True) + >>> thread = api.recycle_bin_list_with_http_info(owner, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param PackageRecycleBin data: - :return: PackageBulkActionResponse + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param str repository: Filter packages by repository slug + :return: list[RecycleBinPackage] If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'data'] # noqa: E501 + all_params = ['owner', 'page', 'page_size', 'repository'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -195,14 +191,14 @@ def recycle_bin_recycle_bin_action_with_http_info(self, owner, **kwargs): # noq if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method recycle_bin_recycle_bin_action" % key + " to method recycle_bin_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 `recycle_bin_recycle_bin_action`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `recycle_bin_list`") # noqa: E501 collection_formats = {} @@ -211,6 +207,12 @@ def recycle_bin_recycle_bin_action_with_http_info(self, owner, **kwargs): # noq path_params['owner'] = params['owner'] # noqa: E501 query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'repository' in params: + query_params.append(('repository', params['repository'])) # noqa: E501 header_params = {} @@ -218,8 +220,6 @@ def recycle_bin_recycle_bin_action_with_http_info(self, owner, **kwargs): # noq 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 @@ -232,14 +232,14 @@ def recycle_bin_recycle_bin_action_with_http_info(self, owner, **kwargs): # noq auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/recycle-bin/{owner}/action/', 'POST', + '/recycle-bin/{owner}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackageBulkActionResponse', # noqa: E501 + response_type='list[RecycleBinPackage]', # 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/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py index e9adb406..40bb7c91 100644 --- a/bindings/python/src/cloudsmith_api/api/repos_api.py +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -358,47 +358,953 @@ def repo_retention_read_with_http_info(self, owner, repo, **kwargs): # noqa: E5 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def repos_connected_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a connected repository for this repository. # noqa: E501 + + Create a connected repository 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_connected_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param ConnectedRepositoryRequest data: + :return: ConnectedRepository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_connected_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_connected_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a connected repository for this repository. # noqa: E501 + + Create a connected repository 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_connected_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 ConnectedRepositoryRequest data: + :return: ConnectedRepository + 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_connected_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_connected_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_connected_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}/connected/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConnectedRepository', # 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_connected_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a connected repository for this repository. # noqa: E501 + + Delete a connected repository 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_connected_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_connected_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_connected_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a connected repository for this repository. # noqa: E501 + + Delete a connected repository 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_connected_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_connected_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_connected_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_connected_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_connected_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}/connected/{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_connected_list(self, owner, identifier, **kwargs): # noqa: E501 + """List connected repositories for this repository. # noqa: E501 + + List connected repositories 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_connected_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: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_connected_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_connected_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List connected repositories for this repository. # noqa: E501 + + List connected repositories 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_connected_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: InlineResponse2001 + 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_connected_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_connected_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_connected_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}/connected/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2001', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_connected_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a connected repository for this repository. # noqa: E501 + + Partially update a connected repository 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_connected_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 ConnectedRepositoryRequestPatch data: + :return: ConnectedRepository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_connected_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a connected repository for this repository. # noqa: E501 + + Partially update a connected repository 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_connected_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 ConnectedRepositoryRequestPatch data: + :return: ConnectedRepository + 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_connected_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_connected_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_connected_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_connected_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}/connected/{slug_perm}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConnectedRepository', # 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_connected_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a connected repository for this repository. # noqa: E501 + + Retrieve a connected repository 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_connected_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: ConnectedRepository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_connected_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_connected_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a connected repository for this repository. # noqa: E501 + + Retrieve a connected repository 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_connected_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: ConnectedRepository + 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_connected_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_connected_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_connected_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_connected_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}/connected/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConnectedRepository', # 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_connected_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a connected repository for this repository. # noqa: E501 + + Update a connected repository 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_connected_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 ConnectedRepositoryRequest data: + :return: ConnectedRepository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_connected_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_connected_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_connected_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a connected repository for this repository. # noqa: E501 + + Update a connected repository 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_connected_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 ConnectedRepositoryRequest data: + :return: ConnectedRepository + 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_connected_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_connected_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_connected_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_connected_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}/connected/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConnectedRepository', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def repos_create(self, owner, **kwargs): # noqa: E501 """Create a new repository in a given namespace. # noqa: E501 - Create a new repository in a given namespace. # noqa: E501 + Create a new repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_create(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param RepositoryCreateRequest data: + :return: RepositoryCreate + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 + """Create a new repository in a given namespace. # noqa: E501 + + Create a new repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_create_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param RepositoryCreateRequest data: + :return: RepositoryCreate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `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}/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryCreate', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_delete(self, owner, identifier, **kwargs): # noqa: E501 + """repos_delete # noqa: E501 + + Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_delete(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """repos_delete # noqa: E501 + + Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_delete_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # 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}/', '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_ecdsa_create(self, owner, identifier, **kwargs): # noqa: E501 + """Set the active ECDSA key for the Repository. # noqa: E501 + + Set the active ECDSA key for the 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_create(owner, async_req=True) + >>> thread = api.repos_ecdsa_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param RepositoryCreateRequest data: - :return: RepositoryCreate + :param str identifier: (required) + :param RepositoryEcdsaKeyCreate data: + :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + return self.repos_ecdsa_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + (data) = self.repos_ecdsa_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 - """Create a new repository in a given namespace. # noqa: E501 + def repos_ecdsa_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Set the active ECDSA key for the Repository. # noqa: E501 - Create a new repository in a given namespace. # noqa: E501 + Set the active ECDSA key for the 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_create_with_http_info(owner, async_req=True) + >>> thread = api.repos_ecdsa_create_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) - :param RepositoryCreateRequest data: - :return: RepositoryCreate + :param str identifier: (required) + :param RepositoryEcdsaKeyCreate data: + :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'data'] # noqa: E501 + all_params = ['owner', 'identifier', 'data'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -409,20 +1315,26 @@ def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_create" % key + " to method repos_ecdsa_create" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'owner' is set if self.api_client.client_side_validation and ('owner' not in params or params['owner'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `owner` when calling `repos_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_ecdsa_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_ecdsa_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 = [] @@ -446,14 +1358,14 @@ def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/', 'POST', + '/repos/{owner}/{identifier}/ecdsa/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='RepositoryCreate', # noqa: E501 + response_type='RepositoryEcdsaKey', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -461,42 +1373,42 @@ def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_delete(self, owner, identifier, **kwargs): # noqa: E501 - """repos_delete # noqa: E501 + def repos_ecdsa_list(self, owner, identifier, **kwargs): # noqa: E501 + """Retrieve the active ECDSA key for the Repository. # noqa: E501 - Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # noqa: E501 + Retrieve the active ECDSA key for the 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_delete(owner, identifier, async_req=True) + >>> thread = api.repos_ecdsa_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: None + :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_ecdsa_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_ecdsa_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """repos_delete # noqa: E501 + def repos_ecdsa_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Retrieve the active ECDSA key for the Repository. # noqa: E501 - Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # noqa: E501 + Retrieve the active ECDSA key for the 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_delete_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_ecdsa_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: None + :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ @@ -512,18 +1424,18 @@ def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E50 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_delete" % key + " to method repos_ecdsa_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_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_ecdsa_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_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_ecdsa_list`") # noqa: E501 collection_formats = {} @@ -553,14 +1465,14 @@ def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E50 auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/', 'DELETE', + '/repos/{owner}/{identifier}/ecdsa/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='RepositoryEcdsaKey', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -568,48 +1480,155 @@ def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E50 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_ecdsa_create(self, owner, identifier, **kwargs): # noqa: E501 - """Set the active ECDSA key for the Repository. # noqa: E501 + def repos_ecdsa_regenerate(self, owner, identifier, **kwargs): # noqa: E501 + """Regenerate ECDSA Key for the Repository. # noqa: E501 - Set the active ECDSA key for the Repository. # noqa: E501 + Regenerate ECDSA Key for the 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_ecdsa_create(owner, identifier, async_req=True) + >>> thread = api.repos_ecdsa_regenerate(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param RepositoryEcdsaKeyCreate data: :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_ecdsa_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_ecdsa_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_ecdsa_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_ecdsa_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_ecdsa_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Set the active ECDSA key for the Repository. # noqa: E501 + def repos_ecdsa_regenerate_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Regenerate ECDSA Key for the Repository. # noqa: E501 - Set the active ECDSA key for the Repository. # noqa: E501 + Regenerate ECDSA Key for the 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_ecdsa_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_ecdsa_regenerate_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param RepositoryEcdsaKeyCreate data: :return: RepositoryEcdsaKey If the method is called asynchronously, returns the request thread. """ + all_params = ['owner', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_ecdsa_regenerate" % 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_ecdsa_regenerate`") # 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_ecdsa_regenerate`") # 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 + # 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}/ecdsa/regenerate/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryEcdsaKey', # 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_ed25519_create(self, owner, identifier, **kwargs): # noqa: E501 + """Set the active Ed25519 key for the Repository. # noqa: E501 + + Set the active Ed25519 key for the 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_ed25519_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param RepositoryEd25519KeyCreate data: + :return: RepositoryEd25519Key + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_ed25519_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_ed25519_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_ed25519_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Set the active Ed25519 key for the Repository. # noqa: E501 + + Set the active Ed25519 key for the 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_ed25519_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 RepositoryEd25519KeyCreate data: + :return: RepositoryEd25519Key + 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') @@ -621,18 +1640,18 @@ def repos_ecdsa_create_with_http_info(self, owner, identifier, **kwargs): # noq if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_ecdsa_create" % key + " to method repos_ed25519_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_ecdsa_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_ed25519_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_ecdsa_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_ed25519_create`") # noqa: E501 collection_formats = {} @@ -664,14 +1683,14 @@ def repos_ecdsa_create_with_http_info(self, owner, identifier, **kwargs): # noq auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/ecdsa/', 'POST', + '/repos/{owner}/{identifier}/ed25519/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='RepositoryEcdsaKey', # noqa: E501 + response_type='RepositoryEd25519Key', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -679,42 +1698,42 @@ def repos_ecdsa_create_with_http_info(self, owner, identifier, **kwargs): # noq _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_ecdsa_list(self, owner, identifier, **kwargs): # noqa: E501 - """Retrieve the active ECDSA key for the Repository. # noqa: E501 + def repos_ed25519_list(self, owner, identifier, **kwargs): # noqa: E501 + """Retrieve the active Ed25519 key for the Repository. # noqa: E501 - Retrieve the active ECDSA key for the Repository. # noqa: E501 + Retrieve the active Ed25519 key for the 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_ecdsa_list(owner, identifier, async_req=True) + >>> thread = api.repos_ed25519_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: RepositoryEcdsaKey + :return: RepositoryEd25519Key If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_ecdsa_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_ed25519_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_ecdsa_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_ed25519_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_ecdsa_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Retrieve the active ECDSA key for the Repository. # noqa: E501 + def repos_ed25519_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Retrieve the active Ed25519 key for the Repository. # noqa: E501 - Retrieve the active ECDSA key for the Repository. # noqa: E501 + Retrieve the active Ed25519 key for the 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_ecdsa_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_ed25519_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: RepositoryEcdsaKey + :return: RepositoryEd25519Key If the method is called asynchronously, returns the request thread. """ @@ -730,18 +1749,18 @@ def repos_ecdsa_list_with_http_info(self, owner, identifier, **kwargs): # noqa: if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_ecdsa_list" % key + " to method repos_ed25519_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_ecdsa_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_ed25519_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_ecdsa_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_ed25519_list`") # noqa: E501 collection_formats = {} @@ -771,14 +1790,14 @@ def repos_ecdsa_list_with_http_info(self, owner, identifier, **kwargs): # noqa: auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/ecdsa/', 'GET', + '/repos/{owner}/{identifier}/ed25519/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='RepositoryEcdsaKey', # noqa: E501 + response_type='RepositoryEd25519Key', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -786,42 +1805,42 @@ def repos_ecdsa_list_with_http_info(self, owner, identifier, **kwargs): # noqa: _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_ecdsa_regenerate(self, owner, identifier, **kwargs): # noqa: E501 - """Regenerate ECDSA Key for the Repository. # noqa: E501 + def repos_ed25519_regenerate(self, owner, identifier, **kwargs): # noqa: E501 + """Regenerate Ed25519 Key for the Repository. # noqa: E501 - Regenerate ECDSA Key for the Repository. # noqa: E501 + Regenerate Ed25519 Key for the 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_ecdsa_regenerate(owner, identifier, async_req=True) + >>> thread = api.repos_ed25519_regenerate(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: RepositoryEcdsaKey + :return: RepositoryEd25519Key If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_ecdsa_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_ed25519_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_ecdsa_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_ed25519_regenerate_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_ecdsa_regenerate_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Regenerate ECDSA Key for the Repository. # noqa: E501 + def repos_ed25519_regenerate_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Regenerate Ed25519 Key for the Repository. # noqa: E501 - Regenerate ECDSA Key for the Repository. # noqa: E501 + Regenerate Ed25519 Key for the 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_ecdsa_regenerate_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_ed25519_regenerate_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :return: RepositoryEcdsaKey + :return: RepositoryEd25519Key If the method is called asynchronously, returns the request thread. """ @@ -837,18 +1856,18 @@ def repos_ecdsa_regenerate_with_http_info(self, owner, identifier, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_ecdsa_regenerate" % key + " to method repos_ed25519_regenerate" % 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_ecdsa_regenerate`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_ed25519_regenerate`") # 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_ecdsa_regenerate`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_ed25519_regenerate`") # noqa: E501 collection_formats = {} @@ -878,14 +1897,14 @@ def repos_ecdsa_regenerate_with_http_info(self, owner, identifier, **kwargs): # auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/ecdsa/regenerate/', 'POST', + '/repos/{owner}/{identifier}/ed25519/regenerate/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='RepositoryEcdsaKey', # noqa: E501 + response_type='RepositoryEd25519Key', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api/user_api.py b/bindings/python/src/cloudsmith_api/api/user_api.py index 525f0eb5..59cd6de5 100644 --- a/bindings/python/src/cloudsmith_api/api/user_api.py +++ b/bindings/python/src/cloudsmith_api/api/user_api.py @@ -322,7 +322,7 @@ def user_tokens_list(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2001 + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ @@ -345,7 +345,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. - :return: InlineResponse2001 + :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ @@ -401,7 +401,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2001', # noqa: E501 + response_type='InlineResponse2002', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index 689d8bd2..25e14185 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.26/python' + self.user_agent = 'Swagger-Codegen/2.0.27/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index 6dabca15..54b14607 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -249,5 +249,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.26".\ + "SDK Package Version: 2.0.27".\ format(env=sys.platform, pyversion=sys.version) diff --git a/bindings/python/src/cloudsmith_api/models/__init__.py b/bindings/python/src/cloudsmith_api/models/__init__.py index 56c52e2e..2e6441c0 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -49,6 +49,9 @@ 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.connected_repository import ConnectedRepository +from cloudsmith_api.models.connected_repository_request import ConnectedRepositoryRequest +from cloudsmith_api.models.connected_repository_request_patch import ConnectedRepositoryRequestPatch 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 @@ -110,6 +113,7 @@ 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.inline_response2002 import InlineResponse2002 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -119,6 +123,7 @@ from cloudsmith_api.models.maven_upstream_request_patch import MavenUpstreamRequestPatch from cloudsmith_api.models.mcp_package_upload import McpPackageUpload from cloudsmith_api.models.mcp_package_upload_request import McpPackageUploadRequest +from cloudsmith_api.models.member_teams import MemberTeams from cloudsmith_api.models.namespace import Namespace from cloudsmith_api.models.namespace_audit_log import NamespaceAuditLog from cloudsmith_api.models.nested_license_policy import NestedLicensePolicy @@ -135,6 +140,8 @@ from cloudsmith_api.models.nuget_upstream_request import NugetUpstreamRequest from cloudsmith_api.models.nuget_upstream_request_patch import NugetUpstreamRequestPatch from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_custom_domain_nested_repo import OrganizationCustomDomainNestedRepo +from cloudsmith_api.models.organization_custom_domains import OrganizationCustomDomains from cloudsmith_api.models.organization_group_sync import OrganizationGroupSync from cloudsmith_api.models.organization_group_sync_request import OrganizationGroupSyncRequest from cloudsmith_api.models.organization_group_sync_status import OrganizationGroupSyncStatus @@ -223,6 +230,8 @@ from cloudsmith_api.models.repository_create_request import RepositoryCreateRequest from cloudsmith_api.models.repository_ecdsa_key import RepositoryEcdsaKey from cloudsmith_api.models.repository_ecdsa_key_create import RepositoryEcdsaKeyCreate +from cloudsmith_api.models.repository_ed25519_key import RepositoryEd25519Key +from cloudsmith_api.models.repository_ed25519_key_create import RepositoryEd25519KeyCreate from cloudsmith_api.models.repository_geo_ip_cidr import RepositoryGeoIpCidr from cloudsmith_api.models.repository_geo_ip_country_code import RepositoryGeoIpCountryCode from cloudsmith_api.models.repository_geo_ip_rules import RepositoryGeoIpRules diff --git a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py index 5d613ee5..be46ba9e 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py @@ -61,6 +61,7 @@ class AlpinePackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class AlpinePackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class AlpinePackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class AlpinePackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class AlpinePackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """AlpinePackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this AlpinePackageUpload. + + + :return: The is_hidden of this AlpinePackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this AlpinePackageUpload. + + + :param is_hidden: The is_hidden of this AlpinePackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this AlpinePackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this AlpinePackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this AlpinePackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this AlpinePackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this AlpinePackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this AlpinePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py index e00d15a3..f5e8a75f 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py @@ -61,6 +61,7 @@ class CargoPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class CargoPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class CargoPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class CargoPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class CargoPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """CargoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this CargoPackageUpload. + + + :return: The is_hidden of this CargoPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this CargoPackageUpload. + + + :param is_hidden: The is_hidden of this CargoPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this CargoPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this CargoPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this CargoPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this CargoPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this CargoPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this CargoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py index 3989a994..ff40a2af 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py @@ -61,6 +61,7 @@ class CocoapodsPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class CocoapodsPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class CocoapodsPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class CocoapodsPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class CocoapodsPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """CocoapodsPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this CocoapodsPackageUpload. + + + :return: The is_hidden of this CocoapodsPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this CocoapodsPackageUpload. + + + :param is_hidden: The is_hidden of this CocoapodsPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this CocoapodsPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this CocoapodsPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this CocoapodsPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this CocoapodsPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this CocoapodsPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this CocoapodsPackageUpload. 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 beec50a9..3590eebe 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py @@ -61,6 +61,7 @@ class ComposerPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class ComposerPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class ComposerPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class ComposerPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class ComposerPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """ComposerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this ComposerPackageUpload. + + + :return: The is_hidden of this ComposerPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this ComposerPackageUpload. + + + :param is_hidden: The is_hidden of this ComposerPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this ComposerPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this ComposerPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this ComposerPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this ComposerPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this ComposerPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this ComposerPackageUpload. 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 6c9d9417..52ce40dc 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -63,6 +63,7 @@ class ConanPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -80,6 +81,7 @@ class ConanPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -152,6 +154,7 @@ class ConanPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -169,6 +172,7 @@ class ConanPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class ConanPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """ConanPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -246,6 +250,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -263,6 +268,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -364,6 +370,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -398,6 +406,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1147,6 +1157,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this ConanPackageUpload. + + + :return: The is_hidden of this ConanPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this ConanPackageUpload. + + + :param is_hidden: The is_hidden of this ConanPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this ConanPackageUpload. @@ -1517,6 +1548,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this ConanPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this ConanPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this ConanPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this ConanPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this ConanPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py index 5f0d7937..5679d469 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py @@ -61,6 +61,7 @@ class CondaPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class CondaPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class CondaPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class CondaPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class CondaPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """CondaPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this CondaPackageUpload. + + + :return: The is_hidden of this CondaPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this CondaPackageUpload. + + + :param is_hidden: The is_hidden of this CondaPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this CondaPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this CondaPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this CondaPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this CondaPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this CondaPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this CondaPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository.py b/bindings/python/src/cloudsmith_api/models/connected_repository.py new file mode 100644 index 00000000..c7af408b --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/connected_repository.py @@ -0,0 +1,250 @@ +# 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 ConnectedRepository(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 = { + 'created_at': 'datetime', + 'is_active': 'bool', + 'priority': 'int', + 'slug_perm': 'str', + 'target_repository': 'str' + } + + attribute_map = { + 'created_at': 'created_at', + 'is_active': 'is_active', + 'priority': 'priority', + 'slug_perm': 'slug_perm', + 'target_repository': 'target_repository' + } + + def __init__(self, created_at=None, is_active=True, priority=None, slug_perm=None, target_repository=None, _configuration=None): # noqa: E501 + """ConnectedRepository - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_at = None + self._is_active = None + self._priority = None + self._slug_perm = None + self._target_repository = None + self.discriminator = None + + if created_at is not None: + self.created_at = created_at + if is_active is not None: + self.is_active = is_active + if priority is not None: + self.priority = priority + if slug_perm is not None: + self.slug_perm = slug_perm + self.target_repository = target_repository + + @property + def created_at(self): + """Gets the created_at of this ConnectedRepository. + + The date and time when the connection was created. + + :return: The created_at of this ConnectedRepository. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ConnectedRepository. + + The date and time when the connection was created. + + :param created_at: The created_at of this ConnectedRepository. + :type: datetime + """ + + self._created_at = created_at + + @property + def is_active(self): + """Gets the is_active of this ConnectedRepository. + + + :return: The is_active of this ConnectedRepository. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this ConnectedRepository. + + + :param is_active: The is_active of this ConnectedRepository. + :type: bool + """ + + self._is_active = is_active + + @property + def priority(self): + """Gets the priority of this ConnectedRepository. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :return: The priority of this ConnectedRepository. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ConnectedRepository. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :param priority: The priority of this ConnectedRepository. + :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 ConnectedRepository. + + + :return: The slug_perm of this ConnectedRepository. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this ConnectedRepository. + + + :param slug_perm: The slug_perm of this ConnectedRepository. + :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 target_repository(self): + """Gets the target_repository of this ConnectedRepository. + + The slug of the target repository to connect to. + + :return: The target_repository of this ConnectedRepository. + :rtype: str + """ + return self._target_repository + + @target_repository.setter + def target_repository(self, target_repository): + """Sets the target_repository of this ConnectedRepository. + + The slug of the target repository to connect to. + + :param target_repository: The target_repository of this ConnectedRepository. + :type: str + """ + if self._configuration.client_side_validation and target_repository is None: + raise ValueError("Invalid value for `target_repository`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + target_repository is not None and not re.search('^[-a-zA-Z0-9_]+$', target_repository)): # noqa: E501 + raise ValueError(r"Invalid value for `target_repository`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._target_repository = target_repository + + 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(ConnectedRepository, 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, ConnectedRepository): + 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, ConnectedRepository): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_request.py b/bindings/python/src/cloudsmith_api/models/connected_repository_request.py new file mode 100644 index 00000000..d0da79b4 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_request.py @@ -0,0 +1,190 @@ +# 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 ConnectedRepositoryRequest(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 = { + 'is_active': 'bool', + 'priority': 'int', + 'target_repository': 'str' + } + + attribute_map = { + 'is_active': 'is_active', + 'priority': 'priority', + 'target_repository': 'target_repository' + } + + def __init__(self, is_active=True, priority=None, target_repository=None, _configuration=None): # noqa: E501 + """ConnectedRepositoryRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._is_active = None + self._priority = None + self._target_repository = None + self.discriminator = None + + if is_active is not None: + self.is_active = is_active + if priority is not None: + self.priority = priority + self.target_repository = target_repository + + @property + def is_active(self): + """Gets the is_active of this ConnectedRepositoryRequest. + + + :return: The is_active of this ConnectedRepositoryRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this ConnectedRepositoryRequest. + + + :param is_active: The is_active of this ConnectedRepositoryRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def priority(self): + """Gets the priority of this ConnectedRepositoryRequest. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :return: The priority of this ConnectedRepositoryRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ConnectedRepositoryRequest. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :param priority: The priority of this ConnectedRepositoryRequest. + :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 target_repository(self): + """Gets the target_repository of this ConnectedRepositoryRequest. + + The slug of the target repository to connect to. + + :return: The target_repository of this ConnectedRepositoryRequest. + :rtype: str + """ + return self._target_repository + + @target_repository.setter + def target_repository(self, target_repository): + """Sets the target_repository of this ConnectedRepositoryRequest. + + The slug of the target repository to connect to. + + :param target_repository: The target_repository of this ConnectedRepositoryRequest. + :type: str + """ + if self._configuration.client_side_validation and target_repository is None: + raise ValueError("Invalid value for `target_repository`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + target_repository is not None and not re.search('^[-a-zA-Z0-9_]+$', target_repository)): # noqa: E501 + raise ValueError(r"Invalid value for `target_repository`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._target_repository = target_repository + + 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(ConnectedRepositoryRequest, 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, ConnectedRepositoryRequest): + 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, ConnectedRepositoryRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py b/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py new file mode 100644 index 00000000..70263e19 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_request_patch.py @@ -0,0 +1,189 @@ +# 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 ConnectedRepositoryRequestPatch(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 = { + 'is_active': 'bool', + 'priority': 'int', + 'target_repository': 'str' + } + + attribute_map = { + 'is_active': 'is_active', + 'priority': 'priority', + 'target_repository': 'target_repository' + } + + def __init__(self, is_active=True, priority=None, target_repository=None, _configuration=None): # noqa: E501 + """ConnectedRepositoryRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._is_active = None + self._priority = None + self._target_repository = None + self.discriminator = None + + if is_active is not None: + self.is_active = is_active + if priority is not None: + self.priority = priority + if target_repository is not None: + self.target_repository = target_repository + + @property + def is_active(self): + """Gets the is_active of this ConnectedRepositoryRequestPatch. + + + :return: The is_active of this ConnectedRepositoryRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this ConnectedRepositoryRequestPatch. + + + :param is_active: The is_active of this ConnectedRepositoryRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def priority(self): + """Gets the priority of this ConnectedRepositoryRequestPatch. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :return: The priority of this ConnectedRepositoryRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ConnectedRepositoryRequestPatch. + + Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + + :param priority: The priority of this ConnectedRepositoryRequestPatch. + :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 target_repository(self): + """Gets the target_repository of this ConnectedRepositoryRequestPatch. + + The slug of the target repository to connect to. + + :return: The target_repository of this ConnectedRepositoryRequestPatch. + :rtype: str + """ + return self._target_repository + + @target_repository.setter + def target_repository(self, target_repository): + """Sets the target_repository of this ConnectedRepositoryRequestPatch. + + The slug of the target repository to connect to. + + :param target_repository: The target_repository of this ConnectedRepositoryRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + target_repository is not None and not re.search('^[-a-zA-Z0-9_]+$', target_repository)): # noqa: E501 + raise ValueError(r"Invalid value for `target_repository`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._target_repository = target_repository + + 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(ConnectedRepositoryRequestPatch, 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, ConnectedRepositoryRequestPatch): + 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, ConnectedRepositoryRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py index 715aa5b0..784a6188 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py @@ -61,6 +61,7 @@ class CranPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class CranPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'r_version': 'str', @@ -149,6 +151,7 @@ class CranPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -166,6 +169,7 @@ class CranPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'r_version': 'r_version', @@ -208,7 +212,7 @@ class CranPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, r_version=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, r_version=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """CranPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -242,6 +246,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -259,6 +264,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._r_version = None @@ -357,6 +363,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -391,6 +399,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1084,6 +1094,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this CranPackageUpload. + + + :return: The is_hidden of this CranPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this CranPackageUpload. + + + :param is_hidden: The is_hidden of this CranPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this CranPackageUpload. @@ -1451,6 +1482,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this CranPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this CranPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this CranPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this CranPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this CranPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py index a2980814..dbf8370c 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py @@ -61,6 +61,7 @@ class DartPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class DartPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class DartPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class DartPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class DartPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """DartPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this DartPackageUpload. + + + :return: The is_hidden of this DartPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this DartPackageUpload. + + + :param is_hidden: The is_hidden of this DartPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this DartPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this DartPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this DartPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this DartPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this DartPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this DartPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py index 8e523e3b..c18ce285 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py @@ -61,6 +61,7 @@ class DebPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class DebPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class DebPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class DebPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class DebPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """DebPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this DebPackageUpload. + + + :return: The is_hidden of this DebPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this DebPackageUpload. + + + :param is_hidden: The is_hidden of this DebPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this DebPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this DebPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this DebPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this DebPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this DebPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this DebPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py index 927b642a..e11964d2 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py @@ -61,6 +61,7 @@ class DockerPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class DockerPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class DockerPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class DockerPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class DockerPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """DockerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this DockerPackageUpload. + + + :return: The is_hidden of this DockerPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this DockerPackageUpload. + + + :param is_hidden: The is_hidden of this DockerPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this DockerPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this DockerPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this DockerPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this DockerPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this DockerPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this DockerPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py index 04cdce3e..b441b29b 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py @@ -61,6 +61,7 @@ class GenericPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class GenericPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class GenericPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class GenericPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class GenericPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """GenericPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this GenericPackageUpload. + + + :return: The is_hidden of this GenericPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this GenericPackageUpload. + + + :param is_hidden: The is_hidden of this GenericPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this GenericPackageUpload. @@ -1449,6 +1480,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this GenericPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this GenericPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this GenericPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this GenericPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this GenericPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/go_package_upload.py b/bindings/python/src/cloudsmith_api/models/go_package_upload.py index 7a059e08..f6dfae74 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload.py @@ -61,6 +61,7 @@ class GoPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class GoPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class GoPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class GoPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class GoPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """GoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this GoPackageUpload. + + + :return: The is_hidden of this GoPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this GoPackageUpload. + + + :param is_hidden: The is_hidden of this GoPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this GoPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this GoPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this GoPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this GoPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this GoPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this GoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py index 32e6e7c6..59c8f58a 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py @@ -61,6 +61,7 @@ class HelmPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class HelmPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class HelmPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class HelmPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class HelmPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """HelmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this HelmPackageUpload. + + + :return: The is_hidden of this HelmPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this HelmPackageUpload. + + + :param is_hidden: The is_hidden of this HelmPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this HelmPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this HelmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this HelmPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this HelmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this HelmPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this HelmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py index 3e9b41a2..c5416998 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py @@ -61,6 +61,7 @@ class HexPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class HexPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class HexPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class HexPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class HexPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """HexPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this HexPackageUpload. + + + :return: The is_hidden of this HexPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this HexPackageUpload. + + + :param is_hidden: The is_hidden of this HexPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this HexPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this HexPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this HexPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this HexPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this HexPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this HexPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py index e4792741..05b22bc7 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py @@ -61,6 +61,7 @@ class HuggingfacePackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class HuggingfacePackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class HuggingfacePackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class HuggingfacePackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class HuggingfacePackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this HuggingfacePackageUpload. + + + :return: The is_hidden of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this HuggingfacePackageUpload. + + + :param is_hidden: The is_hidden of this HuggingfacePackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this HuggingfacePackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this HuggingfacePackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this HuggingfacePackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this HuggingfacePackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this HuggingfacePackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this HuggingfacePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2001.py b/bindings/python/src/cloudsmith_api/models/inline_response2001.py index 15c2c703..5165ee2f 100644 --- a/bindings/python/src/cloudsmith_api/models/inline_response2001.py +++ b/bindings/python/src/cloudsmith_api/models/inline_response2001.py @@ -33,7 +33,7 @@ class InlineResponse2001(object): and the value is json key in definition. """ swagger_types = { - 'results': 'list[UserAuthenticationToken]' + 'results': 'list[ConnectedRepository]' } attribute_map = { @@ -57,7 +57,7 @@ def results(self): :return: The results of this InlineResponse2001. - :rtype: list[UserAuthenticationToken] + :rtype: list[ConnectedRepository] """ return self._results @@ -67,7 +67,7 @@ def results(self, results): :param results: The results of this InlineResponse2001. - :type: list[UserAuthenticationToken] + :type: list[ConnectedRepository] """ if self._configuration.client_side_validation and results is None: raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2002.py b/bindings/python/src/cloudsmith_api/models/inline_response2002.py new file mode 100644 index 00000000..acbca076 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/inline_response2002.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class InlineResponse2002(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'results': 'list[UserAuthenticationToken]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None, _configuration=None): # noqa: E501 + """InlineResponse2002 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._results = None + self.discriminator = None + + self.results = results + + @property + def results(self): + """Gets the results of this InlineResponse2002. + + + :return: The results of this InlineResponse2002. + :rtype: list[UserAuthenticationToken] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this InlineResponse2002. + + + :param results: The results of this InlineResponse2002. + :type: list[UserAuthenticationToken] + """ + if self._configuration.client_side_validation and results is None: + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2002, 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, InlineResponse2002): + 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, InlineResponse2002): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py index f1be0fa9..86996f98 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py @@ -61,6 +61,7 @@ class LuarocksPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class LuarocksPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class LuarocksPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class LuarocksPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class LuarocksPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """LuarocksPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this LuarocksPackageUpload. + + + :return: The is_hidden of this LuarocksPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this LuarocksPackageUpload. + + + :param is_hidden: The is_hidden of this LuarocksPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this LuarocksPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this LuarocksPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this LuarocksPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this LuarocksPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this LuarocksPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this LuarocksPackageUpload. 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 deaf3c08..5ced03a3 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -63,6 +63,7 @@ class MavenPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -80,6 +81,7 @@ class MavenPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'packaging': 'str', 'policy_violated': 'bool', @@ -155,6 +157,7 @@ class MavenPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -172,6 +175,7 @@ class MavenPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'packaging': 'packaging', 'policy_violated': 'policy_violated', @@ -216,7 +220,7 @@ class MavenPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, group_id=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, packaging=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, sbt_version=None, scala_version=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, group_id=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=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, osi_approved=None, package_type=None, packaging=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, sbt_version=None, scala_version=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """MavenPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -252,6 +256,7 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -269,6 +274,7 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._packaging = None self._policy_violated = None @@ -373,6 +379,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -407,6 +415,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if packaging is not None: @@ -1156,6 +1166,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this MavenPackageUpload. + + + :return: The is_hidden of this MavenPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this MavenPackageUpload. + + + :param is_hidden: The is_hidden of this MavenPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this MavenPackageUpload. @@ -1523,6 +1554,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this MavenPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this MavenPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this MavenPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this MavenPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this MavenPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py index 32585aaa..2d674f79 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py @@ -61,6 +61,7 @@ class McpPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class McpPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class McpPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class McpPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class McpPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """McpPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this McpPackageUpload. + + + :return: The is_hidden of this McpPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this McpPackageUpload. + + + :param is_hidden: The is_hidden of this McpPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this McpPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this McpPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this McpPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this McpPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this McpPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this McpPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/member_teams.py b/bindings/python/src/cloudsmith_api/models/member_teams.py new file mode 100644 index 00000000..4f54bc1c --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/member_teams.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 MemberTeams(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 = { + 'name': 'str', + 'role': 'str', + 'slug': 'str' + } + + attribute_map = { + 'name': 'name', + 'role': 'role', + 'slug': 'slug' + } + + def __init__(self, name=None, role='Manager', slug=None, _configuration=None): # noqa: E501 + """MemberTeams - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self._role = None + self._slug = None + self.discriminator = None + + if name is not None: + self.name = name + if role is not None: + self.role = role + if slug is not None: + self.slug = slug + + @property + def name(self): + """Gets the name of this MemberTeams. + + + :return: The name of this MemberTeams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MemberTeams. + + + :param name: The name of this MemberTeams. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + @property + def role(self): + """Gets the role of this MemberTeams. + + + :return: The role of this MemberTeams. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this MemberTeams. + + + :param role: The role of this MemberTeams. + :type: str + """ + allowed_values = ["Manager", "Member"] # noqa: E501 + if (self._configuration.client_side_validation and + role not in allowed_values): + raise ValueError( + "Invalid value for `role` ({0}), must be one of {1}" # noqa: E501 + .format(role, allowed_values) + ) + + self._role = role + + @property + def slug(self): + """Gets the slug of this MemberTeams. + + + :return: The slug of this MemberTeams. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this MemberTeams. + + + :param slug: The slug of this MemberTeams. + :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 + + 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(MemberTeams, 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, MemberTeams): + 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, MemberTeams): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py index 0a3c1100..4fefaade 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py @@ -61,6 +61,7 @@ class NpmPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class NpmPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class NpmPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class NpmPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class NpmPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """NpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this NpmPackageUpload. + + + :return: The is_hidden of this NpmPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this NpmPackageUpload. + + + :param is_hidden: The is_hidden of this NpmPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this NpmPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this NpmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this NpmPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this NpmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this NpmPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this NpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py index ef8b191d..8bf2794e 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py @@ -61,6 +61,7 @@ class NugetPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class NugetPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class NugetPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class NugetPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class NugetPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """NugetPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this NugetPackageUpload. + + + :return: The is_hidden of this NugetPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this NugetPackageUpload. + + + :param is_hidden: The is_hidden of this NugetPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this NugetPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this NugetPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this NugetPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this NugetPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this NugetPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this NugetPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/organization_custom_domain_nested_repo.py b/bindings/python/src/cloudsmith_api/models/organization_custom_domain_nested_repo.py new file mode 100644 index 00000000..f5e9c162 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_custom_domain_nested_repo.py @@ -0,0 +1,160 @@ +# 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 OrganizationCustomDomainNestedRepo(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 = { + 'name': 'str', + 'slug': 'str' + } + + attribute_map = { + 'name': 'name', + 'slug': 'slug' + } + + def __init__(self, name=None, slug=None, _configuration=None): # noqa: E501 + """OrganizationCustomDomainNestedRepo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self._slug = None + self.discriminator = None + + if name is not None: + self.name = name + if slug is not None: + self.slug = slug + + @property + def name(self): + """Gets the name of this OrganizationCustomDomainNestedRepo. + + A descriptive name for the repository. + + :return: The name of this OrganizationCustomDomainNestedRepo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this OrganizationCustomDomainNestedRepo. + + A descriptive name for the repository. + + :param name: The name of this OrganizationCustomDomainNestedRepo. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + @property + def slug(self): + """Gets the slug of this OrganizationCustomDomainNestedRepo. + + The slug identifies the repository in URIs. + + :return: The slug of this OrganizationCustomDomainNestedRepo. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this OrganizationCustomDomainNestedRepo. + + The slug identifies the repository in URIs. + + :param slug: The slug of this OrganizationCustomDomainNestedRepo. + :type: str + """ + 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 + + 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(OrganizationCustomDomainNestedRepo, 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, OrganizationCustomDomainNestedRepo): + 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, OrganizationCustomDomainNestedRepo): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_custom_domains.py b/bindings/python/src/cloudsmith_api/models/organization_custom_domains.py new file mode 100644 index 00000000..1dd61126 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_custom_domains.py @@ -0,0 +1,598 @@ +# 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 OrganizationCustomDomains(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'backend_kind': 'int', + 'created_at': 'datetime', + 'created_by': 'int', + 'dns_alias_value': 'str', + 'dns_cert_name': 'str', + 'dns_cert_value': 'str', + 'domain_type': 'int', + 'enabled': 'bool', + 'host': 'str', + 'namespace': 'int', + 'primary': 'bool', + 'redirect_root': 'bool', + 'redirect_root_url': 'str', + 'repository': 'OrganizationCustomDomainNestedRepo', + 'repository_only': 'bool', + 'slug_perm': 'str', + 'validated': 'bool', + 'validated_at': 'datetime' + } + + attribute_map = { + 'backend_kind': 'backend_kind', + 'created_at': 'created_at', + 'created_by': 'created_by', + 'dns_alias_value': 'dns_alias_value', + 'dns_cert_name': 'dns_cert_name', + 'dns_cert_value': 'dns_cert_value', + 'domain_type': 'domain_type', + 'enabled': 'enabled', + 'host': 'host', + 'namespace': 'namespace', + 'primary': 'primary', + 'redirect_root': 'redirect_root', + 'redirect_root_url': 'redirect_root_url', + 'repository': 'repository', + 'repository_only': 'repository_only', + 'slug_perm': 'slug_perm', + 'validated': 'validated', + 'validated_at': 'validated_at' + } + + def __init__(self, backend_kind=None, created_at=None, created_by=None, dns_alias_value=None, dns_cert_name=None, dns_cert_value=None, domain_type=None, enabled=None, host=None, namespace=None, primary=True, redirect_root=None, redirect_root_url=None, repository=None, repository_only=None, slug_perm=None, validated=None, validated_at=None, _configuration=None): # noqa: E501 + """OrganizationCustomDomains - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._backend_kind = None + self._created_at = None + self._created_by = None + self._dns_alias_value = None + self._dns_cert_name = None + self._dns_cert_value = None + self._domain_type = None + self._enabled = None + self._host = None + self._namespace = None + self._primary = None + self._redirect_root = None + self._redirect_root_url = None + self._repository = None + self._repository_only = None + self._slug_perm = None + self._validated = None + self._validated_at = None + self.discriminator = None + + if backend_kind is not None: + self.backend_kind = backend_kind + if created_at is not None: + self.created_at = created_at + if created_by is not None: + self.created_by = created_by + if dns_alias_value is not None: + self.dns_alias_value = dns_alias_value + if dns_cert_name is not None: + self.dns_cert_name = dns_cert_name + if dns_cert_value is not None: + self.dns_cert_value = dns_cert_value + if domain_type is not None: + self.domain_type = domain_type + if enabled is not None: + self.enabled = enabled + if host is not None: + self.host = host + if namespace is not None: + self.namespace = namespace + if primary is not None: + self.primary = primary + if redirect_root is not None: + self.redirect_root = redirect_root + if redirect_root_url is not None: + self.redirect_root_url = redirect_root_url + self.repository = repository + if repository_only is not None: + self.repository_only = repository_only + if slug_perm is not None: + self.slug_perm = slug_perm + if validated is not None: + self.validated = validated + if validated_at is not None: + self.validated_at = validated_at + + @property + def backend_kind(self): + """Gets the backend_kind of this OrganizationCustomDomains. + + The domain for a specific package format. + + :return: The backend_kind of this OrganizationCustomDomains. + :rtype: int + """ + return self._backend_kind + + @backend_kind.setter + def backend_kind(self, backend_kind): + """Sets the backend_kind of this OrganizationCustomDomains. + + The domain for a specific package format. + + :param backend_kind: The backend_kind of this OrganizationCustomDomains. + :type: int + """ + + self._backend_kind = backend_kind + + @property + def created_at(self): + """Gets the created_at of this OrganizationCustomDomains. + + + :return: The created_at of this OrganizationCustomDomains. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this OrganizationCustomDomains. + + + :param created_at: The created_at of this OrganizationCustomDomains. + :type: datetime + """ + + self._created_at = created_at + + @property + def created_by(self): + """Gets the created_by of this OrganizationCustomDomains. + + + :return: The created_by of this OrganizationCustomDomains. + :rtype: int + """ + return self._created_by + + @created_by.setter + def created_by(self, created_by): + """Sets the created_by of this OrganizationCustomDomains. + + + :param created_by: The created_by of this OrganizationCustomDomains. + :type: int + """ + + self._created_by = created_by + + @property + def dns_alias_value(self): + """Gets the dns_alias_value of this OrganizationCustomDomains. + + The CNAME value to use to publish this domain publicly. + + :return: The dns_alias_value of this OrganizationCustomDomains. + :rtype: str + """ + return self._dns_alias_value + + @dns_alias_value.setter + def dns_alias_value(self, dns_alias_value): + """Sets the dns_alias_value of this OrganizationCustomDomains. + + The CNAME value to use to publish this domain publicly. + + :param dns_alias_value: The dns_alias_value of this OrganizationCustomDomains. + :type: str + """ + + self._dns_alias_value = dns_alias_value + + @property + def dns_cert_name(self): + """Gets the dns_cert_name of this OrganizationCustomDomains. + + The CNAME name to create to allow us to generate a TLS cert. + + :return: The dns_cert_name of this OrganizationCustomDomains. + :rtype: str + """ + return self._dns_cert_name + + @dns_cert_name.setter + def dns_cert_name(self, dns_cert_name): + """Sets the dns_cert_name of this OrganizationCustomDomains. + + The CNAME name to create to allow us to generate a TLS cert. + + :param dns_cert_name: The dns_cert_name of this OrganizationCustomDomains. + :type: str + """ + + self._dns_cert_name = dns_cert_name + + @property + def dns_cert_value(self): + """Gets the dns_cert_value of this OrganizationCustomDomains. + + The CNAME value to use to allow us to generate a TLS cert. + + :return: The dns_cert_value of this OrganizationCustomDomains. + :rtype: str + """ + return self._dns_cert_value + + @dns_cert_value.setter + def dns_cert_value(self, dns_cert_value): + """Sets the dns_cert_value of this OrganizationCustomDomains. + + The CNAME value to use to allow us to generate a TLS cert. + + :param dns_cert_value: The dns_cert_value of this OrganizationCustomDomains. + :type: str + """ + + self._dns_cert_value = dns_cert_value + + @property + def domain_type(self): + """Gets the domain_type of this OrganizationCustomDomains. + + The type for the custom domain. + + :return: The domain_type of this OrganizationCustomDomains. + :rtype: int + """ + return self._domain_type + + @domain_type.setter + def domain_type(self, domain_type): + """Sets the domain_type of this OrganizationCustomDomains. + + The type for the custom domain. + + :param domain_type: The domain_type of this OrganizationCustomDomains. + :type: int + """ + + self._domain_type = domain_type + + @property + def enabled(self): + """Gets the enabled of this OrganizationCustomDomains. + + If checked, the domain is enabled. + + :return: The enabled of this OrganizationCustomDomains. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this OrganizationCustomDomains. + + If checked, the domain is enabled. + + :param enabled: The enabled of this OrganizationCustomDomains. + :type: bool + """ + + self._enabled = enabled + + @property + def host(self): + """Gets the host of this OrganizationCustomDomains. + + + :return: The host of this OrganizationCustomDomains. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this OrganizationCustomDomains. + + + :param host: The host of this OrganizationCustomDomains. + :type: str + """ + if (self._configuration.client_side_validation and + host is not None and len(host) < 1): + raise ValueError("Invalid value for `host`, length must be greater than or equal to `1`") # noqa: E501 + + self._host = host + + @property + def namespace(self): + """Gets the namespace of this OrganizationCustomDomains. + + + :return: The namespace of this OrganizationCustomDomains. + :rtype: int + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this OrganizationCustomDomains. + + + :param namespace: The namespace of this OrganizationCustomDomains. + :type: int + """ + + self._namespace = namespace + + @property + def primary(self): + """Gets the primary of this OrganizationCustomDomains. + + If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) + + :return: The primary of this OrganizationCustomDomains. + :rtype: bool + """ + return self._primary + + @primary.setter + def primary(self, primary): + """Sets the primary of this OrganizationCustomDomains. + + If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) + + :param primary: The primary of this OrganizationCustomDomains. + :type: bool + """ + + self._primary = primary + + @property + def redirect_root(self): + """Gets the redirect_root of this OrganizationCustomDomains. + + If checked, the domain root redirects to the repository. + + :return: The redirect_root of this OrganizationCustomDomains. + :rtype: bool + """ + return self._redirect_root + + @redirect_root.setter + def redirect_root(self, redirect_root): + """Sets the redirect_root of this OrganizationCustomDomains. + + If checked, the domain root redirects to the repository. + + :param redirect_root: The redirect_root of this OrganizationCustomDomains. + :type: bool + """ + + self._redirect_root = redirect_root + + @property + def redirect_root_url(self): + """Gets the redirect_root_url of this OrganizationCustomDomains. + + Where root requests should be redirected to if redirect_root is enabled. + + :return: The redirect_root_url of this OrganizationCustomDomains. + :rtype: str + """ + return self._redirect_root_url + + @redirect_root_url.setter + def redirect_root_url(self, redirect_root_url): + """Sets the redirect_root_url of this OrganizationCustomDomains. + + Where root requests should be redirected to if redirect_root is enabled. + + :param redirect_root_url: The redirect_root_url of this OrganizationCustomDomains. + :type: str + """ + + self._redirect_root_url = redirect_root_url + + @property + def repository(self): + """Gets the repository of this OrganizationCustomDomains. + + + :return: The repository of this OrganizationCustomDomains. + :rtype: OrganizationCustomDomainNestedRepo + """ + return self._repository + + @repository.setter + def repository(self, repository): + """Sets the repository of this OrganizationCustomDomains. + + + :param repository: The repository of this OrganizationCustomDomains. + :type: OrganizationCustomDomainNestedRepo + """ + if self._configuration.client_side_validation and repository is None: + raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 + + self._repository = repository + + @property + def repository_only(self): + """Gets the repository_only of this OrganizationCustomDomains. + + If checked, the domain applies to a specific repository only. + + :return: The repository_only of this OrganizationCustomDomains. + :rtype: bool + """ + return self._repository_only + + @repository_only.setter + def repository_only(self, repository_only): + """Sets the repository_only of this OrganizationCustomDomains. + + If checked, the domain applies to a specific repository only. + + :param repository_only: The repository_only of this OrganizationCustomDomains. + :type: bool + """ + + self._repository_only = repository_only + + @property + def slug_perm(self): + """Gets the slug_perm of this OrganizationCustomDomains. + + + :return: The slug_perm of this OrganizationCustomDomains. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this OrganizationCustomDomains. + + + :param slug_perm: The slug_perm of this OrganizationCustomDomains. + :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 validated(self): + """Gets the validated of this OrganizationCustomDomains. + + If validated, the domain is ready for requests. + + :return: The validated of this OrganizationCustomDomains. + :rtype: bool + """ + return self._validated + + @validated.setter + def validated(self, validated): + """Sets the validated of this OrganizationCustomDomains. + + If validated, the domain is ready for requests. + + :param validated: The validated of this OrganizationCustomDomains. + :type: bool + """ + + self._validated = validated + + @property + def validated_at(self): + """Gets the validated_at of this OrganizationCustomDomains. + + + :return: The validated_at of this OrganizationCustomDomains. + :rtype: datetime + """ + return self._validated_at + + @validated_at.setter + def validated_at(self, validated_at): + """Sets the validated_at of this OrganizationCustomDomains. + + + :param validated_at: The validated_at of this OrganizationCustomDomains. + :type: datetime + """ + + self._validated_at = validated_at + + 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(OrganizationCustomDomains, 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, OrganizationCustomDomains): + 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, OrganizationCustomDomains): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_membership.py b/bindings/python/src/cloudsmith_api/models/organization_membership.py index c7a87063..8d1005d8 100644 --- a/bindings/python/src/cloudsmith_api/models/organization_membership.py +++ b/bindings/python/src/cloudsmith_api/models/organization_membership.py @@ -40,6 +40,7 @@ class OrganizationMembership(object): 'last_login_at': 'datetime', 'last_login_method': 'str', 'role': 'str', + 'teams': 'list[MemberTeams]', 'user': 'str', 'user_id': 'str', 'user_name': 'str', @@ -55,6 +56,7 @@ class OrganizationMembership(object): 'last_login_at': 'last_login_at', 'last_login_method': 'last_login_method', 'role': 'role', + 'teams': 'teams', 'user': 'user', 'user_id': 'user_id', 'user_name': 'user_name', @@ -62,7 +64,7 @@ class OrganizationMembership(object): 'visibility': 'visibility' } - def __init__(self, email=None, has_two_factor=None, is_active=None, joined_at=None, last_login_at=None, last_login_method='Unknown', role='Owner', user=None, user_id=None, user_name=None, user_url=None, visibility='Public', _configuration=None): # noqa: E501 + def __init__(self, email=None, has_two_factor=None, is_active=None, joined_at=None, last_login_at=None, last_login_method='Unknown', role='Owner', teams=None, user=None, user_id=None, user_name=None, user_url=None, visibility='Public', _configuration=None): # noqa: E501 """OrganizationMembership - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -75,6 +77,7 @@ def __init__(self, email=None, has_two_factor=None, is_active=None, joined_at=No self._last_login_at = None self._last_login_method = None self._role = None + self._teams = None self._user = None self._user_id = None self._user_name = None @@ -96,6 +99,8 @@ def __init__(self, email=None, has_two_factor=None, is_active=None, joined_at=No self.last_login_method = last_login_method if role is not None: self.role = role + if teams is not None: + self.teams = teams if user is not None: self.user = user if user_id is not None: @@ -271,6 +276,27 @@ def role(self, role): self._role = role + @property + def teams(self): + """Gets the teams of this OrganizationMembership. + + + :return: The teams of this OrganizationMembership. + :rtype: list[MemberTeams] + """ + return self._teams + + @teams.setter + def teams(self, teams): + """Sets the teams of this OrganizationMembership. + + + :param teams: The teams of this OrganizationMembership. + :type: list[MemberTeams] + """ + + self._teams = teams + @property def user(self): """Gets the user of this OrganizationMembership. diff --git a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py index e077d41c..754110e6 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py @@ -61,6 +61,7 @@ class P2PackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class P2PackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class P2PackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class P2PackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class P2PackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """P2PackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this P2PackageUpload. + + + :return: The is_hidden of this P2PackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this P2PackageUpload. + + + :param is_hidden: The is_hidden of this P2PackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this P2PackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this P2PackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this P2PackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this P2PackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this P2PackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this P2PackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/package.py b/bindings/python/src/cloudsmith_api/models/package.py index f5c7097f..5b92dc2f 100644 --- a/bindings/python/src/cloudsmith_api/models/package.py +++ b/bindings/python/src/cloudsmith_api/models/package.py @@ -62,6 +62,7 @@ class Package(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -79,6 +80,7 @@ class Package(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -151,6 +153,7 @@ class Package(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -168,6 +171,7 @@ class Package(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class Package(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 + 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, filepath=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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """Package - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +249,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -262,6 +267,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -362,6 +368,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -396,6 +404,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1115,6 +1125,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this Package. + + + :return: The is_hidden of this Package. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this Package. + + + :param is_hidden: The is_hidden of this Package. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this Package. @@ -1482,6 +1513,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this Package. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this Package. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this Package. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this Package. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this Package. diff --git a/bindings/python/src/cloudsmith_api/models/package_copy.py b/bindings/python/src/cloudsmith_api/models/package_copy.py index 7c5c8b1f..2674ee73 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy.py @@ -62,6 +62,7 @@ class PackageCopy(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -79,6 +80,7 @@ class PackageCopy(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -151,6 +153,7 @@ class PackageCopy(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -168,6 +171,7 @@ class PackageCopy(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class PackageCopy(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 + 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, filepath=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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageCopy - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +249,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -262,6 +267,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -362,6 +368,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -396,6 +404,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1115,6 +1125,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageCopy. + + + :return: The is_hidden of this PackageCopy. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageCopy. + + + :param is_hidden: The is_hidden of this PackageCopy. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PackageCopy. @@ -1482,6 +1513,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PackageCopy. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageCopy. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageCopy. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageCopy. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PackageCopy. diff --git a/bindings/python/src/cloudsmith_api/models/package_move.py b/bindings/python/src/cloudsmith_api/models/package_move.py index 2cf0fcbf..e4787975 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move.py +++ b/bindings/python/src/cloudsmith_api/models/package_move.py @@ -62,6 +62,7 @@ class PackageMove(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -79,6 +80,7 @@ class PackageMove(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -151,6 +153,7 @@ class PackageMove(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -168,6 +171,7 @@ class PackageMove(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class PackageMove(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 + 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, filepath=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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageMove - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +249,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -262,6 +267,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -362,6 +368,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -396,6 +404,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1115,6 +1125,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageMove. + + + :return: The is_hidden of this PackageMove. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageMove. + + + :param is_hidden: The is_hidden of this PackageMove. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PackageMove. @@ -1482,6 +1513,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PackageMove. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageMove. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageMove. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageMove. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PackageMove. diff --git a/bindings/python/src/cloudsmith_api/models/package_quarantine.py b/bindings/python/src/cloudsmith_api/models/package_quarantine.py index 1d1a6e33..6c127f86 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine.py @@ -62,6 +62,7 @@ class PackageQuarantine(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -79,6 +80,7 @@ class PackageQuarantine(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -150,6 +152,7 @@ class PackageQuarantine(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -167,6 +170,7 @@ class PackageQuarantine(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -208,7 +212,7 @@ class PackageQuarantine(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 + 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, filepath=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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 """PackageQuarantine - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -243,6 +247,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -260,6 +265,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -359,6 +365,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -393,6 +401,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1110,6 +1120,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageQuarantine. + + + :return: The is_hidden of this PackageQuarantine. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageQuarantine. + + + :param is_hidden: The is_hidden of this PackageQuarantine. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PackageQuarantine. @@ -1477,6 +1508,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PackageQuarantine. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageQuarantine. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageQuarantine. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageQuarantine. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PackageQuarantine. diff --git a/bindings/python/src/cloudsmith_api/models/package_resync.py b/bindings/python/src/cloudsmith_api/models/package_resync.py index c789e0fb..ef9c87aa 100644 --- a/bindings/python/src/cloudsmith_api/models/package_resync.py +++ b/bindings/python/src/cloudsmith_api/models/package_resync.py @@ -62,6 +62,7 @@ class PackageResync(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -79,6 +80,7 @@ class PackageResync(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -151,6 +153,7 @@ class PackageResync(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -168,6 +171,7 @@ class PackageResync(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class PackageResync(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 + 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, filepath=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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=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 """PackageResync - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +249,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -262,6 +267,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -362,6 +368,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -396,6 +404,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1115,6 +1125,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageResync. + + + :return: The is_hidden of this PackageResync. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageResync. + + + :param is_hidden: The is_hidden of this PackageResync. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PackageResync. @@ -1482,6 +1513,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PackageResync. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageResync. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageResync. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageResync. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PackageResync. diff --git a/bindings/python/src/cloudsmith_api/models/package_status.py b/bindings/python/src/cloudsmith_api/models/package_status.py index f783577e..bfb77e1f 100644 --- a/bindings/python/src/cloudsmith_api/models/package_status.py +++ b/bindings/python/src/cloudsmith_api/models/package_status.py @@ -37,6 +37,7 @@ class PackageStatus(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -64,6 +65,7 @@ class PackageStatus(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -86,7 +88,7 @@ class PackageStatus(object): 'sync_progress': 'sync_progress' } - def __init__(self, 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, self_url=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, sync_finished_at=None, sync_progress=None, _configuration=None): # noqa: E501 + def __init__(self, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=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, self_url=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, sync_finished_at=None, sync_progress=None, _configuration=None): # noqa: E501 """PackageStatus - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -96,6 +98,7 @@ def __init__(self, is_cancellable=None, is_copyable=None, is_deleteable=None, is self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -126,6 +129,8 @@ def __init__(self, is_cancellable=None, is_copyable=None, is_deleteable=None, is self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -251,6 +256,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageStatus. + + + :return: The is_hidden of this PackageStatus. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageStatus. + + + :param is_hidden: The is_hidden of this PackageStatus. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PackageStatus. diff --git a/bindings/python/src/cloudsmith_api/models/package_tag.py b/bindings/python/src/cloudsmith_api/models/package_tag.py index d4575605..d31f3c09 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag.py @@ -62,6 +62,7 @@ class PackageTag(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_immutable': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', @@ -80,6 +81,7 @@ class PackageTag(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -151,6 +153,7 @@ class PackageTag(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_immutable': 'is_immutable', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', @@ -169,6 +172,7 @@ class PackageTag(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -210,7 +214,7 @@ class PackageTag(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, filepath=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_immutable=False, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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, filepath=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_hidden=None, is_immutable=False, 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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """PackageTag - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +249,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_immutable = None self._is_moveable = None self._is_quarantinable = None @@ -263,6 +268,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -362,6 +368,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_immutable is not None: self.is_immutable = is_immutable if is_moveable is not None: @@ -398,6 +406,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1115,6 +1125,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PackageTag. + + + :return: The is_hidden of this PackageTag. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageTag. + + + :param is_hidden: The is_hidden of this PackageTag. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_immutable(self): """Gets the is_immutable of this PackageTag. @@ -1505,6 +1536,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PackageTag. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageTag. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageTag. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageTag. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PackageTag. diff --git a/bindings/python/src/cloudsmith_api/models/python_package_upload.py b/bindings/python/src/cloudsmith_api/models/python_package_upload.py index 09f78f8b..e07a305d 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload.py @@ -61,6 +61,7 @@ class PythonPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class PythonPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class PythonPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class PythonPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class PythonPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """PythonPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this PythonPackageUpload. + + + :return: The is_hidden of this PythonPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PythonPackageUpload. + + + :param is_hidden: The is_hidden of this PythonPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this PythonPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this PythonPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PythonPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PythonPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PythonPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this PythonPackageUpload. 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 126beb93..35c0040e 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -61,6 +61,7 @@ class RawPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class RawPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class RawPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class RawPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class RawPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """RawPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1082,6 +1092,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this RawPackageUpload. + + + :return: The is_hidden of this RawPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this RawPackageUpload. + + + :param is_hidden: The is_hidden of this RawPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this RawPackageUpload. @@ -1452,6 +1483,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this RawPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this RawPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this RawPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this RawPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this RawPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/repository.py b/bindings/python/src/cloudsmith_api/models/repository.py index a85e4eb1..ab663ac0 100644 --- a/bindings/python/src/cloudsmith_api/models/repository.py +++ b/bindings/python/src/cloudsmith_api/models/repository.py @@ -63,6 +63,7 @@ class Repository(object): 'name': 'str', 'namespace': 'str', 'namespace_url': 'str', + 'npm_upstream_tags_take_precedence': 'bool', 'nuget_native_signing_enabled': 'bool', 'num_downloads': 'int', 'num_policy_violated_packages': 'int', @@ -136,6 +137,7 @@ class Repository(object): 'name': 'name', 'namespace': 'namespace', 'namespace_url': 'namespace_url', + 'npm_upstream_tags_take_precedence': 'npm_upstream_tags_take_precedence', 'nuget_native_signing_enabled': 'nuget_native_signing_enabled', 'num_downloads': 'num_downloads', 'num_policy_violated_packages': 'num_policy_violated_packages', @@ -178,7 +180,7 @@ class Repository(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """Repository - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -214,6 +216,7 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self._name = None self._namespace = None self._namespace_url = None + self._npm_upstream_tags_take_precedence = None self._nuget_native_signing_enabled = None self._num_downloads = None self._num_policy_violated_packages = None @@ -315,6 +318,8 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self.namespace = namespace if namespace_url is not None: self.namespace_url = namespace_url + if npm_upstream_tags_take_precedence is not None: + self.npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence if nuget_native_signing_enabled is not None: self.nuget_native_signing_enabled = nuget_native_signing_enabled if num_downloads is not None: @@ -1137,6 +1142,29 @@ def namespace_url(self, namespace_url): self._namespace_url = namespace_url + @property + def npm_upstream_tags_take_precedence(self): + """Gets the npm_upstream_tags_take_precedence of this Repository. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :return: The npm_upstream_tags_take_precedence of this Repository. + :rtype: bool + """ + return self._npm_upstream_tags_take_precedence + + @npm_upstream_tags_take_precedence.setter + def npm_upstream_tags_take_precedence(self, npm_upstream_tags_take_precedence): + """Sets the npm_upstream_tags_take_precedence of this Repository. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :param npm_upstream_tags_take_precedence: The npm_upstream_tags_take_precedence of this Repository. + :type: bool + """ + + self._npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence + @property def nuget_native_signing_enabled(self): """Gets the nuget_native_signing_enabled of this Repository. diff --git a/bindings/python/src/cloudsmith_api/models/repository_create.py b/bindings/python/src/cloudsmith_api/models/repository_create.py index 8ce20921..71dae026 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create.py @@ -63,6 +63,7 @@ class RepositoryCreate(object): 'name': 'str', 'namespace': 'str', 'namespace_url': 'str', + 'npm_upstream_tags_take_precedence': 'bool', 'nuget_native_signing_enabled': 'bool', 'num_downloads': 'int', 'num_policy_violated_packages': 'int', @@ -136,6 +137,7 @@ class RepositoryCreate(object): 'name': 'name', 'namespace': 'namespace', 'namespace_url': 'namespace_url', + 'npm_upstream_tags_take_precedence': 'npm_upstream_tags_take_precedence', 'nuget_native_signing_enabled': 'nuget_native_signing_enabled', 'num_downloads': 'num_downloads', 'num_policy_violated_packages': 'num_policy_violated_packages', @@ -178,7 +180,7 @@ class RepositoryCreate(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, created_at=None, default_privilege='None', delete_own=None, delete_packages='Admin', deleted_at=None, description=None, distributes=None, docker_refresh_tokens_enabled=None, ecdsa_keys=None, enforce_eula=None, generic_package_index_enabled=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, namespace=None, namespace_url=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, num_downloads=None, num_policy_violated_packages=None, num_quarantined_packages=None, open_source_license=None, open_source_project_url=None, package_count=None, package_count_excl_subcomponents=None, package_group_count=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', self_html_url=None, self_url=None, self_webapp_url=None, show_setup_all=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """RepositoryCreate - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -214,6 +216,7 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self._name = None self._namespace = None self._namespace_url = None + self._npm_upstream_tags_take_precedence = None self._nuget_native_signing_enabled = None self._num_downloads = None self._num_policy_violated_packages = None @@ -315,6 +318,8 @@ def __init__(self, broadcast_state='Off', cdn_url=None, content_kind='Standard', self.namespace = namespace if namespace_url is not None: self.namespace_url = namespace_url + if npm_upstream_tags_take_precedence is not None: + self.npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence if nuget_native_signing_enabled is not None: self.nuget_native_signing_enabled = nuget_native_signing_enabled if num_downloads is not None: @@ -1137,6 +1142,29 @@ def namespace_url(self, namespace_url): self._namespace_url = namespace_url + @property + def npm_upstream_tags_take_precedence(self): + """Gets the npm_upstream_tags_take_precedence of this RepositoryCreate. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :return: The npm_upstream_tags_take_precedence of this RepositoryCreate. + :rtype: bool + """ + return self._npm_upstream_tags_take_precedence + + @npm_upstream_tags_take_precedence.setter + def npm_upstream_tags_take_precedence(self, npm_upstream_tags_take_precedence): + """Sets the npm_upstream_tags_take_precedence of this RepositoryCreate. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :param npm_upstream_tags_take_precedence: The npm_upstream_tags_take_precedence of this RepositoryCreate. + :type: bool + """ + + self._npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence + @property def nuget_native_signing_enabled(self): """Gets the nuget_native_signing_enabled of this RepositoryCreate. 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 c6c53ac8..a016d71c 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create_request.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create_request.py @@ -53,6 +53,7 @@ class RepositoryCreateRequest(object): 'move_own': 'bool', 'move_packages': 'str', 'name': 'str', + 'npm_upstream_tags_take_precedence': 'bool', 'nuget_native_signing_enabled': 'bool', 'open_source_license': 'str', 'open_source_project_url': 'str', @@ -103,6 +104,7 @@ class RepositoryCreateRequest(object): 'move_own': 'move_own', 'move_packages': 'move_packages', 'name': 'name', + 'npm_upstream_tags_take_precedence': 'npm_upstream_tags_take_precedence', 'nuget_native_signing_enabled': 'nuget_native_signing_enabled', 'open_source_license': 'open_source_license', 'open_source_project_url': 'open_source_project_url', @@ -132,7 +134,7 @@ class RepositoryCreateRequest(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, default_privilege='None', delete_own=None, delete_packages='Admin', description=None, distributes=None, docker_refresh_tokens_enabled=None, enforce_eula=None, generic_package_index_enabled=None, index_files=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, nuget_native_signing_enabled=None, open_source_license=None, open_source_project_url=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', show_setup_all=None, slug=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, default_privilege='None', delete_own=None, delete_packages='Admin', description=None, distributes=None, docker_refresh_tokens_enabled=None, enforce_eula=None, generic_package_index_enabled=None, index_files=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, open_source_license=None, open_source_project_url=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', show_setup_all=None, slug=None, storage_region='default', strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """RepositoryCreateRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -158,6 +160,7 @@ def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_au self._move_own = None self._move_packages = None self._name = None + self._npm_upstream_tags_take_precedence = None self._nuget_native_signing_enabled = None self._open_source_license = None self._open_source_project_url = None @@ -226,6 +229,8 @@ def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_au if move_packages is not None: self.move_packages = move_packages self.name = name + if npm_upstream_tags_take_precedence is not None: + self.npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence if nuget_native_signing_enabled is not None: self.nuget_native_signing_enabled = nuget_native_signing_enabled if open_source_license is not None: @@ -801,6 +806,29 @@ def name(self, name): self._name = name + @property + def npm_upstream_tags_take_precedence(self): + """Gets the npm_upstream_tags_take_precedence of this RepositoryCreateRequest. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :return: The npm_upstream_tags_take_precedence of this RepositoryCreateRequest. + :rtype: bool + """ + return self._npm_upstream_tags_take_precedence + + @npm_upstream_tags_take_precedence.setter + def npm_upstream_tags_take_precedence(self, npm_upstream_tags_take_precedence): + """Sets the npm_upstream_tags_take_precedence of this RepositoryCreateRequest. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :param npm_upstream_tags_take_precedence: The npm_upstream_tags_take_precedence of this RepositoryCreateRequest. + :type: bool + """ + + self._npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence + @property def nuget_native_signing_enabled(self): """Gets the nuget_native_signing_enabled of this RepositoryCreateRequest. diff --git a/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py new file mode 100644 index 00000000..2324b3a1 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key.py @@ -0,0 +1,268 @@ +# 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 RepositoryEd25519Key(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 = { + 'active': 'bool', + 'created_at': 'datetime', + 'default': 'bool', + 'fingerprint': 'str', + 'fingerprint_short': 'str', + 'public_key': 'str' + } + + attribute_map = { + 'active': 'active', + 'created_at': 'created_at', + 'default': 'default', + 'fingerprint': 'fingerprint', + 'fingerprint_short': 'fingerprint_short', + 'public_key': 'public_key' + } + + def __init__(self, active=None, created_at=None, default=None, fingerprint=None, fingerprint_short=None, public_key=None, _configuration=None): # noqa: E501 + """RepositoryEd25519Key - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._active = None + self._created_at = None + self._default = None + self._fingerprint = None + self._fingerprint_short = None + self._public_key = None + self.discriminator = None + + if active is not None: + self.active = active + if created_at is not None: + self.created_at = created_at + if default is not None: + self.default = default + if fingerprint is not None: + self.fingerprint = fingerprint + if fingerprint_short is not None: + self.fingerprint_short = fingerprint_short + if public_key is not None: + self.public_key = public_key + + @property + def active(self): + """Gets the active of this RepositoryEd25519Key. + + If selected this is the active key for this repository. + + :return: The active of this RepositoryEd25519Key. + :rtype: bool + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this RepositoryEd25519Key. + + If selected this is the active key for this repository. + + :param active: The active of this RepositoryEd25519Key. + :type: bool + """ + + self._active = active + + @property + def created_at(self): + """Gets the created_at of this RepositoryEd25519Key. + + + :return: The created_at of this RepositoryEd25519Key. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this RepositoryEd25519Key. + + + :param created_at: The created_at of this RepositoryEd25519Key. + :type: datetime + """ + + self._created_at = created_at + + @property + def default(self): + """Gets the default of this RepositoryEd25519Key. + + If selected this is the default key for this repository. + + :return: The default of this RepositoryEd25519Key. + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this RepositoryEd25519Key. + + If selected this is the default key for this repository. + + :param default: The default of this RepositoryEd25519Key. + :type: bool + """ + + self._default = default + + @property + def fingerprint(self): + """Gets the fingerprint of this RepositoryEd25519Key. + + Uppercase hex-encoded SHA-256 fingerprint of the public key. + + :return: The fingerprint of this RepositoryEd25519Key. + :rtype: str + """ + return self._fingerprint + + @fingerprint.setter + def fingerprint(self, fingerprint): + """Sets the fingerprint of this RepositoryEd25519Key. + + Uppercase hex-encoded SHA-256 fingerprint of the public key. + + :param fingerprint: The fingerprint of this RepositoryEd25519Key. + :type: str + """ + if (self._configuration.client_side_validation and + fingerprint is not None and len(fingerprint) < 1): + raise ValueError("Invalid value for `fingerprint`, length must be greater than or equal to `1`") # noqa: E501 + + self._fingerprint = fingerprint + + @property + def fingerprint_short(self): + """Gets the fingerprint_short of this RepositoryEd25519Key. + + + :return: The fingerprint_short of this RepositoryEd25519Key. + :rtype: str + """ + return self._fingerprint_short + + @fingerprint_short.setter + def fingerprint_short(self, fingerprint_short): + """Sets the fingerprint_short of this RepositoryEd25519Key. + + + :param fingerprint_short: The fingerprint_short of this RepositoryEd25519Key. + :type: str + """ + + self._fingerprint_short = fingerprint_short + + @property + def public_key(self): + """Gets the public_key of this RepositoryEd25519Key. + + The public key given to repository users. + + :return: The public_key of this RepositoryEd25519Key. + :rtype: str + """ + return self._public_key + + @public_key.setter + def public_key(self, public_key): + """Sets the public_key of this RepositoryEd25519Key. + + The public key given to repository users. + + :param public_key: The public_key of this RepositoryEd25519Key. + :type: str + """ + if (self._configuration.client_side_validation and + public_key is not None and len(public_key) < 1): + raise ValueError("Invalid value for `public_key`, length must be greater than or equal to `1`") # noqa: E501 + + self._public_key = public_key + + 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(RepositoryEd25519Key, 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, RepositoryEd25519Key): + 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, RepositoryEd25519Key): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/repository_ed25519_key_create.py b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key_create.py new file mode 100644 index 00000000..d58e0715 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/repository_ed25519_key_create.py @@ -0,0 +1,161 @@ +# 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 RepositoryEd25519KeyCreate(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 = { + 'ed25519_passphrase': 'str', + 'ed25519_private_key': 'str' + } + + attribute_map = { + 'ed25519_passphrase': 'ed25519_passphrase', + 'ed25519_private_key': 'ed25519_private_key' + } + + def __init__(self, ed25519_passphrase=None, ed25519_private_key=None, _configuration=None): # noqa: E501 + """RepositoryEd25519KeyCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._ed25519_passphrase = None + self._ed25519_private_key = None + self.discriminator = None + + if ed25519_passphrase is not None: + self.ed25519_passphrase = ed25519_passphrase + self.ed25519_private_key = ed25519_private_key + + @property + def ed25519_passphrase(self): + """Gets the ed25519_passphrase of this RepositoryEd25519KeyCreate. + + The Ed25519 passphrase used for signing. + + :return: The ed25519_passphrase of this RepositoryEd25519KeyCreate. + :rtype: str + """ + return self._ed25519_passphrase + + @ed25519_passphrase.setter + def ed25519_passphrase(self, ed25519_passphrase): + """Sets the ed25519_passphrase of this RepositoryEd25519KeyCreate. + + The Ed25519 passphrase used for signing. + + :param ed25519_passphrase: The ed25519_passphrase of this RepositoryEd25519KeyCreate. + :type: str + """ + if (self._configuration.client_side_validation and + ed25519_passphrase is not None and len(ed25519_passphrase) < 1): + raise ValueError("Invalid value for `ed25519_passphrase`, length must be greater than or equal to `1`") # noqa: E501 + + self._ed25519_passphrase = ed25519_passphrase + + @property + def ed25519_private_key(self): + """Gets the ed25519_private_key of this RepositoryEd25519KeyCreate. + + The Ed25519 private key. + + :return: The ed25519_private_key of this RepositoryEd25519KeyCreate. + :rtype: str + """ + return self._ed25519_private_key + + @ed25519_private_key.setter + def ed25519_private_key(self, ed25519_private_key): + """Sets the ed25519_private_key of this RepositoryEd25519KeyCreate. + + The Ed25519 private key. + + :param ed25519_private_key: The ed25519_private_key of this RepositoryEd25519KeyCreate. + :type: str + """ + if self._configuration.client_side_validation and ed25519_private_key is None: + raise ValueError("Invalid value for `ed25519_private_key`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + ed25519_private_key is not None and len(ed25519_private_key) < 1): + raise ValueError("Invalid value for `ed25519_private_key`, length must be greater than or equal to `1`") # noqa: E501 + + self._ed25519_private_key = ed25519_private_key + + 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(RepositoryEd25519KeyCreate, 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, RepositoryEd25519KeyCreate): + 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, RepositoryEd25519KeyCreate): + return True + + return self.to_dict() != other.to_dict() + 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 5201dc7e..f5d52b3f 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/repository_request_patch.py @@ -53,6 +53,7 @@ class RepositoryRequestPatch(object): 'move_own': 'bool', 'move_packages': 'str', 'name': 'str', + 'npm_upstream_tags_take_precedence': 'bool', 'nuget_native_signing_enabled': 'bool', 'open_source_license': 'str', 'open_source_project_url': 'str', @@ -102,6 +103,7 @@ class RepositoryRequestPatch(object): 'move_own': 'move_own', 'move_packages': 'move_packages', 'name': 'name', + 'npm_upstream_tags_take_precedence': 'npm_upstream_tags_take_precedence', 'nuget_native_signing_enabled': 'nuget_native_signing_enabled', 'open_source_license': 'open_source_license', 'open_source_project_url': 'open_source_project_url', @@ -130,7 +132,7 @@ class RepositoryRequestPatch(object): 'view_statistics': 'view_statistics' } - def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, default_privilege='None', delete_own=None, delete_packages='Admin', description=None, distributes=None, docker_refresh_tokens_enabled=None, enforce_eula=None, generic_package_index_enabled=None, index_files=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, nuget_native_signing_enabled=None, open_source_license=None, open_source_project_url=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', show_setup_all=None, slug=None, strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 + def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_auth_realm=None, copy_own=None, copy_packages='Read', cosign_signing_enabled=None, default_privilege='None', delete_own=None, delete_packages='Admin', description=None, distributes=None, docker_refresh_tokens_enabled=None, enforce_eula=None, generic_package_index_enabled=None, index_files=None, is_public_hidden=None, manage_entitlements_privilege='Admin', move_own=None, move_packages='Admin', name=None, npm_upstream_tags_take_precedence=None, nuget_native_signing_enabled=None, open_source_license=None, open_source_project_url=None, proxy_npmjs=None, proxy_pypi=None, raw_package_index_enabled=None, raw_package_index_signatures_enabled=None, replace_packages='Write', replace_packages_by_default=None, repository_type_str='Public', resync_own=None, resync_packages='Admin', scan_own=None, scan_packages='Read', show_setup_all=None, slug=None, strict_npm_validation=None, tag_pre_releases_as_latest=None, use_debian_labels=None, use_default_cargo_upstream=None, use_entitlements_privilege='Read', use_noarch_packages=None, use_source_packages=None, use_vulnerability_scanning=None, user_entitlements_enabled=None, view_statistics='Read', _configuration=None): # noqa: E501 """RepositoryRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -156,6 +158,7 @@ def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_au self._move_own = None self._move_packages = None self._name = None + self._npm_upstream_tags_take_precedence = None self._nuget_native_signing_enabled = None self._open_source_license = None self._open_source_project_url = None @@ -224,6 +227,8 @@ def __init__(self, broadcast_state='Off', content_kind='Standard', contextual_au self.move_packages = move_packages if name is not None: self.name = name + if npm_upstream_tags_take_precedence is not None: + self.npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence if nuget_native_signing_enabled is not None: self.nuget_native_signing_enabled = nuget_native_signing_enabled if open_source_license is not None: @@ -795,6 +800,29 @@ def name(self, name): self._name = name + @property + def npm_upstream_tags_take_precedence(self): + """Gets the npm_upstream_tags_take_precedence of this RepositoryRequestPatch. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :return: The npm_upstream_tags_take_precedence of this RepositoryRequestPatch. + :rtype: bool + """ + return self._npm_upstream_tags_take_precedence + + @npm_upstream_tags_take_precedence.setter + def npm_upstream_tags_take_precedence(self, npm_upstream_tags_take_precedence): + """Sets the npm_upstream_tags_take_precedence of this RepositoryRequestPatch. + + If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + + :param npm_upstream_tags_take_precedence: The npm_upstream_tags_take_precedence of this RepositoryRequestPatch. + :type: bool + """ + + self._npm_upstream_tags_take_precedence = npm_upstream_tags_take_precedence + @property def nuget_native_signing_enabled(self): """Gets the nuget_native_signing_enabled of this RepositoryRequestPatch. diff --git a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py index d156c353..3f3500e1 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py @@ -61,6 +61,7 @@ class RpmPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class RpmPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class RpmPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class RpmPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class RpmPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """RpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this RpmPackageUpload. + + + :return: The is_hidden of this RpmPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this RpmPackageUpload. + + + :param is_hidden: The is_hidden of this RpmPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this RpmPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this RpmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this RpmPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this RpmPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this RpmPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this RpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py index 6de5a50d..3c1b6058 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py @@ -61,6 +61,7 @@ class RubyPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class RubyPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class RubyPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class RubyPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class RubyPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """RubyPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this RubyPackageUpload. + + + :return: The is_hidden of this RubyPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this RubyPackageUpload. + + + :param is_hidden: The is_hidden of this RubyPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this RubyPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this RubyPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this RubyPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this RubyPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this RubyPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this RubyPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/service_teams.py b/bindings/python/src/cloudsmith_api/models/service_teams.py index c03821f2..cb7a683a 100644 --- a/bindings/python/src/cloudsmith_api/models/service_teams.py +++ b/bindings/python/src/cloudsmith_api/models/service_teams.py @@ -33,29 +33,60 @@ class ServiceTeams(object): and the value is json key in definition. """ swagger_types = { + 'name': 'str', 'role': 'str', 'slug': 'str' } attribute_map = { + 'name': 'name', 'role': 'role', 'slug': 'slug' } - def __init__(self, role='Manager', slug=None, _configuration=None): # noqa: E501 + def __init__(self, name=None, role='Manager', slug=None, _configuration=None): # noqa: E501 """ServiceTeams - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._name = None self._role = None self._slug = None self.discriminator = None + if name is not None: + self.name = name if role is not None: self.role = role self.slug = slug + @property + def name(self): + """Gets the name of this ServiceTeams. + + The name of the team + + :return: The name of this ServiceTeams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ServiceTeams. + + The name of the team + + :param name: The name of this ServiceTeams. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + @property def role(self): """Gets the role of this ServiceTeams. 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 387259d9..b56138f6 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py @@ -63,6 +63,7 @@ class SwiftPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -81,6 +82,7 @@ class SwiftPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -155,6 +157,7 @@ class SwiftPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -173,6 +176,7 @@ class SwiftPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -216,7 +220,7 @@ class SwiftPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, author_name=None, author_org=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, license_url=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, package_type=None, policy_violated=None, raw_license=None, readme_url=None, release=None, repository=None, repository_url=None, scope=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + def __init__(self, architectures=None, author_name=None, author_org=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_hidden=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, license_url=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, readme_url=None, release=None, repository=None, repository_url=None, scope=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """SwiftPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -252,6 +256,7 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -270,6 +275,7 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -373,6 +379,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -408,6 +416,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1153,6 +1163,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this SwiftPackageUpload. + + + :return: The is_hidden of this SwiftPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this SwiftPackageUpload. + + + :param is_hidden: The is_hidden of this SwiftPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this SwiftPackageUpload. @@ -1551,6 +1582,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this SwiftPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this SwiftPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this SwiftPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this SwiftPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this SwiftPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py index 18a1b8e9..8cb5e1df 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py @@ -61,6 +61,7 @@ class TerraformPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class TerraformPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class TerraformPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class TerraformPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class TerraformPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """TerraformPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this TerraformPackageUpload. + + + :return: The is_hidden of this TerraformPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this TerraformPackageUpload. + + + :param is_hidden: The is_hidden of this TerraformPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this TerraformPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this TerraformPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this TerraformPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this TerraformPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this TerraformPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this TerraformPackageUpload. 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 394f98d6..68807bdc 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -61,6 +61,7 @@ class VagrantPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class VagrantPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'provider': 'str', @@ -149,6 +151,7 @@ class VagrantPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -166,6 +169,7 @@ class VagrantPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'provider': 'provider', @@ -208,7 +212,7 @@ class VagrantPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, provider=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, provider=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """VagrantPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -242,6 +246,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -259,6 +264,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._provider = None @@ -357,6 +363,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -390,6 +398,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1081,6 +1091,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this VagrantPackageUpload. + + + :return: The is_hidden of this VagrantPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this VagrantPackageUpload. + + + :param is_hidden: The is_hidden of this VagrantPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this VagrantPackageUpload. @@ -1453,6 +1484,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this VagrantPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this VagrantPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this VagrantPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this VagrantPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this VagrantPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py index be26f9cf..1b0e7eb0 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py @@ -61,6 +61,7 @@ class VsxPackageUpload(object): 'is_copyable': 'bool', 'is_deleteable': 'bool', 'is_downloadable': 'bool', + 'is_hidden': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -78,6 +79,7 @@ class VsxPackageUpload(object): 'num_files': 'int', 'origin_repository': 'str', 'origin_repository_url': 'str', + 'osi_approved': 'bool', 'package_type': 'int', 'policy_violated': 'bool', 'raw_license': 'str', @@ -148,6 +150,7 @@ class VsxPackageUpload(object): 'is_copyable': 'is_copyable', 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -165,6 +168,7 @@ class VsxPackageUpload(object): 'num_files': 'num_files', 'origin_repository': 'origin_repository', 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', 'package_type': 'package_type', 'policy_violated': 'policy_violated', 'raw_license': 'raw_license', @@ -206,7 +210,7 @@ class VsxPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, 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, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 + 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_hidden=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, osi_approved=None, package_type=None, policy_violated=None, raw_license=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, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=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_automatic=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 """VsxPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +244,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_copyable = None self._is_deleteable = None self._is_downloadable = None + self._is_hidden = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -257,6 +262,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._num_files = None self._origin_repository = None self._origin_repository_url = None + self._osi_approved = None self._package_type = None self._policy_violated = None self._raw_license = None @@ -354,6 +360,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_deleteable = is_deleteable if is_downloadable is not None: self.is_downloadable = is_downloadable + if is_hidden is not None: + self.is_hidden = is_hidden if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -388,6 +396,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.origin_repository = origin_repository if origin_repository_url is not None: self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved if package_type is not None: self.package_type = package_type if policy_violated is not None: @@ -1079,6 +1089,27 @@ def is_downloadable(self, is_downloadable): self._is_downloadable = is_downloadable + @property + def is_hidden(self): + """Gets the is_hidden of this VsxPackageUpload. + + + :return: The is_hidden of this VsxPackageUpload. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this VsxPackageUpload. + + + :param is_hidden: The is_hidden of this VsxPackageUpload. + :type: bool + """ + + self._is_hidden = is_hidden + @property def is_moveable(self): """Gets the is_moveable of this VsxPackageUpload. @@ -1446,6 +1477,29 @@ def origin_repository_url(self, origin_repository_url): self._origin_repository_url = origin_repository_url + @property + def osi_approved(self): + """Gets the osi_approved of this VsxPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this VsxPackageUpload. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this VsxPackageUpload. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this VsxPackageUpload. + :type: bool + """ + + self._osi_approved = osi_approved + @property def package_type(self): """Gets the package_type of this VsxPackageUpload. diff --git a/bindings/python/src/docs/AlpinePackageUpload.md b/bindings/python/src/docs/AlpinePackageUpload.md index f7678fe8..d5bb5afb 100644 --- a/bindings/python/src/docs/AlpinePackageUpload.md +++ b/bindings/python/src/docs/AlpinePackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/CargoPackageUpload.md b/bindings/python/src/docs/CargoPackageUpload.md index 773fe28c..f6b2638f 100644 --- a/bindings/python/src/docs/CargoPackageUpload.md +++ b/bindings/python/src/docs/CargoPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/CocoapodsPackageUpload.md b/bindings/python/src/docs/CocoapodsPackageUpload.md index 350dd938..1480d0cf 100644 --- a/bindings/python/src/docs/CocoapodsPackageUpload.md +++ b/bindings/python/src/docs/CocoapodsPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/ComposerPackageUpload.md b/bindings/python/src/docs/ComposerPackageUpload.md index ebdedeba..c248a7c2 100644 --- a/bindings/python/src/docs/ComposerPackageUpload.md +++ b/bindings/python/src/docs/ComposerPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/ConanPackageUpload.md b/bindings/python/src/docs/ConanPackageUpload.md index 09229d3d..903dd86c 100644 --- a/bindings/python/src/docs/ConanPackageUpload.md +++ b/bindings/python/src/docs/ConanPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/CondaPackageUpload.md b/bindings/python/src/docs/CondaPackageUpload.md index a58911e6..32a06893 100644 --- a/bindings/python/src/docs/CondaPackageUpload.md +++ b/bindings/python/src/docs/CondaPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/ConnectedRepository.md b/bindings/python/src/docs/ConnectedRepository.md new file mode 100644 index 00000000..ee141b1f --- /dev/null +++ b/bindings/python/src/docs/ConnectedRepository.md @@ -0,0 +1,14 @@ +# ConnectedRepository + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **datetime** | The date and time when the connection was created. | [optional] +**is_active** | **bool** | | [optional] [default to True] +**priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**slug_perm** | **str** | | [optional] +**target_repository** | **str** | The slug of the target repository to connect to. | + +[[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/ConnectedRepositoryRequest.md b/bindings/python/src/docs/ConnectedRepositoryRequest.md new file mode 100644 index 00000000..14d55ffa --- /dev/null +++ b/bindings/python/src/docs/ConnectedRepositoryRequest.md @@ -0,0 +1,12 @@ +# ConnectedRepositoryRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_active** | **bool** | | [optional] [default to True] +**priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**target_repository** | **str** | The slug of the target repository to connect to. | + +[[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/ConnectedRepositoryRequestPatch.md b/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md new file mode 100644 index 00000000..10ae988b --- /dev/null +++ b/bindings/python/src/docs/ConnectedRepositoryRequestPatch.md @@ -0,0 +1,12 @@ +# ConnectedRepositoryRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_active** | **bool** | | [optional] [default to True] +**priority** | **int** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**target_repository** | **str** | The slug of the target repository to connect to. | [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/CranPackageUpload.md b/bindings/python/src/docs/CranPackageUpload.md index eb324dc8..86429a54 100644 --- a/bindings/python/src/docs/CranPackageUpload.md +++ b/bindings/python/src/docs/CranPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **r_version** | **str** | Binary package uploads should specify the version of R they were built for. | [optional] diff --git a/bindings/python/src/docs/DartPackageUpload.md b/bindings/python/src/docs/DartPackageUpload.md index 4d6f6bab..f5f9e66d 100644 --- a/bindings/python/src/docs/DartPackageUpload.md +++ b/bindings/python/src/docs/DartPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/DebPackageUpload.md b/bindings/python/src/docs/DebPackageUpload.md index f5702ccc..94e57d9e 100644 --- a/bindings/python/src/docs/DebPackageUpload.md +++ b/bindings/python/src/docs/DebPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/DockerPackageUpload.md b/bindings/python/src/docs/DockerPackageUpload.md index 1518932c..c1b4f6bc 100644 --- a/bindings/python/src/docs/DockerPackageUpload.md +++ b/bindings/python/src/docs/DockerPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/EntitlementsApi.md b/bindings/python/src/docs/EntitlementsApi.md index 4779c66d..0817e68d 100644 --- a/bindings/python/src/docs/EntitlementsApi.md +++ b/bindings/python/src/docs/EntitlementsApi.md @@ -265,7 +265,7 @@ 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) # **entitlements_list** -> list[RepositoryToken] entitlements_list(owner, repo, page=page, page_size=page_size, show_tokens=show_tokens, query=query, active=active, sort=sort) +> list[RepositoryToken] entitlements_list(owner, repo, page=page, page_size=page_size, show_tokens=show_tokens, query=query, active=active, exclude_other_user_tokens=exclude_other_user_tokens, sort=sort) Get a list of all entitlements in a repository. @@ -298,11 +298,12 @@ page_size = 56 # int | Number of results to return per page. (optional) show_tokens = false # bool | Show entitlement token strings in results (optional) (default to false) query = 'query_example' # str | A search term for querying names of entitlements. (optional) active = false # bool | If true, only include active tokens (optional) (default to false) +exclude_other_user_tokens = false # bool | If true, exclude user tokens that belong to other users (optional) (default to false) sort = 'name' # str | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. (optional) (default to name) try: # Get a list of all entitlements in a repository. - api_response = api_instance.entitlements_list(owner, repo, page=page, page_size=page_size, show_tokens=show_tokens, query=query, active=active, sort=sort) + api_response = api_instance.entitlements_list(owner, repo, page=page, page_size=page_size, show_tokens=show_tokens, query=query, active=active, exclude_other_user_tokens=exclude_other_user_tokens, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling EntitlementsApi->entitlements_list: %s\n" % e) @@ -319,6 +320,7 @@ Name | Type | Description | Notes **show_tokens** | **bool**| Show entitlement token strings in results | [optional] [default to false] **query** | **str**| A search term for querying names of entitlements. | [optional] **active** | **bool**| If true, only include active tokens | [optional] [default to false] + **exclude_other_user_tokens** | **bool**| If true, exclude user tokens that belong to other users | [optional] [default to false] **sort** | **str**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. | [optional] [default to name] ### Return type diff --git a/bindings/python/src/docs/GenericPackageUpload.md b/bindings/python/src/docs/GenericPackageUpload.md index 84de3fe3..d8a49604 100644 --- a/bindings/python/src/docs/GenericPackageUpload.md +++ b/bindings/python/src/docs/GenericPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/GoPackageUpload.md b/bindings/python/src/docs/GoPackageUpload.md index a754f95f..4b731266 100644 --- a/bindings/python/src/docs/GoPackageUpload.md +++ b/bindings/python/src/docs/GoPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/HelmPackageUpload.md b/bindings/python/src/docs/HelmPackageUpload.md index 24d22bc3..cd64d129 100644 --- a/bindings/python/src/docs/HelmPackageUpload.md +++ b/bindings/python/src/docs/HelmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/HexPackageUpload.md b/bindings/python/src/docs/HexPackageUpload.md index 553cabfa..7f534543 100644 --- a/bindings/python/src/docs/HexPackageUpload.md +++ b/bindings/python/src/docs/HexPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/HuggingfacePackageUpload.md b/bindings/python/src/docs/HuggingfacePackageUpload.md index 1b09d7ec..1909810c 100644 --- a/bindings/python/src/docs/HuggingfacePackageUpload.md +++ b/bindings/python/src/docs/HuggingfacePackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/InlineResponse2001.md b/bindings/python/src/docs/InlineResponse2001.md index 79850088..cbd76ec8 100644 --- a/bindings/python/src/docs/InlineResponse2001.md +++ b/bindings/python/src/docs/InlineResponse2001.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | +**results** | [**list[ConnectedRepository]**](ConnectedRepository.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/InlineResponse2002.md b/bindings/python/src/docs/InlineResponse2002.md new file mode 100644 index 00000000..48b3318c --- /dev/null +++ b/bindings/python/src/docs/InlineResponse2002.md @@ -0,0 +1,10 @@ +# InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/LuarocksPackageUpload.md b/bindings/python/src/docs/LuarocksPackageUpload.md index 111c1134..82b789a4 100644 --- a/bindings/python/src/docs/LuarocksPackageUpload.md +++ b/bindings/python/src/docs/LuarocksPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/MavenPackageUpload.md b/bindings/python/src/docs/MavenPackageUpload.md index 5d269288..0faf1b92 100644 --- a/bindings/python/src/docs/MavenPackageUpload.md +++ b/bindings/python/src/docs/MavenPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **packaging** | **str** | Artifact's Maven packaging type. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] diff --git a/bindings/python/src/docs/McpPackageUpload.md b/bindings/python/src/docs/McpPackageUpload.md index 3b185577..bef67488 100644 --- a/bindings/python/src/docs/McpPackageUpload.md +++ b/bindings/python/src/docs/McpPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/MemberTeams.md b/bindings/python/src/docs/MemberTeams.md new file mode 100644 index 00000000..a24c504d --- /dev/null +++ b/bindings/python/src/docs/MemberTeams.md @@ -0,0 +1,12 @@ +# MemberTeams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**role** | **str** | | [optional] [default to 'Manager'] +**slug** | **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/NpmPackageUpload.md b/bindings/python/src/docs/NpmPackageUpload.md index 4263a61b..f2cbb265 100644 --- a/bindings/python/src/docs/NpmPackageUpload.md +++ b/bindings/python/src/docs/NpmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/NugetPackageUpload.md b/bindings/python/src/docs/NugetPackageUpload.md index d32d25d1..32d45b3f 100644 --- a/bindings/python/src/docs/NugetPackageUpload.md +++ b/bindings/python/src/docs/NugetPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/OrganizationCustomDomainNestedRepo.md b/bindings/python/src/docs/OrganizationCustomDomainNestedRepo.md new file mode 100644 index 00000000..0743e198 --- /dev/null +++ b/bindings/python/src/docs/OrganizationCustomDomainNestedRepo.md @@ -0,0 +1,11 @@ +# OrganizationCustomDomainNestedRepo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | A descriptive name for the repository. | [optional] +**slug** | **str** | The slug identifies the repository in URIs. | [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/OrganizationCustomDomains.md b/bindings/python/src/docs/OrganizationCustomDomains.md new file mode 100644 index 00000000..6dd81580 --- /dev/null +++ b/bindings/python/src/docs/OrganizationCustomDomains.md @@ -0,0 +1,27 @@ +# OrganizationCustomDomains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend_kind** | **int** | The domain for a specific package format. | [optional] +**created_at** | **datetime** | | [optional] +**created_by** | **int** | | [optional] +**dns_alias_value** | **str** | The CNAME value to use to publish this domain publicly. | [optional] +**dns_cert_name** | **str** | The CNAME name to create to allow us to generate a TLS cert. | [optional] +**dns_cert_value** | **str** | The CNAME value to use to allow us to generate a TLS cert. | [optional] +**domain_type** | **int** | The type for the custom domain. | [optional] +**enabled** | **bool** | If checked, the domain is enabled. | [optional] +**host** | **str** | | [optional] +**namespace** | **int** | | [optional] +**primary** | **bool** | If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) | [optional] [default to True] +**redirect_root** | **bool** | If checked, the domain root redirects to the repository. | [optional] +**redirect_root_url** | **str** | Where root requests should be redirected to if redirect_root is enabled. | [optional] +**repository** | [**OrganizationCustomDomainNestedRepo**](OrganizationCustomDomainNestedRepo.md) | | +**repository_only** | **bool** | If checked, the domain applies to a specific repository only. | [optional] +**slug_perm** | **str** | | [optional] +**validated** | **bool** | If validated, the domain is ready for requests. | [optional] +**validated_at** | **datetime** | | [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/OrganizationMembership.md b/bindings/python/src/docs/OrganizationMembership.md index f9bae8f1..00600952 100644 --- a/bindings/python/src/docs/OrganizationMembership.md +++ b/bindings/python/src/docs/OrganizationMembership.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **last_login_at** | **datetime** | | [optional] **last_login_method** | **str** | | [optional] [default to 'Unknown'] **role** | **str** | | [optional] [default to 'Owner'] +**teams** | [**list[MemberTeams]**](MemberTeams.md) | | [optional] **user** | **str** | | [optional] **user_id** | **str** | | [optional] **user_name** | **str** | | [optional] diff --git a/bindings/python/src/docs/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index 9202c081..ad11df32 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgs_custom_domains_list**](OrgsApi.md#orgs_custom_domains_list) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. [**orgs_delete**](OrgsApi.md#orgs_delete) | **DELETE** /orgs/{org}/ | Delete the specified organization. [**orgs_deny_policy_create**](OrgsApi.md#orgs_deny_policy_create) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. [**orgs_deny_policy_delete**](OrgsApi.md#orgs_deny_policy_delete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -79,6 +80,68 @@ Method | HTTP request | Description [**orgs_vulnerability_policy_violation_list**](OrgsApi.md#orgs_vulnerability_policy_violation_list) | **GET** /orgs/{org}/vulnerability-policy-violation/ | List all current vulnerability policy violations for this Organization. +# **orgs_custom_domains_list** +> list[OrganizationCustomDomains] orgs_custom_domains_list(org, page=page, page_size=page_size) + +Get the details for all custom domains. + +Get the details for all custom domains. + +### 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 | +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: + # Get the details for all custom domains. + api_response = api_instance.orgs_custom_domains_list(org, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_custom_domains_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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[OrganizationCustomDomains]**](OrganizationCustomDomains.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_delete** > orgs_delete(org) diff --git a/bindings/python/src/docs/P2PackageUpload.md b/bindings/python/src/docs/P2PackageUpload.md index 7f8b29a3..ffb065ca 100644 --- a/bindings/python/src/docs/P2PackageUpload.md +++ b/bindings/python/src/docs/P2PackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/Package.md b/bindings/python/src/docs/Package.md index 6bb77462..3a29446c 100644 --- a/bindings/python/src/docs/Package.md +++ b/bindings/python/src/docs/Package.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PackageCopy.md b/bindings/python/src/docs/PackageCopy.md index e5c82b5a..33886327 100644 --- a/bindings/python/src/docs/PackageCopy.md +++ b/bindings/python/src/docs/PackageCopy.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PackageMove.md b/bindings/python/src/docs/PackageMove.md index 6824f525..f0fe7e3e 100644 --- a/bindings/python/src/docs/PackageMove.md +++ b/bindings/python/src/docs/PackageMove.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PackageQuarantine.md b/bindings/python/src/docs/PackageQuarantine.md index 4cdbf741..67185933 100644 --- a/bindings/python/src/docs/PackageQuarantine.md +++ b/bindings/python/src/docs/PackageQuarantine.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PackageResync.md b/bindings/python/src/docs/PackageResync.md index 82372bb1..5731c6fa 100644 --- a/bindings/python/src/docs/PackageResync.md +++ b/bindings/python/src/docs/PackageResync.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PackageStatus.md b/bindings/python/src/docs/PackageStatus.md index bc7546a0..b9ec0849 100644 --- a/bindings/python/src/docs/PackageStatus.md +++ b/bindings/python/src/docs/PackageStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] diff --git a/bindings/python/src/docs/PackageTag.md b/bindings/python/src/docs/PackageTag.md index 4ba7be88..57c73895 100644 --- a/bindings/python/src/docs/PackageTag.md +++ b/bindings/python/src/docs/PackageTag.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_immutable** | **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to False] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/PythonPackageUpload.md b/bindings/python/src/docs/PythonPackageUpload.md index 007c4219..88ed3d1e 100644 --- a/bindings/python/src/docs/PythonPackageUpload.md +++ b/bindings/python/src/docs/PythonPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/RawPackageUpload.md b/bindings/python/src/docs/RawPackageUpload.md index c5d9bdd2..95ed6bab 100644 --- a/bindings/python/src/docs/RawPackageUpload.md +++ b/bindings/python/src/docs/RawPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/RecycleBinApi.md b/bindings/python/src/docs/RecycleBinApi.md index 2be20298..63a2e940 100644 --- a/bindings/python/src/docs/RecycleBinApi.md +++ b/bindings/python/src/docs/RecycleBinApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**recycle_bin_action**](RecycleBinApi.md#recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | [**recycle_bin_list**](RecycleBinApi.md#recycle_bin_list) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -[**recycle_bin_recycle_bin_action**](RecycleBinApi.md#recycle_bin_recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | -# **recycle_bin_list** -> list[RecycleBinPackage] recycle_bin_list(owner, page=page, page_size=page_size, repository=repository) +# **recycle_bin_action** +> PackageBulkActionResponse recycle_bin_action(owner, data=data) -List soft-deleted packages in recycle bin -Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + +Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. ### Example ```python @@ -36,16 +36,13 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = cloudsmith_api.RecycleBinApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -page = 56 # int | A page number within the paginated result set. (optional) -page_size = 56 # int | Number of results to return per page. (optional) -repository = 'repository_example' # str | Filter packages by repository slug (optional) +data = cloudsmith_api.PackageRecycleBin() # PackageRecycleBin | (optional) try: - # List soft-deleted packages in recycle bin - api_response = api_instance.recycle_bin_list(owner, page=page, page_size=page_size, repository=repository) + api_response = api_instance.recycle_bin_action(owner, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling RecycleBinApi->recycle_bin_list: %s\n" % e) + print("Exception when calling RecycleBinApi->recycle_bin_action: %s\n" % e) ``` ### Parameters @@ -53,13 +50,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | - **page** | **int**| A page number within the paginated result set. | [optional] - **page_size** | **int**| Number of results to return per page. | [optional] - **repository** | **str**| Filter packages by repository slug | [optional] + **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] ### Return type -[**list[RecycleBinPackage]**](RecycleBinPackage.md) +[**PackageBulkActionResponse**](PackageBulkActionResponse.md) ### Authorization @@ -72,12 +67,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) -# **recycle_bin_recycle_bin_action** -> PackageBulkActionResponse recycle_bin_recycle_bin_action(owner, data=data) - +# **recycle_bin_list** +> list[RecycleBinPackage] recycle_bin_list(owner, page=page, page_size=page_size, repository=repository) +List soft-deleted packages in recycle bin -Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. +Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. ### Example ```python @@ -100,13 +95,16 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = cloudsmith_api.RecycleBinApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -data = cloudsmith_api.PackageRecycleBin() # PackageRecycleBin | (optional) +page = 56 # int | A page number within the paginated result set. (optional) +page_size = 56 # int | Number of results to return per page. (optional) +repository = 'repository_example' # str | Filter packages by repository slug (optional) try: - api_response = api_instance.recycle_bin_recycle_bin_action(owner, data=data) + # List soft-deleted packages in recycle bin + api_response = api_instance.recycle_bin_list(owner, page=page, page_size=page_size, repository=repository) pprint(api_response) except ApiException as e: - print("Exception when calling RecycleBinApi->recycle_bin_recycle_bin_action: %s\n" % e) + print("Exception when calling RecycleBinApi->recycle_bin_list: %s\n" % e) ``` ### Parameters @@ -114,11 +112,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | - **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **repository** | **str**| Filter packages by repository slug | [optional] ### Return type -[**PackageBulkActionResponse**](PackageBulkActionResponse.md) +[**list[RecycleBinPackage]**](RecycleBinPackage.md) ### Authorization diff --git a/bindings/python/src/docs/ReposApi.md b/bindings/python/src/docs/ReposApi.md index 4a27f4bf..9a6877e1 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -7,11 +7,20 @@ Method | HTTP request | Description [**api_repos_geoip_status**](ReposApi.md#api_repos_geoip_status) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. [**repo_retention_partial_update**](ReposApi.md#repo_retention_partial_update) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. [**repo_retention_read**](ReposApi.md#repo_retention_read) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +[**repos_connected_create**](ReposApi.md#repos_connected_create) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +[**repos_connected_delete**](ReposApi.md#repos_connected_delete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +[**repos_connected_list**](ReposApi.md#repos_connected_list) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +[**repos_connected_partial_update**](ReposApi.md#repos_connected_partial_update) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +[**repos_connected_read**](ReposApi.md#repos_connected_read) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +[**repos_connected_update**](ReposApi.md#repos_connected_update) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. [**repos_create**](ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. [**repos_delete**](ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | [**repos_ecdsa_create**](ReposApi.md#repos_ecdsa_create) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. [**repos_ecdsa_list**](ReposApi.md#repos_ecdsa_list) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. [**repos_ecdsa_regenerate**](ReposApi.md#repos_ecdsa_regenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +[**repos_ed25519_create**](ReposApi.md#repos_ed25519_create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +[**repos_ed25519_list**](ReposApi.md#repos_ed25519_list) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +[**repos_ed25519_regenerate**](ReposApi.md#repos_ed25519_regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. [**repos_geoip_disable**](ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. [**repos_geoip_enable**](ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. [**repos_geoip_partial_update**](ReposApi.md#repos_geoip_partial_update) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -338,6 +347,383 @@ 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_connected_create** +> ConnectedRepository repos_connected_create(owner, identifier, data=data) + +Create a connected repository for this repository. + +Create a connected repository 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.ConnectedRepositoryRequest() # ConnectedRepositoryRequest | (optional) + +try: + # Create a connected repository for this repository. + api_response = api_instance.repos_connected_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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_connected_delete** +> repos_connected_delete(owner, identifier, slug_perm) + +Delete a connected repository for this repository. + +Delete a connected repository 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 connected repository for this repository. + api_instance.repos_connected_delete(owner, identifier, slug_perm) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_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_connected_list** +> InlineResponse2001 repos_connected_list(owner, identifier, page=page, page_size=page_size) + +List connected repositories for this repository. + +List connected repositories 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 connected repositories for this repository. + api_response = api_instance.repos_connected_list(owner, identifier, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_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 + +[**InlineResponse2001**](InlineResponse2001.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_connected_partial_update** +> ConnectedRepository repos_connected_partial_update(owner, identifier, slug_perm, data=data) + +Partially update a connected repository for this repository. + +Partially update a connected repository 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.ConnectedRepositoryRequestPatch() # ConnectedRepositoryRequestPatch | (optional) + +try: + # Partially update a connected repository for this repository. + api_response = api_instance.repos_connected_partial_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_partial_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**ConnectedRepositoryRequestPatch**](ConnectedRepositoryRequestPatch.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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_connected_read** +> ConnectedRepository repos_connected_read(owner, identifier, slug_perm) + +Retrieve a connected repository for this repository. + +Retrieve a connected repository 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 connected repository for this repository. + api_response = api_instance.repos_connected_read(owner, identifier, slug_perm) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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_connected_update** +> ConnectedRepository repos_connected_update(owner, identifier, slug_perm, data=data) + +Update a connected repository for this repository. + +Update a connected repository 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.ConnectedRepositoryRequest() # ConnectedRepositoryRequest | (optional) + +try: + # Update a connected repository for this repository. + api_response = api_instance.repos_connected_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_connected_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.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_create** > RepositoryCreate repos_create(owner, data=data) @@ -403,7 +789,7 @@ Name | Type | Description | Notes -Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. +Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. ### Example ```python @@ -638,6 +1024,188 @@ 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_ed25519_create** +> RepositoryEd25519Key repos_ed25519_create(owner, identifier, data=data) + +Set the active Ed25519 key for the Repository. + +Set the active Ed25519 key for the 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.RepositoryEd25519KeyCreate() # RepositoryEd25519KeyCreate | (optional) + +try: + # Set the active Ed25519 key for the Repository. + api_response = api_instance.repos_ed25519_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_ed25519_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**RepositoryEd25519KeyCreate**](RepositoryEd25519KeyCreate.md)| | [optional] + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.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_ed25519_list** +> RepositoryEd25519Key repos_ed25519_list(owner, identifier) + +Retrieve the active Ed25519 key for the Repository. + +Retrieve the active Ed25519 key for the 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 | + +try: + # Retrieve the active Ed25519 key for the Repository. + api_response = api_instance.repos_ed25519_list(owner, identifier) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_ed25519_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.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_ed25519_regenerate** +> RepositoryEd25519Key repos_ed25519_regenerate(owner, identifier) + +Regenerate Ed25519 Key for the Repository. + +Regenerate Ed25519 Key for the 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 | + +try: + # Regenerate Ed25519 Key for the Repository. + api_response = api_instance.repos_ed25519_regenerate(owner, identifier) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_ed25519_regenerate: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.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_geoip_disable** > repos_geoip_disable(owner, identifier, data=data) diff --git a/bindings/python/src/docs/Repository.md b/bindings/python/src/docs/Repository.md index 4d0ea21a..a775e892 100644 --- a/bindings/python/src/docs/Repository.md +++ b/bindings/python/src/docs/Repository.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **name** | **str** | A descriptive name for the repository. | **namespace** | **str** | Namespace to which this repository belongs. | [optional] **namespace_url** | **str** | API endpoint where data about this namespace can be retrieved. | [optional] +**npm_upstream_tags_take_precedence** | **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **num_downloads** | **int** | The number of downloads for packages in the repository. | [optional] **num_policy_violated_packages** | **int** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/python/src/docs/RepositoryCreate.md b/bindings/python/src/docs/RepositoryCreate.md index 91c2d55e..00a5fe2c 100644 --- a/bindings/python/src/docs/RepositoryCreate.md +++ b/bindings/python/src/docs/RepositoryCreate.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **name** | **str** | A descriptive name for the repository. | **namespace** | **str** | Namespace to which this repository belongs. | [optional] **namespace_url** | **str** | API endpoint where data about this namespace can be retrieved. | [optional] +**npm_upstream_tags_take_precedence** | **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **num_downloads** | **int** | The number of downloads for packages in the repository. | [optional] **num_policy_violated_packages** | **int** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/python/src/docs/RepositoryCreateRequest.md b/bindings/python/src/docs/RepositoryCreateRequest.md index fc128792..a45b6d32 100644 --- a/bindings/python/src/docs/RepositoryCreateRequest.md +++ b/bindings/python/src/docs/RepositoryCreateRequest.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **move_own** | **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **move_packages** | **str** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to 'Admin'] **name** | **str** | A descriptive name for the repository. | +**npm_upstream_tags_take_precedence** | **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **open_source_license** | **str** | The SPDX identifier of the open source license. | [optional] **open_source_project_url** | **str** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/python/src/docs/RepositoryEd25519Key.md b/bindings/python/src/docs/RepositoryEd25519Key.md new file mode 100644 index 00000000..79e52443 --- /dev/null +++ b/bindings/python/src/docs/RepositoryEd25519Key.md @@ -0,0 +1,15 @@ +# RepositoryEd25519Key + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | If selected this is the active key for this repository. | [optional] +**created_at** | **datetime** | | [optional] +**default** | **bool** | If selected this is the default key for this repository. | [optional] +**fingerprint** | **str** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] +**fingerprint_short** | **str** | | [optional] +**public_key** | **str** | The public key given to repository users. | [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/RepositoryEd25519KeyCreate.md b/bindings/python/src/docs/RepositoryEd25519KeyCreate.md new file mode 100644 index 00000000..65a32dee --- /dev/null +++ b/bindings/python/src/docs/RepositoryEd25519KeyCreate.md @@ -0,0 +1,11 @@ +# RepositoryEd25519KeyCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ed25519_passphrase** | **str** | The Ed25519 passphrase used for signing. | [optional] +**ed25519_private_key** | **str** | The Ed25519 private key. | + +[[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/RepositoryRequestPatch.md b/bindings/python/src/docs/RepositoryRequestPatch.md index a3f298b0..e893efc6 100644 --- a/bindings/python/src/docs/RepositoryRequestPatch.md +++ b/bindings/python/src/docs/RepositoryRequestPatch.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **move_own** | **bool** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **move_packages** | **str** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to 'Admin'] **name** | **str** | A descriptive name for the repository. | [optional] +**npm_upstream_tags_take_precedence** | **bool** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **bool** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **open_source_license** | **str** | The SPDX identifier of the open source license. | [optional] **open_source_project_url** | **str** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/python/src/docs/RpmPackageUpload.md b/bindings/python/src/docs/RpmPackageUpload.md index 01b7a9bb..f61b49bb 100644 --- a/bindings/python/src/docs/RpmPackageUpload.md +++ b/bindings/python/src/docs/RpmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/RubyPackageUpload.md b/bindings/python/src/docs/RubyPackageUpload.md index 6b1ece70..f8cfe0ba 100644 --- a/bindings/python/src/docs/RubyPackageUpload.md +++ b/bindings/python/src/docs/RubyPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/ServiceTeams.md b/bindings/python/src/docs/ServiceTeams.md index d5b9e5b6..9c57ebe4 100644 --- a/bindings/python/src/docs/ServiceTeams.md +++ b/bindings/python/src/docs/ServiceTeams.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the team | [optional] **role** | **str** | The team role associated with the service | [optional] [default to 'Manager'] **slug** | **str** | The teams associated with the service | diff --git a/bindings/python/src/docs/SwiftPackageUpload.md b/bindings/python/src/docs/SwiftPackageUpload.md index 704e17cb..2cc734db 100644 --- a/bindings/python/src/docs/SwiftPackageUpload.md +++ b/bindings/python/src/docs/SwiftPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -51,6 +52,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/TerraformPackageUpload.md b/bindings/python/src/docs/TerraformPackageUpload.md index ca6b8f66..0dfe41a1 100644 --- a/bindings/python/src/docs/TerraformPackageUpload.md +++ b/bindings/python/src/docs/TerraformPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/docs/UserApi.md b/bindings/python/src/docs/UserApi.md index 6cc5d2de..32602c5b 100644 --- a/bindings/python/src/docs/UserApi.md +++ b/bindings/python/src/docs/UserApi.md @@ -173,7 +173,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_tokens_list** -> InlineResponse2001 user_tokens_list(page=page, page_size=page_size) +> InlineResponse2002 user_tokens_list(page=page, page_size=page_size) Retrieve the API key assigned to the user that is currently authenticated. @@ -219,7 +219,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization diff --git a/bindings/python/src/docs/VagrantPackageUpload.md b/bindings/python/src/docs/VagrantPackageUpload.md index eeefe542..cc6c0ae6 100644 --- a/bindings/python/src/docs/VagrantPackageUpload.md +++ b/bindings/python/src/docs/VagrantPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **provider** | **str** | The virtual machine provider for the box. | diff --git a/bindings/python/src/docs/VsxPackageUpload.md b/bindings/python/src/docs/VsxPackageUpload.md index 078a0f23..0fc65778 100644 --- a/bindings/python/src/docs/VsxPackageUpload.md +++ b/bindings/python/src/docs/VsxPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **bool** | | [optional] **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] +**is_hidden** | **bool** | | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **int** | | [optional] **origin_repository** | **str** | | [optional] **origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **int** | The type of package contents. | [optional] **policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] **raw_license** | **str** | The raw license string. | [optional] diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index dd9dd121..e2ef077f 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith_api" -VERSION = "2.0.26" +VERSION = "2.0.27" # To install the library, run the following # # python setup.py install diff --git a/bindings/python/src/test/test_connected_repository.py b/bindings/python/src/test/test_connected_repository.py new file mode 100644 index 00000000..9c2a9789 --- /dev/null +++ b/bindings/python/src/test/test_connected_repository.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.connected_repository import ConnectedRepository # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestConnectedRepository(unittest.TestCase): + """ConnectedRepository unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectedRepository(self): + """Test ConnectedRepository""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.connected_repository.ConnectedRepository() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_connected_repository_request.py b/bindings/python/src/test/test_connected_repository_request.py new file mode 100644 index 00000000..df113c41 --- /dev/null +++ b/bindings/python/src/test/test_connected_repository_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.connected_repository_request import ConnectedRepositoryRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestConnectedRepositoryRequest(unittest.TestCase): + """ConnectedRepositoryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectedRepositoryRequest(self): + """Test ConnectedRepositoryRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.connected_repository_request.ConnectedRepositoryRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_connected_repository_request_patch.py b/bindings/python/src/test/test_connected_repository_request_patch.py new file mode 100644 index 00000000..8256a66a --- /dev/null +++ b/bindings/python/src/test/test_connected_repository_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.connected_repository_request_patch import ConnectedRepositoryRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestConnectedRepositoryRequestPatch(unittest.TestCase): + """ConnectedRepositoryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectedRepositoryRequestPatch(self): + """Test ConnectedRepositoryRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.connected_repository_request_patch.ConnectedRepositoryRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_inline_response2002.py b/bindings/python/src/test/test_inline_response2002.py new file mode 100644 index 00000000..fc201bba --- /dev/null +++ b/bindings/python/src/test/test_inline_response2002.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.inline_response2002 import InlineResponse2002 # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestInlineResponse2002(unittest.TestCase): + """InlineResponse2002 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2002(self): + """Test InlineResponse2002""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.inline_response2002.InlineResponse2002() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_member_teams.py b/bindings/python/src/test/test_member_teams.py new file mode 100644 index 00000000..b3e42cfd --- /dev/null +++ b/bindings/python/src/test/test_member_teams.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.member_teams import MemberTeams # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestMemberTeams(unittest.TestCase): + """MemberTeams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMemberTeams(self): + """Test MemberTeams""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.member_teams.MemberTeams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_custom_domain_nested_repo.py b/bindings/python/src/test/test_organization_custom_domain_nested_repo.py new file mode 100644 index 00000000..c54fc880 --- /dev/null +++ b/bindings/python/src/test/test_organization_custom_domain_nested_repo.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.organization_custom_domain_nested_repo import OrganizationCustomDomainNestedRepo # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationCustomDomainNestedRepo(unittest.TestCase): + """OrganizationCustomDomainNestedRepo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationCustomDomainNestedRepo(self): + """Test OrganizationCustomDomainNestedRepo""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_custom_domain_nested_repo.OrganizationCustomDomainNestedRepo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_custom_domains.py b/bindings/python/src/test/test_organization_custom_domains.py new file mode 100644 index 00000000..2eb0cc3b --- /dev/null +++ b/bindings/python/src/test/test_organization_custom_domains.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.organization_custom_domains import OrganizationCustomDomains # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationCustomDomains(unittest.TestCase): + """OrganizationCustomDomains unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationCustomDomains(self): + """Test OrganizationCustomDomains""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_custom_domains.OrganizationCustomDomains() # 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 1dac385c..e16001bd 100644 --- a/bindings/python/src/test/test_orgs_api.py +++ b/bindings/python/src/test/test_orgs_api.py @@ -29,6 +29,13 @@ def setUp(self): def tearDown(self): pass + def test_orgs_custom_domains_list(self): + """Test case for orgs_custom_domains_list + + Get the details for all custom domains. # noqa: E501 + """ + pass + def test_orgs_delete(self): """Test case for orgs_delete diff --git a/bindings/python/src/test/test_recycle_bin_api.py b/bindings/python/src/test/test_recycle_bin_api.py index b04b19fc..2923f3b4 100644 --- a/bindings/python/src/test/test_recycle_bin_api.py +++ b/bindings/python/src/test/test_recycle_bin_api.py @@ -29,16 +29,16 @@ def setUp(self): def tearDown(self): pass - def test_recycle_bin_list(self): - """Test case for recycle_bin_list + def test_recycle_bin_action(self): + """Test case for recycle_bin_action - List soft-deleted packages in recycle bin # noqa: E501 """ pass - def test_recycle_bin_recycle_bin_action(self): - """Test case for recycle_bin_recycle_bin_action + def test_recycle_bin_list(self): + """Test case for recycle_bin_list + List soft-deleted packages in recycle bin # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_repos_api.py b/bindings/python/src/test/test_repos_api.py index ac2a31a4..cb86a027 100644 --- a/bindings/python/src/test/test_repos_api.py +++ b/bindings/python/src/test/test_repos_api.py @@ -50,6 +50,48 @@ def test_repo_retention_read(self): """ pass + def test_repos_connected_create(self): + """Test case for repos_connected_create + + Create a connected repository for this repository. # noqa: E501 + """ + pass + + def test_repos_connected_delete(self): + """Test case for repos_connected_delete + + Delete a connected repository for this repository. # noqa: E501 + """ + pass + + def test_repos_connected_list(self): + """Test case for repos_connected_list + + List connected repositories for this repository. # noqa: E501 + """ + pass + + def test_repos_connected_partial_update(self): + """Test case for repos_connected_partial_update + + Partially update a connected repository for this repository. # noqa: E501 + """ + pass + + def test_repos_connected_read(self): + """Test case for repos_connected_read + + Retrieve a connected repository for this repository. # noqa: E501 + """ + pass + + def test_repos_connected_update(self): + """Test case for repos_connected_update + + Update a connected repository for this repository. # noqa: E501 + """ + pass + def test_repos_create(self): """Test case for repos_create @@ -84,6 +126,27 @@ def test_repos_ecdsa_regenerate(self): """ pass + def test_repos_ed25519_create(self): + """Test case for repos_ed25519_create + + Set the active Ed25519 key for the Repository. # noqa: E501 + """ + pass + + def test_repos_ed25519_list(self): + """Test case for repos_ed25519_list + + Retrieve the active Ed25519 key for the Repository. # noqa: E501 + """ + pass + + def test_repos_ed25519_regenerate(self): + """Test case for repos_ed25519_regenerate + + Regenerate Ed25519 Key for the Repository. # noqa: E501 + """ + pass + def test_repos_geoip_disable(self): """Test case for repos_geoip_disable diff --git a/bindings/python/src/test/test_repository_ed25519_key.py b/bindings/python/src/test/test_repository_ed25519_key.py new file mode 100644 index 00000000..4439acdb --- /dev/null +++ b/bindings/python/src/test/test_repository_ed25519_key.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.repository_ed25519_key import RepositoryEd25519Key # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestRepositoryEd25519Key(unittest.TestCase): + """RepositoryEd25519Key unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRepositoryEd25519Key(self): + """Test RepositoryEd25519Key""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.repository_ed25519_key.RepositoryEd25519Key() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_repository_ed25519_key_create.py b/bindings/python/src/test/test_repository_ed25519_key_create.py new file mode 100644 index 00000000..3ed12287 --- /dev/null +++ b/bindings/python/src/test/test_repository_ed25519_key_create.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.repository_ed25519_key_create import RepositoryEd25519KeyCreate # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestRepositoryEd25519KeyCreate(unittest.TestCase): + """RepositoryEd25519KeyCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRepositoryEd25519KeyCreate(self): + """Test RepositoryEd25519KeyCreate""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.repository_ed25519_key_create.RepositoryEd25519KeyCreate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 428a093a..baafdd51 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -7,7 +7,7 @@ The API to the Cloudsmith Service This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.26 +- Package version: 2.0.27 - Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec Then either install the gem locally: ```shell -gem install ./cloudsmith-api-2.0.26.gem +gem install ./cloudsmith-api-2.0.27.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.26.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.27.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'cloudsmith-api', '~> 2.0.26' + gem 'cloudsmith-api', '~> 2.0.27' ### Install from Git @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::MetricsApi* | [**metrics_packages_list**](docs/MetricsApi.md#metrics_packages_list) | **GET** /metrics/packages/{owner}/{repo}/ | View for listing package usage metrics, for a repository. *CloudsmithApi::NamespacesApi* | [**namespaces_list**](docs/NamespacesApi.md#namespaces_list) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to. *CloudsmithApi::NamespacesApi* | [**namespaces_read**](docs/NamespacesApi.md#namespaces_read) | **GET** /namespaces/{slug}/ | Get a specific namespace that the user belongs to. +*CloudsmithApi::OrgsApi* | [**orgs_custom_domains_list**](docs/OrgsApi.md#orgs_custom_domains_list) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. *CloudsmithApi::OrgsApi* | [**orgs_delete**](docs/OrgsApi.md#orgs_delete) | **DELETE** /orgs/{org}/ | Delete the specified organization. *CloudsmithApi::OrgsApi* | [**orgs_deny_policy_create**](docs/OrgsApi.md#orgs_deny_policy_create) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. *CloudsmithApi::OrgsApi* | [**orgs_deny_policy_delete**](docs/OrgsApi.md#orgs_deny_policy_delete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -272,16 +273,25 @@ Class | Method | HTTP request | Description *CloudsmithApi::QuotaApi* | [**quota_oss_read**](docs/QuotaApi.md#quota_oss_read) | **GET** /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. *CloudsmithApi::QuotaApi* | [**quota_read**](docs/QuotaApi.md#quota_read) | **GET** /quota/{owner}/ | Quota usage for a given namespace. *CloudsmithApi::RatesApi* | [**rates_limits_list**](docs/RatesApi.md#rates_limits_list) | **GET** /rates/limits/ | Endpoint to check rate limits for current user. +*CloudsmithApi::RecycleBinApi* | [**recycle_bin_action**](docs/RecycleBinApi.md#recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | *CloudsmithApi::RecycleBinApi* | [**recycle_bin_list**](docs/RecycleBinApi.md#recycle_bin_list) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -*CloudsmithApi::RecycleBinApi* | [**recycle_bin_recycle_bin_action**](docs/RecycleBinApi.md#recycle_bin_recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | *CloudsmithApi::ReposApi* | [**api_repos_geoip_status**](docs/ReposApi.md#api_repos_geoip_status) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. *CloudsmithApi::ReposApi* | [**repo_retention_partial_update**](docs/ReposApi.md#repo_retention_partial_update) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. *CloudsmithApi::ReposApi* | [**repo_retention_read**](docs/ReposApi.md#repo_retention_read) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +*CloudsmithApi::ReposApi* | [**repos_connected_create**](docs/ReposApi.md#repos_connected_create) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +*CloudsmithApi::ReposApi* | [**repos_connected_delete**](docs/ReposApi.md#repos_connected_delete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +*CloudsmithApi::ReposApi* | [**repos_connected_list**](docs/ReposApi.md#repos_connected_list) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +*CloudsmithApi::ReposApi* | [**repos_connected_partial_update**](docs/ReposApi.md#repos_connected_partial_update) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +*CloudsmithApi::ReposApi* | [**repos_connected_read**](docs/ReposApi.md#repos_connected_read) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +*CloudsmithApi::ReposApi* | [**repos_connected_update**](docs/ReposApi.md#repos_connected_update) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. *CloudsmithApi::ReposApi* | [**repos_create**](docs/ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. *CloudsmithApi::ReposApi* | [**repos_delete**](docs/ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | *CloudsmithApi::ReposApi* | [**repos_ecdsa_create**](docs/ReposApi.md#repos_ecdsa_create) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. *CloudsmithApi::ReposApi* | [**repos_ecdsa_list**](docs/ReposApi.md#repos_ecdsa_list) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. *CloudsmithApi::ReposApi* | [**repos_ecdsa_regenerate**](docs/ReposApi.md#repos_ecdsa_regenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +*CloudsmithApi::ReposApi* | [**repos_ed25519_create**](docs/ReposApi.md#repos_ed25519_create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +*CloudsmithApi::ReposApi* | [**repos_ed25519_list**](docs/ReposApi.md#repos_ed25519_list) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +*CloudsmithApi::ReposApi* | [**repos_ed25519_regenerate**](docs/ReposApi.md#repos_ed25519_regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. *CloudsmithApi::ReposApi* | [**repos_geoip_disable**](docs/ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. *CloudsmithApi::ReposApi* | [**repos_geoip_enable**](docs/ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. *CloudsmithApi::ReposApi* | [**repos_geoip_partial_update**](docs/ReposApi.md#repos_geoip_partial_update) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -480,6 +490,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::CondaUpstream](docs/CondaUpstream.md) - [CloudsmithApi::CondaUpstreamRequest](docs/CondaUpstreamRequest.md) - [CloudsmithApi::CondaUpstreamRequestPatch](docs/CondaUpstreamRequestPatch.md) + - [CloudsmithApi::ConnectedRepository](docs/ConnectedRepository.md) + - [CloudsmithApi::ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) + - [CloudsmithApi::ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) - [CloudsmithApi::CranPackageUpload](docs/CranPackageUpload.md) - [CloudsmithApi::CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CloudsmithApi::CranUpstream](docs/CranUpstream.md) @@ -541,6 +554,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::HuggingfaceUpstreamRequestPatch](docs/HuggingfaceUpstreamRequestPatch.md) - [CloudsmithApi::InlineResponse200](docs/InlineResponse200.md) - [CloudsmithApi::InlineResponse2001](docs/InlineResponse2001.md) + - [CloudsmithApi::InlineResponse2002](docs/InlineResponse2002.md) - [CloudsmithApi::LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [CloudsmithApi::LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [CloudsmithApi::MavenPackageUpload](docs/MavenPackageUpload.md) @@ -550,6 +564,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::MavenUpstreamRequestPatch](docs/MavenUpstreamRequestPatch.md) - [CloudsmithApi::McpPackageUpload](docs/McpPackageUpload.md) - [CloudsmithApi::McpPackageUploadRequest](docs/McpPackageUploadRequest.md) + - [CloudsmithApi::MemberTeams](docs/MemberTeams.md) - [CloudsmithApi::Namespace](docs/Namespace.md) - [CloudsmithApi::NamespaceAuditLog](docs/NamespaceAuditLog.md) - [CloudsmithApi::NestedLicensePolicy](docs/NestedLicensePolicy.md) @@ -566,6 +581,8 @@ Class | Method | HTTP request | Description - [CloudsmithApi::NugetUpstreamRequest](docs/NugetUpstreamRequest.md) - [CloudsmithApi::NugetUpstreamRequestPatch](docs/NugetUpstreamRequestPatch.md) - [CloudsmithApi::Organization](docs/Organization.md) + - [CloudsmithApi::OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) + - [CloudsmithApi::OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [CloudsmithApi::OrganizationGroupSync](docs/OrganizationGroupSync.md) - [CloudsmithApi::OrganizationGroupSyncRequest](docs/OrganizationGroupSyncRequest.md) - [CloudsmithApi::OrganizationGroupSyncStatus](docs/OrganizationGroupSyncStatus.md) @@ -654,6 +671,8 @@ Class | Method | HTTP request | Description - [CloudsmithApi::RepositoryCreateRequest](docs/RepositoryCreateRequest.md) - [CloudsmithApi::RepositoryEcdsaKey](docs/RepositoryEcdsaKey.md) - [CloudsmithApi::RepositoryEcdsaKeyCreate](docs/RepositoryEcdsaKeyCreate.md) + - [CloudsmithApi::RepositoryEd25519Key](docs/RepositoryEd25519Key.md) + - [CloudsmithApi::RepositoryEd25519KeyCreate](docs/RepositoryEd25519KeyCreate.md) - [CloudsmithApi::RepositoryGeoIpCidr](docs/RepositoryGeoIpCidr.md) - [CloudsmithApi::RepositoryGeoIpCountryCode](docs/RepositoryGeoIpCountryCode.md) - [CloudsmithApi::RepositoryGeoIpRules](docs/RepositoryGeoIpRules.md) diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index 14cbf785..d5ad7510 100644 --- a/bindings/ruby/src/build.json +++ b/bindings/ruby/src/build.json @@ -8,7 +8,7 @@ "gemName": "cloudsmith-api", "gemRequiredRubyVersion": ">= 1.9", "gemSummary": "Cloudsmith API", - "gemVersion": "2.0.26", + "gemVersion": "2.0.27", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/AlpinePackageUpload.md b/bindings/ruby/src/docs/AlpinePackageUpload.md index 46bf1f53..f37b68c2 100644 --- a/bindings/ruby/src/docs/AlpinePackageUpload.md +++ b/bindings/ruby/src/docs/AlpinePackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/CargoPackageUpload.md b/bindings/ruby/src/docs/CargoPackageUpload.md index d3cc3cca..55616766 100644 --- a/bindings/ruby/src/docs/CargoPackageUpload.md +++ b/bindings/ruby/src/docs/CargoPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/CocoapodsPackageUpload.md b/bindings/ruby/src/docs/CocoapodsPackageUpload.md index aeb9ddbf..448b8d40 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUpload.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/ComposerPackageUpload.md b/bindings/ruby/src/docs/ComposerPackageUpload.md index 6f4ccfb0..c6dae012 100644 --- a/bindings/ruby/src/docs/ComposerPackageUpload.md +++ b/bindings/ruby/src/docs/ComposerPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/ConanPackageUpload.md b/bindings/ruby/src/docs/ConanPackageUpload.md index fc500761..24ecf92a 100644 --- a/bindings/ruby/src/docs/ConanPackageUpload.md +++ b/bindings/ruby/src/docs/ConanPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUpload.md b/bindings/ruby/src/docs/CondaPackageUpload.md index e1a576e4..a177a11d 100644 --- a/bindings/ruby/src/docs/CondaPackageUpload.md +++ b/bindings/ruby/src/docs/CondaPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/ConnectedRepository.md b/bindings/ruby/src/docs/ConnectedRepository.md new file mode 100644 index 00000000..064bfdd0 --- /dev/null +++ b/bindings/ruby/src/docs/ConnectedRepository.md @@ -0,0 +1,12 @@ +# CloudsmithApi::ConnectedRepository + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **DateTime** | The date and time when the connection was created. | [optional] +**is_active** | **BOOLEAN** | | [optional] [default to true] +**priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**slug_perm** | **String** | | [optional] +**target_repository** | **String** | The slug of the target repository to connect to. | + + diff --git a/bindings/ruby/src/docs/ConnectedRepositoryRequest.md b/bindings/ruby/src/docs/ConnectedRepositoryRequest.md new file mode 100644 index 00000000..89ba5efe --- /dev/null +++ b/bindings/ruby/src/docs/ConnectedRepositoryRequest.md @@ -0,0 +1,10 @@ +# CloudsmithApi::ConnectedRepositoryRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_active** | **BOOLEAN** | | [optional] [default to true] +**priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**target_repository** | **String** | The slug of the target repository to connect to. | + + diff --git a/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md b/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md new file mode 100644 index 00000000..20329df7 --- /dev/null +++ b/bindings/ruby/src/docs/ConnectedRepositoryRequestPatch.md @@ -0,0 +1,10 @@ +# CloudsmithApi::ConnectedRepositoryRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_active** | **BOOLEAN** | | [optional] [default to true] +**priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional] +**target_repository** | **String** | The slug of the target repository to connect to. | [optional] + + diff --git a/bindings/ruby/src/docs/CranPackageUpload.md b/bindings/ruby/src/docs/CranPackageUpload.md index 1fc24473..fb307ec6 100644 --- a/bindings/ruby/src/docs/CranPackageUpload.md +++ b/bindings/ruby/src/docs/CranPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **r_version** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] diff --git a/bindings/ruby/src/docs/DartPackageUpload.md b/bindings/ruby/src/docs/DartPackageUpload.md index 3c7d75fb..7e5f8a45 100644 --- a/bindings/ruby/src/docs/DartPackageUpload.md +++ b/bindings/ruby/src/docs/DartPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/DebPackageUpload.md b/bindings/ruby/src/docs/DebPackageUpload.md index 6f3e569e..d8470a8e 100644 --- a/bindings/ruby/src/docs/DebPackageUpload.md +++ b/bindings/ruby/src/docs/DebPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/DockerPackageUpload.md b/bindings/ruby/src/docs/DockerPackageUpload.md index 1573ea9c..275d27bc 100644 --- a/bindings/ruby/src/docs/DockerPackageUpload.md +++ b/bindings/ruby/src/docs/DockerPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/EntitlementsApi.md b/bindings/ruby/src/docs/EntitlementsApi.md index 031f0107..8efcfdf2 100644 --- a/bindings/ruby/src/docs/EntitlementsApi.md +++ b/bindings/ruby/src/docs/EntitlementsApi.md @@ -308,6 +308,7 @@ opts = { show_tokens: false, # BOOLEAN | Show entitlement token strings in results query: 'query_example', # String | A search term for querying names of entitlements. active: false, # BOOLEAN | If true, only include active tokens + exclude_other_user_tokens: false, # BOOLEAN | If true, exclude user tokens that belong to other users sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. } @@ -331,6 +332,7 @@ Name | Type | Description | Notes **show_tokens** | **BOOLEAN**| Show entitlement token strings in results | [optional] [default to false] **query** | **String**| A search term for querying names of entitlements. | [optional] **active** | **BOOLEAN**| If true, only include active tokens | [optional] [default to false] + **exclude_other_user_tokens** | **BOOLEAN**| If true, exclude user tokens that belong to other users | [optional] [default to false] **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name. | [optional] [default to name] ### Return type diff --git a/bindings/ruby/src/docs/GenericPackageUpload.md b/bindings/ruby/src/docs/GenericPackageUpload.md index f4fa8684..88cc360d 100644 --- a/bindings/ruby/src/docs/GenericPackageUpload.md +++ b/bindings/ruby/src/docs/GenericPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/GoPackageUpload.md b/bindings/ruby/src/docs/GoPackageUpload.md index 4354b07e..0d4b2ebe 100644 --- a/bindings/ruby/src/docs/GoPackageUpload.md +++ b/bindings/ruby/src/docs/GoPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/HelmPackageUpload.md b/bindings/ruby/src/docs/HelmPackageUpload.md index a996cb01..be57fed0 100644 --- a/bindings/ruby/src/docs/HelmPackageUpload.md +++ b/bindings/ruby/src/docs/HelmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/HexPackageUpload.md b/bindings/ruby/src/docs/HexPackageUpload.md index 42821cde..6482f8dd 100644 --- a/bindings/ruby/src/docs/HexPackageUpload.md +++ b/bindings/ruby/src/docs/HexPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/HuggingfacePackageUpload.md b/bindings/ruby/src/docs/HuggingfacePackageUpload.md index b836e659..67e4194c 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUpload.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/InlineResponse2001.md b/bindings/ruby/src/docs/InlineResponse2001.md index 9ef01ba9..eca2c5d0 100644 --- a/bindings/ruby/src/docs/InlineResponse2001.md +++ b/bindings/ruby/src/docs/InlineResponse2001.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**Array<ConnectedRepository>**](ConnectedRepository.md) | | diff --git a/bindings/ruby/src/docs/InlineResponse2002.md b/bindings/ruby/src/docs/InlineResponse2002.md new file mode 100644 index 00000000..2e791457 --- /dev/null +++ b/bindings/ruby/src/docs/InlineResponse2002.md @@ -0,0 +1,8 @@ +# CloudsmithApi::InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + diff --git a/bindings/ruby/src/docs/LuarocksPackageUpload.md b/bindings/ruby/src/docs/LuarocksPackageUpload.md index 8fb6e2b0..4496aafb 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUpload.md +++ b/bindings/ruby/src/docs/LuarocksPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/MavenPackageUpload.md b/bindings/ruby/src/docs/MavenPackageUpload.md index efa38a6f..1159d850 100644 --- a/bindings/ruby/src/docs/MavenPackageUpload.md +++ b/bindings/ruby/src/docs/MavenPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **packaging** | **String** | Artifact's Maven packaging type. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] diff --git a/bindings/ruby/src/docs/McpPackageUpload.md b/bindings/ruby/src/docs/McpPackageUpload.md index ac70e5c0..82602c35 100644 --- a/bindings/ruby/src/docs/McpPackageUpload.md +++ b/bindings/ruby/src/docs/McpPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/MemberTeams.md b/bindings/ruby/src/docs/MemberTeams.md new file mode 100644 index 00000000..b8dd0f10 --- /dev/null +++ b/bindings/ruby/src/docs/MemberTeams.md @@ -0,0 +1,10 @@ +# CloudsmithApi::MemberTeams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**role** | **String** | | [optional] [default to 'Manager'] +**slug** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/NpmPackageUpload.md b/bindings/ruby/src/docs/NpmPackageUpload.md index f6630b1c..34920076 100644 --- a/bindings/ruby/src/docs/NpmPackageUpload.md +++ b/bindings/ruby/src/docs/NpmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/NugetPackageUpload.md b/bindings/ruby/src/docs/NugetPackageUpload.md index e031eb01..77340689 100644 --- a/bindings/ruby/src/docs/NugetPackageUpload.md +++ b/bindings/ruby/src/docs/NugetPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/OrganizationCustomDomainNestedRepo.md b/bindings/ruby/src/docs/OrganizationCustomDomainNestedRepo.md new file mode 100644 index 00000000..d0dfa0ec --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationCustomDomainNestedRepo.md @@ -0,0 +1,9 @@ +# CloudsmithApi::OrganizationCustomDomainNestedRepo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | A descriptive name for the repository. | [optional] +**slug** | **String** | The slug identifies the repository in URIs. | [optional] + + diff --git a/bindings/ruby/src/docs/OrganizationCustomDomains.md b/bindings/ruby/src/docs/OrganizationCustomDomains.md new file mode 100644 index 00000000..1fcbf665 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationCustomDomains.md @@ -0,0 +1,25 @@ +# CloudsmithApi::OrganizationCustomDomains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend_kind** | **Integer** | The domain for a specific package format. | [optional] +**created_at** | **DateTime** | | [optional] +**created_by** | **Integer** | | [optional] +**dns_alias_value** | **String** | The CNAME value to use to publish this domain publicly. | [optional] +**dns_cert_name** | **String** | The CNAME name to create to allow us to generate a TLS cert. | [optional] +**dns_cert_value** | **String** | The CNAME value to use to allow us to generate a TLS cert. | [optional] +**domain_type** | **Integer** | The type for the custom domain. | [optional] +**enabled** | **BOOLEAN** | If checked, the domain is enabled. | [optional] +**host** | **String** | | [optional] +**namespace** | **Integer** | | [optional] +**primary** | **BOOLEAN** | If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) | [optional] [default to true] +**redirect_root** | **BOOLEAN** | If checked, the domain root redirects to the repository. | [optional] +**redirect_root_url** | **String** | Where root requests should be redirected to if redirect_root is enabled. | [optional] +**repository** | [**OrganizationCustomDomainNestedRepo**](OrganizationCustomDomainNestedRepo.md) | | +**repository_only** | **BOOLEAN** | If checked, the domain applies to a specific repository only. | [optional] +**slug_perm** | **String** | | [optional] +**validated** | **BOOLEAN** | If validated, the domain is ready for requests. | [optional] +**validated_at** | **DateTime** | | [optional] + + diff --git a/bindings/ruby/src/docs/OrganizationMembership.md b/bindings/ruby/src/docs/OrganizationMembership.md index efb44ecb..eac3409d 100644 --- a/bindings/ruby/src/docs/OrganizationMembership.md +++ b/bindings/ruby/src/docs/OrganizationMembership.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **last_login_at** | **DateTime** | | [optional] **last_login_method** | **String** | | [optional] [default to 'Unknown'] **role** | **String** | | [optional] [default to 'Owner'] +**teams** | [**Array<MemberTeams>**](MemberTeams.md) | | [optional] **user** | **String** | | [optional] **user_id** | **String** | | [optional] **user_name** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index 3e0ae76b..7f952c09 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgs_custom_domains_list**](OrgsApi.md#orgs_custom_domains_list) | **GET** /orgs/{org}/custom-domains/ | Get the details for all custom domains. [**orgs_delete**](OrgsApi.md#orgs_delete) | **DELETE** /orgs/{org}/ | Delete the specified organization. [**orgs_deny_policy_create**](OrgsApi.md#orgs_deny_policy_create) | **POST** /orgs/{org}/deny-policy/ | Create a package deny policy. [**orgs_deny_policy_delete**](OrgsApi.md#orgs_deny_policy_delete) | **DELETE** /orgs/{org}/deny-policy/{slug_perm}/ | Delete a package deny policy. @@ -79,6 +80,70 @@ Method | HTTP request | Description [**orgs_vulnerability_policy_violation_list**](OrgsApi.md#orgs_vulnerability_policy_violation_list) | **GET** /orgs/{org}/vulnerability-policy-violation/ | List all current vulnerability policy violations for this Organization. +# **orgs_custom_domains_list** +> Array<OrganizationCustomDomains> orgs_custom_domains_list(org, opts) + +Get the details for all custom domains. + +Get the details for all custom domains. + +### 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 | + +opts = { + page: 56, # Integer | A page number within the paginated result set. + page_size: 56 # Integer | Number of results to return per page. +} + +begin + #Get the details for all custom domains. + result = api_instance.orgs_custom_domains_list(org, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_custom_domains_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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<OrganizationCustomDomains>**](OrganizationCustomDomains.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **orgs_delete** > orgs_delete(org) diff --git a/bindings/ruby/src/docs/P2PackageUpload.md b/bindings/ruby/src/docs/P2PackageUpload.md index 704bfbcf..97db0025 100644 --- a/bindings/ruby/src/docs/P2PackageUpload.md +++ b/bindings/ruby/src/docs/P2PackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/Package.md b/bindings/ruby/src/docs/Package.md index 5156c7c2..2f593a03 100644 --- a/bindings/ruby/src/docs/Package.md +++ b/bindings/ruby/src/docs/Package.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PackageCopy.md b/bindings/ruby/src/docs/PackageCopy.md index d4450af3..e426846f 100644 --- a/bindings/ruby/src/docs/PackageCopy.md +++ b/bindings/ruby/src/docs/PackageCopy.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PackageMove.md b/bindings/ruby/src/docs/PackageMove.md index c21ad0c2..b83e51f9 100644 --- a/bindings/ruby/src/docs/PackageMove.md +++ b/bindings/ruby/src/docs/PackageMove.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PackageQuarantine.md b/bindings/ruby/src/docs/PackageQuarantine.md index 8c5bef7e..f7914aaf 100644 --- a/bindings/ruby/src/docs/PackageQuarantine.md +++ b/bindings/ruby/src/docs/PackageQuarantine.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PackageResync.md b/bindings/ruby/src/docs/PackageResync.md index c8c09b64..b54f736e 100644 --- a/bindings/ruby/src/docs/PackageResync.md +++ b/bindings/ruby/src/docs/PackageResync.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -49,6 +50,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PackageStatus.md b/bindings/ruby/src/docs/PackageStatus.md index acf96163..36bca47a 100644 --- a/bindings/ruby/src/docs/PackageStatus.md +++ b/bindings/ruby/src/docs/PackageStatus.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] diff --git a/bindings/ruby/src/docs/PackageTag.md b/bindings/ruby/src/docs/PackageTag.md index 2893855f..6e2cb1ca 100644 --- a/bindings/ruby/src/docs/PackageTag.md +++ b/bindings/ruby/src/docs/PackageTag.md @@ -32,6 +32,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_immutable** | **BOOLEAN** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] @@ -50,6 +51,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/PythonPackageUpload.md b/bindings/ruby/src/docs/PythonPackageUpload.md index 719d939d..e99dec37 100644 --- a/bindings/ruby/src/docs/PythonPackageUpload.md +++ b/bindings/ruby/src/docs/PythonPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/RawPackageUpload.md b/bindings/ruby/src/docs/RawPackageUpload.md index 4a78ec9c..5b138eee 100644 --- a/bindings/ruby/src/docs/RawPackageUpload.md +++ b/bindings/ruby/src/docs/RawPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/RecycleBinApi.md b/bindings/ruby/src/docs/RecycleBinApi.md index 2d2e93aa..b1a3f7b1 100644 --- a/bindings/ruby/src/docs/RecycleBinApi.md +++ b/bindings/ruby/src/docs/RecycleBinApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**recycle_bin_action**](RecycleBinApi.md#recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | [**recycle_bin_list**](RecycleBinApi.md#recycle_bin_list) | **GET** /recycle-bin/{owner}/ | List soft-deleted packages in recycle bin -[**recycle_bin_recycle_bin_action**](RecycleBinApi.md#recycle_bin_recycle_bin_action) | **POST** /recycle-bin/{owner}/action/ | -# **recycle_bin_list** -> Array<RecycleBinPackage> recycle_bin_list(owner, opts) +# **recycle_bin_action** +> PackageBulkActionResponse recycle_bin_action(owner, opts) -List soft-deleted packages in recycle bin -Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + +Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. ### Example ```ruby @@ -36,17 +36,14 @@ api_instance = CloudsmithApi::RecycleBinApi.new owner = 'owner_example' # String | opts = { - page: 56, # Integer | A page number within the paginated result set. - page_size: 56, # Integer | Number of results to return per page. - repository: 'repository_example' # String | Filter packages by repository slug + data: CloudsmithApi::PackageRecycleBin.new # PackageRecycleBin | } begin - #List soft-deleted packages in recycle bin - result = api_instance.recycle_bin_list(owner, opts) + result = api_instance.recycle_bin_action(owner, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling RecycleBinApi->recycle_bin_list: #{e}" + puts "Exception when calling RecycleBinApi->recycle_bin_action: #{e}" end ``` @@ -55,13 +52,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | - **page** | **Integer**| A page number within the paginated result set. | [optional] - **page_size** | **Integer**| Number of results to return per page. | [optional] - **repository** | **String**| Filter packages by repository slug | [optional] + **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] ### Return type -[**Array<RecycleBinPackage>**](RecycleBinPackage.md) +[**PackageBulkActionResponse**](PackageBulkActionResponse.md) ### Authorization @@ -74,12 +69,12 @@ Name | Type | Description | Notes -# **recycle_bin_recycle_bin_action** -> PackageBulkActionResponse recycle_bin_recycle_bin_action(owner, opts) - +# **recycle_bin_list** +> Array<RecycleBinPackage> recycle_bin_list(owner, opts) +List soft-deleted packages in recycle bin -Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. +Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. ### Example ```ruby @@ -102,14 +97,17 @@ api_instance = CloudsmithApi::RecycleBinApi.new owner = 'owner_example' # String | opts = { - data: CloudsmithApi::PackageRecycleBin.new # PackageRecycleBin | + page: 56, # Integer | A page number within the paginated result set. + page_size: 56, # Integer | Number of results to return per page. + repository: 'repository_example' # String | Filter packages by repository slug } begin - result = api_instance.recycle_bin_recycle_bin_action(owner, opts) + #List soft-deleted packages in recycle bin + result = api_instance.recycle_bin_list(owner, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling RecycleBinApi->recycle_bin_recycle_bin_action: #{e}" + puts "Exception when calling RecycleBinApi->recycle_bin_list: #{e}" end ``` @@ -118,11 +116,13 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | - **data** | [**PackageRecycleBin**](PackageRecycleBin.md)| | [optional] + **page** | **Integer**| A page number within the paginated result set. | [optional] + **page_size** | **Integer**| Number of results to return per page. | [optional] + **repository** | **String**| Filter packages by repository slug | [optional] ### Return type -[**PackageBulkActionResponse**](PackageBulkActionResponse.md) +[**Array<RecycleBinPackage>**](RecycleBinPackage.md) ### Authorization diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index 8e942ad7..4e660be8 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -7,11 +7,20 @@ Method | HTTP request | Description [**api_repos_geoip_status**](ReposApi.md#api_repos_geoip_status) | **GET** /repos/{owner}/{identifier}/geoip/status/ | Retrieve the GeoIP status for this repository. [**repo_retention_partial_update**](ReposApi.md#repo_retention_partial_update) | **PATCH** /repos/{owner}/{repo}/retention/ | Update the retention rules for the repository. [**repo_retention_read**](ReposApi.md#repo_retention_read) | **GET** /repos/{owner}/{repo}/retention/ | Retrieve the retention rules for the repository. +[**repos_connected_create**](ReposApi.md#repos_connected_create) | **POST** /repos/{owner}/{identifier}/connected/ | Create a connected repository for this repository. +[**repos_connected_delete**](ReposApi.md#repos_connected_delete) | **DELETE** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Delete a connected repository for this repository. +[**repos_connected_list**](ReposApi.md#repos_connected_list) | **GET** /repos/{owner}/{identifier}/connected/ | List connected repositories for this repository. +[**repos_connected_partial_update**](ReposApi.md#repos_connected_partial_update) | **PATCH** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Partially update a connected repository for this repository. +[**repos_connected_read**](ReposApi.md#repos_connected_read) | **GET** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Retrieve a connected repository for this repository. +[**repos_connected_update**](ReposApi.md#repos_connected_update) | **PUT** /repos/{owner}/{identifier}/connected/{slug_perm}/ | Update a connected repository for this repository. [**repos_create**](ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. [**repos_delete**](ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | [**repos_ecdsa_create**](ReposApi.md#repos_ecdsa_create) | **POST** /repos/{owner}/{identifier}/ecdsa/ | Set the active ECDSA key for the Repository. [**repos_ecdsa_list**](ReposApi.md#repos_ecdsa_list) | **GET** /repos/{owner}/{identifier}/ecdsa/ | Retrieve the active ECDSA key for the Repository. [**repos_ecdsa_regenerate**](ReposApi.md#repos_ecdsa_regenerate) | **POST** /repos/{owner}/{identifier}/ecdsa/regenerate/ | Regenerate ECDSA Key for the Repository. +[**repos_ed25519_create**](ReposApi.md#repos_ed25519_create) | **POST** /repos/{owner}/{identifier}/ed25519/ | Set the active Ed25519 key for the Repository. +[**repos_ed25519_list**](ReposApi.md#repos_ed25519_list) | **GET** /repos/{owner}/{identifier}/ed25519/ | Retrieve the active Ed25519 key for the Repository. +[**repos_ed25519_regenerate**](ReposApi.md#repos_ed25519_regenerate) | **POST** /repos/{owner}/{identifier}/ed25519/regenerate/ | Regenerate Ed25519 Key for the Repository. [**repos_geoip_disable**](ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository. [**repos_geoip_enable**](ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository. [**repos_geoip_partial_update**](ReposApi.md#repos_geoip_partial_update) | **PATCH** /repos/{owner}/{identifier}/geoip | Partially update repository geoip rules. @@ -343,6 +352,401 @@ Name | Type | Description | Notes +# **repos_connected_create** +> ConnectedRepository repos_connected_create(owner, identifier, opts) + +Create a connected repository for this repository. + +Create a connected repository 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::ConnectedRepositoryRequest.new # ConnectedRepositoryRequest | +} + +begin + #Create a connected repository for this repository. + result = api_instance.repos_connected_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_connected_delete** +> repos_connected_delete(owner, identifier, slug_perm) + +Delete a connected repository for this repository. + +Delete a connected repository 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 connected repository for this repository. + api_instance.repos_connected_delete(owner, identifier, slug_perm) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_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_connected_list** +> InlineResponse2001 repos_connected_list(owner, identifier, opts) + +List connected repositories for this repository. + +List connected repositories 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 connected repositories for this repository. + result = api_instance.repos_connected_list(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_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 + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_connected_partial_update** +> ConnectedRepository repos_connected_partial_update(owner, identifier, slug_perm, opts) + +Partially update a connected repository for this repository. + +Partially update a connected repository 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::ConnectedRepositoryRequestPatch.new # ConnectedRepositoryRequestPatch | +} + +begin + #Partially update a connected repository for this repository. + result = api_instance.repos_connected_partial_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_partial_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**ConnectedRepositoryRequestPatch**](ConnectedRepositoryRequestPatch.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_connected_read** +> ConnectedRepository repos_connected_read(owner, identifier, slug_perm) + +Retrieve a connected repository for this repository. + +Retrieve a connected repository 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 connected repository for this repository. + result = api_instance.repos_connected_read(owner, identifier, slug_perm) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_connected_update** +> ConnectedRepository repos_connected_update(owner, identifier, slug_perm, opts) + +Update a connected repository for this repository. + +Update a connected repository 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::ConnectedRepositoryRequest.new # ConnectedRepositoryRequest | +} + +begin + #Update a connected repository for this repository. + result = api_instance.repos_connected_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_connected_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**ConnectedRepositoryRequest**](ConnectedRepositoryRequest.md)| | [optional] + +### Return type + +[**ConnectedRepository**](ConnectedRepository.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **repos_create** > RepositoryCreate repos_create(owner, opts) @@ -410,7 +814,7 @@ Name | Type | Description | Notes -Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. +Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. ### Example ```ruby @@ -651,6 +1055,193 @@ Name | Type | Description | Notes +# **repos_ed25519_create** +> RepositoryEd25519Key repos_ed25519_create(owner, identifier, opts) + +Set the active Ed25519 key for the Repository. + +Set the active Ed25519 key for the 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::RepositoryEd25519KeyCreate.new # RepositoryEd25519KeyCreate | +} + +begin + #Set the active Ed25519 key for the Repository. + result = api_instance.repos_ed25519_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_ed25519_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**RepositoryEd25519KeyCreate**](RepositoryEd25519KeyCreate.md)| | [optional] + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_ed25519_list** +> RepositoryEd25519Key repos_ed25519_list(owner, identifier) + +Retrieve the active Ed25519 key for the Repository. + +Retrieve the active Ed25519 key for the 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 | + + +begin + #Retrieve the active Ed25519 key for the Repository. + result = api_instance.repos_ed25519_list(owner, identifier) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_ed25519_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_ed25519_regenerate** +> RepositoryEd25519Key repos_ed25519_regenerate(owner, identifier) + +Regenerate Ed25519 Key for the Repository. + +Regenerate Ed25519 Key for the 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 | + + +begin + #Regenerate Ed25519 Key for the Repository. + result = api_instance.repos_ed25519_regenerate(owner, identifier) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_ed25519_regenerate: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + +### Return type + +[**RepositoryEd25519Key**](RepositoryEd25519Key.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **repos_geoip_disable** > repos_geoip_disable(owner, identifier, opts) diff --git a/bindings/ruby/src/docs/Repository.md b/bindings/ruby/src/docs/Repository.md index d3f25c70..0e985fdf 100644 --- a/bindings/ruby/src/docs/Repository.md +++ b/bindings/ruby/src/docs/Repository.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **name** | **String** | A descriptive name for the repository. | **namespace** | **String** | Namespace to which this repository belongs. | [optional] **namespace_url** | **String** | API endpoint where data about this namespace can be retrieved. | [optional] +**npm_upstream_tags_take_precedence** | **BOOLEAN** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **BOOLEAN** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **num_downloads** | **Integer** | The number of downloads for packages in the repository. | [optional] **num_policy_violated_packages** | **Integer** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/ruby/src/docs/RepositoryCreate.md b/bindings/ruby/src/docs/RepositoryCreate.md index 69061d35..d5caa2a7 100644 --- a/bindings/ruby/src/docs/RepositoryCreate.md +++ b/bindings/ruby/src/docs/RepositoryCreate.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **name** | **String** | A descriptive name for the repository. | **namespace** | **String** | Namespace to which this repository belongs. | [optional] **namespace_url** | **String** | API endpoint where data about this namespace can be retrieved. | [optional] +**npm_upstream_tags_take_precedence** | **BOOLEAN** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **BOOLEAN** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **num_downloads** | **Integer** | The number of downloads for packages in the repository. | [optional] **num_policy_violated_packages** | **Integer** | Number of packages with policy violations in a repository. | [optional] diff --git a/bindings/ruby/src/docs/RepositoryCreateRequest.md b/bindings/ruby/src/docs/RepositoryCreateRequest.md index 0ec849d6..018a04c6 100644 --- a/bindings/ruby/src/docs/RepositoryCreateRequest.md +++ b/bindings/ruby/src/docs/RepositoryCreateRequest.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **move_own** | **BOOLEAN** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **move_packages** | **String** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to 'Admin'] **name** | **String** | A descriptive name for the repository. | +**npm_upstream_tags_take_precedence** | **BOOLEAN** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **BOOLEAN** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **open_source_license** | **String** | The SPDX identifier of the open source license. | [optional] **open_source_project_url** | **String** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/ruby/src/docs/RepositoryEd25519Key.md b/bindings/ruby/src/docs/RepositoryEd25519Key.md new file mode 100644 index 00000000..f68dca03 --- /dev/null +++ b/bindings/ruby/src/docs/RepositoryEd25519Key.md @@ -0,0 +1,13 @@ +# CloudsmithApi::RepositoryEd25519Key + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **BOOLEAN** | If selected this is the active key for this repository. | [optional] +**created_at** | **DateTime** | | [optional] +**default** | **BOOLEAN** | If selected this is the default key for this repository. | [optional] +**fingerprint** | **String** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional] +**fingerprint_short** | **String** | | [optional] +**public_key** | **String** | The public key given to repository users. | [optional] + + diff --git a/bindings/ruby/src/docs/RepositoryEd25519KeyCreate.md b/bindings/ruby/src/docs/RepositoryEd25519KeyCreate.md new file mode 100644 index 00000000..08b4c204 --- /dev/null +++ b/bindings/ruby/src/docs/RepositoryEd25519KeyCreate.md @@ -0,0 +1,9 @@ +# CloudsmithApi::RepositoryEd25519KeyCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ed25519_passphrase** | **String** | The Ed25519 passphrase used for signing. | [optional] +**ed25519_private_key** | **String** | The Ed25519 private key. | + + diff --git a/bindings/ruby/src/docs/RepositoryRequestPatch.md b/bindings/ruby/src/docs/RepositoryRequestPatch.md index 603b3f1d..3f1cb3c6 100644 --- a/bindings/ruby/src/docs/RepositoryRequestPatch.md +++ b/bindings/ruby/src/docs/RepositoryRequestPatch.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **move_own** | **BOOLEAN** | If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org. | [optional] **move_packages** | **String** | This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. | [optional] [default to 'Admin'] **name** | **String** | A descriptive name for the repository. | [optional] +**npm_upstream_tags_take_precedence** | **BOOLEAN** | If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. | [optional] **nuget_native_signing_enabled** | **BOOLEAN** | When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. | [optional] **open_source_license** | **String** | The SPDX identifier of the open source license. | [optional] **open_source_project_url** | **String** | The URL to the Open-Source project, used for validating that the project meets the requirements for Open-Source. | [optional] diff --git a/bindings/ruby/src/docs/RpmPackageUpload.md b/bindings/ruby/src/docs/RpmPackageUpload.md index 24f9d8b7..65fbe6bc 100644 --- a/bindings/ruby/src/docs/RpmPackageUpload.md +++ b/bindings/ruby/src/docs/RpmPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/RubyPackageUpload.md b/bindings/ruby/src/docs/RubyPackageUpload.md index e9a3f517..1457909b 100644 --- a/bindings/ruby/src/docs/RubyPackageUpload.md +++ b/bindings/ruby/src/docs/RubyPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/ServiceTeams.md b/bindings/ruby/src/docs/ServiceTeams.md index d0467a56..3778a8e7 100644 --- a/bindings/ruby/src/docs/ServiceTeams.md +++ b/bindings/ruby/src/docs/ServiceTeams.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the team | [optional] **role** | **String** | The team role associated with the service | [optional] [default to 'Manager'] **slug** | **String** | The teams associated with the service | diff --git a/bindings/ruby/src/docs/SwiftPackageUpload.md b/bindings/ruby/src/docs/SwiftPackageUpload.md index 429f52a1..02b0095d 100644 --- a/bindings/ruby/src/docs/SwiftPackageUpload.md +++ b/bindings/ruby/src/docs/SwiftPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -51,6 +52,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUpload.md b/bindings/ruby/src/docs/TerraformPackageUpload.md index 56c9b2c0..0a76b6ae 100644 --- a/bindings/ruby/src/docs/TerraformPackageUpload.md +++ b/bindings/ruby/src/docs/TerraformPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/docs/UserApi.md b/bindings/ruby/src/docs/UserApi.md index 07c7816e..1041aa22 100644 --- a/bindings/ruby/src/docs/UserApi.md +++ b/bindings/ruby/src/docs/UserApi.md @@ -170,7 +170,7 @@ This endpoint does not need any parameter. # **user_tokens_list** -> InlineResponse2001 user_tokens_list(opts) +> InlineResponse2002 user_tokens_list(opts) Retrieve the API key assigned to the user that is currently authenticated. @@ -217,7 +217,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization diff --git a/bindings/ruby/src/docs/VagrantPackageUpload.md b/bindings/ruby/src/docs/VagrantPackageUpload.md index 4eefb6fc..c5a59c29 100644 --- a/bindings/ruby/src/docs/VagrantPackageUpload.md +++ b/bindings/ruby/src/docs/VagrantPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **provider** | **String** | The virtual machine provider for the box. | diff --git a/bindings/ruby/src/docs/VsxPackageUpload.md b/bindings/ruby/src/docs/VsxPackageUpload.md index 25d89a9f..093647dd 100644 --- a/bindings/ruby/src/docs/VsxPackageUpload.md +++ b/bindings/ruby/src/docs/VsxPackageUpload.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **is_copyable** | **BOOLEAN** | | [optional] **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] +**is_hidden** | **BOOLEAN** | | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -48,6 +49,7 @@ Name | Type | Description | Notes **num_files** | **Integer** | | [optional] **origin_repository** | **String** | | [optional] **origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] **package_type** | **Integer** | The type of package contents. | [optional] **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] **raw_license** | **String** | The raw license string. | [optional] diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 7f844a39..1b35c217 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -51,6 +51,9 @@ 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/connected_repository' +require 'cloudsmith-api/models/connected_repository_request' +require 'cloudsmith-api/models/connected_repository_request_patch' require 'cloudsmith-api/models/cran_package_upload' require 'cloudsmith-api/models/cran_package_upload_request' require 'cloudsmith-api/models/cran_upstream' @@ -112,6 +115,7 @@ 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/inline_response_200_2' require 'cloudsmith-api/models/luarocks_package_upload' require 'cloudsmith-api/models/luarocks_package_upload_request' require 'cloudsmith-api/models/maven_package_upload' @@ -121,6 +125,7 @@ require 'cloudsmith-api/models/maven_upstream_request_patch' require 'cloudsmith-api/models/mcp_package_upload' require 'cloudsmith-api/models/mcp_package_upload_request' +require 'cloudsmith-api/models/member_teams' require 'cloudsmith-api/models/namespace' require 'cloudsmith-api/models/namespace_audit_log' require 'cloudsmith-api/models/nested_license_policy' @@ -137,6 +142,8 @@ require 'cloudsmith-api/models/nuget_upstream_request' require 'cloudsmith-api/models/nuget_upstream_request_patch' require 'cloudsmith-api/models/organization' +require 'cloudsmith-api/models/organization_custom_domain_nested_repo' +require 'cloudsmith-api/models/organization_custom_domains' require 'cloudsmith-api/models/organization_group_sync' require 'cloudsmith-api/models/organization_group_sync_request' require 'cloudsmith-api/models/organization_group_sync_status' @@ -225,6 +232,8 @@ require 'cloudsmith-api/models/repository_create_request' require 'cloudsmith-api/models/repository_ecdsa_key' require 'cloudsmith-api/models/repository_ecdsa_key_create' +require 'cloudsmith-api/models/repository_ed25519_key' +require 'cloudsmith-api/models/repository_ed25519_key_create' require 'cloudsmith-api/models/repository_geo_ip_cidr' require 'cloudsmith-api/models/repository_geo_ip_country_code' require 'cloudsmith-api/models/repository_geo_ip_rules' diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb index 2961c600..08414294 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb @@ -289,6 +289,7 @@ def entitlements_enable_with_http_info(owner, repo, identifier, opts = {}) # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results (default to false) # @option opts [String] :query A search term for querying names of entitlements. # @option opts [BOOLEAN] :active If true, only include active tokens (default to false) + # @option opts [BOOLEAN] :exclude_other_user_tokens If true, exclude user tokens that belong to other users (default to false) # @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. (default to name) # @return [Array] def entitlements_list(owner, repo, opts = {}) @@ -306,6 +307,7 @@ def entitlements_list(owner, repo, opts = {}) # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results # @option opts [String] :query A search term for querying names of entitlements. # @option opts [BOOLEAN] :active If true, only include active tokens + # @option opts [BOOLEAN] :exclude_other_user_tokens If true, exclude user tokens that belong to other users # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def entitlements_list_with_http_info(owner, repo, opts = {}) @@ -330,6 +332,7 @@ def entitlements_list_with_http_info(owner, repo, opts = {}) query_params[:'show_tokens'] = opts[:'show_tokens'] if !opts[:'show_tokens'].nil? query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil? + query_params[:'exclude_other_user_tokens'] = opts[:'exclude_other_user_tokens'] if !opts[:'exclude_other_user_tokens'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters 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 571e2052..52803c16 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb @@ -19,6 +19,66 @@ class OrgsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Get the details for all custom domains. + # Get the details for all custom domains. + # @param org + # @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_custom_domains_list(org, opts = {}) + data, _status_code, _headers = orgs_custom_domains_list_with_http_info(org, opts) + data + end + + # Get the details for all custom domains. + # Get the details for all custom domains. + # @param org + # @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_custom_domains_list_with_http_info(org, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_custom_domains_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_custom_domains_list" + end + # resource path + local_var_path = '/orgs/{org}/custom-domains/'.sub('{' + 'org' + '}', org.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_custom_domains_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Delete the specified organization. # Delete the specified organization. # @param org diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/recycle_bin_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/recycle_bin_api.rb index d692432d..12aee2ff 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/recycle_bin_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/recycle_bin_api.rb @@ -19,43 +19,34 @@ class RecycleBinApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List soft-deleted packages in recycle bin - # Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # @param owner # @param [Hash] opts the optional parameters - # @option opts [Integer] :page A page number within the paginated result set. - # @option opts [Integer] :page_size Number of results to return per page. - # @option opts [String] :repository Filter packages by repository slug - # @return [Array] - def recycle_bin_list(owner, opts = {}) - data, _status_code, _headers = recycle_bin_list_with_http_info(owner, opts) + # @option opts [PackageRecycleBin] :data + # @return [PackageBulkActionResponse] + def recycle_bin_action(owner, opts = {}) + data, _status_code, _headers = recycle_bin_action_with_http_info(owner, opts) data end - # List soft-deleted packages in recycle bin - # Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. + # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. # @param owner # @param [Hash] opts the optional parameters - # @option opts [Integer] :page A page number within the paginated result set. - # @option opts [Integer] :page_size Number of results to return per page. - # @option opts [String] :repository Filter packages by repository slug - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def recycle_bin_list_with_http_info(owner, opts = {}) + # @option opts [PackageRecycleBin] :data + # @return [Array<(PackageBulkActionResponse, Fixnum, Hash)>] PackageBulkActionResponse data, response status code and response headers + def recycle_bin_action_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RecycleBinApi.recycle_bin_list ...' + @api_client.config.logger.debug 'Calling API: RecycleBinApi.recycle_bin_action ...' 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 RecycleBinApi.recycle_bin_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling RecycleBinApi.recycle_bin_action" end # resource path - local_var_path = '/recycle-bin/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/recycle-bin/{owner}/action/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} - query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? - query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? - query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil? # header parameters header_params = {} @@ -68,48 +59,57 @@ def recycle_bin_list_with_http_info(owner, opts = {}) form_params = {} # http body (model) - post_body = nil + post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, + 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 => 'Array') + :return_type => 'PackageBulkActionResponse') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RecycleBinApi#recycle_bin_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RecycleBinApi#recycle_bin_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + # List soft-deleted packages in recycle bin + # Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # @param owner # @param [Hash] opts the optional parameters - # @option opts [PackageRecycleBin] :data - # @return [PackageBulkActionResponse] - def recycle_bin_recycle_bin_action(owner, opts = {}) - data, _status_code, _headers = recycle_bin_recycle_bin_action_with_http_info(owner, 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] :repository Filter packages by repository slug + # @return [Array] + def recycle_bin_list(owner, opts = {}) + data, _status_code, _headers = recycle_bin_list_with_http_info(owner, opts) data end - # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + # List soft-deleted packages in recycle bin + # Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. # @param owner # @param [Hash] opts the optional parameters - # @option opts [PackageRecycleBin] :data - # @return [Array<(PackageBulkActionResponse, Fixnum, Hash)>] PackageBulkActionResponse data, response status code and response headers - def recycle_bin_recycle_bin_action_with_http_info(owner, 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] :repository Filter packages by repository slug + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def recycle_bin_list_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RecycleBinApi.recycle_bin_recycle_bin_action ...' + @api_client.config.logger.debug 'Calling API: RecycleBinApi.recycle_bin_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 RecycleBinApi.recycle_bin_recycle_bin_action" + fail ArgumentError, "Missing the required parameter 'owner' when calling RecycleBinApi.recycle_bin_list" end # resource path - local_var_path = '/recycle-bin/{owner}/action/'.sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/recycle-bin/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil? # header parameters header_params = {} @@ -122,17 +122,17 @@ def recycle_bin_recycle_bin_action_with_http_info(owner, 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(:POST, 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 => 'PackageBulkActionResponse') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RecycleBinApi#recycle_bin_recycle_bin_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RecycleBinApi#recycle_bin_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb index 5b1b8e28..4a14f4d2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -201,6 +201,401 @@ def repo_retention_read_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end + # Create a connected repository for this repository. + # Create a connected repository for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [ConnectedRepository] + def repos_connected_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_connected_create_with_http_info(owner, identifier, opts) + data + end + + # Create a connected repository for this repository. + # Create a connected repository for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers + def repos_connected_create_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/'.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 => 'ConnectedRepository') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_connected_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Delete a connected repository for this repository. + # Delete a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + def repos_connected_delete(owner, identifier, slug_perm, opts = {}) + repos_connected_delete_with_http_info(owner, identifier, slug_perm, opts) + nil + end + + # Delete a connected repository for this repository. + # Delete a connected repository 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_connected_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_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_connected_delete" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/{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_connected_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List connected repositories for this repository. + # List connected repositories 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 [InlineResponse2001] + def repos_connected_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_connected_list_with_http_info(owner, identifier, opts) + data + end + + # List connected repositories for this repository. + # List connected repositories 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<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers + def repos_connected_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/'.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 => 'InlineResponse2001') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_connected_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Partially update a connected repository for this repository. + # Partially update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequestPatch] :data + # @return [ConnectedRepository] + def repos_connected_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Partially update a connected repository for this repository. + # Partially update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequestPatch] :data + # @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers + def repos_connected_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_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_connected_partial_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/{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 => 'ConnectedRepository') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_connected_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve a connected repository for this repository. + # Retrieve a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [ConnectedRepository] + def repos_connected_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_connected_read_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Retrieve a connected repository for this repository. + # Retrieve a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers + def repos_connected_read_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_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_connected_read" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/{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 => 'ConnectedRepository') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_connected_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update a connected repository for this repository. + # Update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [ConnectedRepository] + def repos_connected_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_connected_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Update a connected repository for this repository. + # Update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [Array<(ConnectedRepository, Fixnum, Hash)>] ConnectedRepository data, response status code and response headers + def repos_connected_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_connected_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_connected_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_connected_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_connected_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/connected/{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 => 'ConnectedRepository') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_connected_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Create a new repository in a given namespace. # Create a new repository in a given namespace. # @param owner @@ -257,7 +652,7 @@ def repos_create_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + # Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # @param owner # @param identifier # @param [Hash] opts the optional parameters @@ -267,7 +662,7 @@ def repos_delete(owner, identifier, opts = {}) nil end - # Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + # Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # @param owner # @param identifier # @param [Hash] opts the optional parameters @@ -496,6 +891,188 @@ def repos_ecdsa_regenerate_with_http_info(owner, identifier, opts = {}) end return data, status_code, headers end + # Set the active Ed25519 key for the Repository. + # Set the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [RepositoryEd25519KeyCreate] :data + # @return [RepositoryEd25519Key] + def repos_ed25519_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_ed25519_create_with_http_info(owner, identifier, opts) + data + end + + # Set the active Ed25519 key for the Repository. + # Set the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [RepositoryEd25519KeyCreate] :data + # @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers + def repos_ed25519_create_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_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_ed25519_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_ed25519_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/ed25519/'.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 => 'RepositoryEd25519Key') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_ed25519_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve the active Ed25519 key for the Repository. + # Retrieve the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [RepositoryEd25519Key] + def repos_ed25519_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_ed25519_list_with_http_info(owner, identifier, opts) + data + end + + # Retrieve the active Ed25519 key for the Repository. + # Retrieve the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers + def repos_ed25519_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_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_ed25519_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_ed25519_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/ed25519/'.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 = 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 => 'RepositoryEd25519Key') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_ed25519_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Regenerate Ed25519 Key for the Repository. + # Regenerate Ed25519 Key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [RepositoryEd25519Key] + def repos_ed25519_regenerate(owner, identifier, opts = {}) + data, _status_code, _headers = repos_ed25519_regenerate_with_http_info(owner, identifier, opts) + data + end + + # Regenerate Ed25519 Key for the Repository. + # Regenerate Ed25519 Key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [Array<(RepositoryEd25519Key, Fixnum, Hash)>] RepositoryEd25519Key data, response status code and response headers + def repos_ed25519_regenerate_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_ed25519_regenerate ...' + 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_ed25519_regenerate" + 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_ed25519_regenerate" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/ed25519/regenerate/'.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 = nil + 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 => 'RepositoryEd25519Key') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_ed25519_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Disable GeoIP for this repository. # Disable GeoIP for this repository. # @param owner diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb index c460f262..6693eeba 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb @@ -170,7 +170,7 @@ def user_tokens_create_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2001] + # @return [InlineResponse2002] def user_tokens_list(opts = {}) data, _status_code, _headers = user_tokens_list_with_http_info(opts) data @@ -181,7 +181,7 @@ def user_tokens_list(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers + # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers def user_tokens_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.user_tokens_list ...' @@ -213,7 +213,7 @@ def user_tokens_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2001') + :return_type => 'InlineResponse2002') if @api_client.config.debugging @api_client.config.logger.debug "API called: UserApi#user_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb index d4d002e9..54566d47 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb @@ -76,6 +76,8 @@ class AlpinePackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class AlpinePackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb index b69d522c..c5d9ac6d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload.rb @@ -76,6 +76,8 @@ class CargoPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class CargoPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb index 2f2ff44e..4283bee8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload.rb @@ -76,6 +76,8 @@ class CocoapodsPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class CocoapodsPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb index 368c0fe9..12853cb8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload.rb @@ -76,6 +76,8 @@ class ComposerPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class ComposerPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb index 99769599..45df0cb5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb @@ -82,6 +82,8 @@ class ConanPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -118,6 +120,9 @@ class ConanPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -271,6 +276,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -288,6 +294,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -363,6 +370,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -380,6 +388,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -556,6 +565,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -624,6 +637,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -843,6 +860,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -860,6 +878,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -910,7 +929,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb index 4c856232..93d80004 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload.rb @@ -76,6 +76,8 @@ class CondaPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class CondaPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb new file mode 100644 index 00000000..d37498d2 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb @@ -0,0 +1,230 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class ConnectedRepository + # The date and time when the connection was created. + attr_accessor :created_at + + attr_accessor :is_active + + # Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + attr_accessor :priority + + attr_accessor :slug_perm + + # The slug of the target repository to connect to. + attr_accessor :target_repository + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'created_at' => :'created_at', + :'is_active' => :'is_active', + :'priority' => :'priority', + :'slug_perm' => :'slug_perm', + :'target_repository' => :'target_repository' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'created_at' => :'DateTime', + :'is_active' => :'BOOLEAN', + :'priority' => :'Integer', + :'slug_perm' => :'String', + :'target_repository' => :'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?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + else + self.is_active = true + 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?(:'target_repository') + self.target_repository = attributes[:'target_repository'] + 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 @target_repository.nil? + invalid_properties.push('invalid value for "target_repository", target_repository 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 @target_repository.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 && + created_at == o.created_at && + is_active == o.is_active && + priority == o.priority && + slug_perm == o.slug_perm && + target_repository == o.target_repository + 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 + [created_at, is_active, priority, slug_perm, target_repository].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/connected_repository_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb new file mode 100644 index 00000000..1123ef60 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request.rb @@ -0,0 +1,211 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class ConnectedRepositoryRequest + attr_accessor :is_active + + # Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + attr_accessor :priority + + # The slug of the target repository to connect to. + attr_accessor :target_repository + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'is_active' => :'is_active', + :'priority' => :'priority', + :'target_repository' => :'target_repository' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'is_active' => :'BOOLEAN', + :'priority' => :'Integer', + :'target_repository' => :'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?(:'is_active') + self.is_active = attributes[:'is_active'] + else + self.is_active = true + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'target_repository') + self.target_repository = attributes[:'target_repository'] + 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 @target_repository.nil? + invalid_properties.push('invalid value for "target_repository", target_repository 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 @target_repository.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 && + is_active == o.is_active && + priority == o.priority && + target_repository == o.target_repository + 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 + [is_active, priority, target_repository].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/connected_repository_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.rb new file mode 100644 index 00000000..46c2eaa3 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_request_patch.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.50 + +=end + +require 'date' + +module CloudsmithApi +class ConnectedRepositoryRequestPatch + attr_accessor :is_active + + # Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. + attr_accessor :priority + + # The slug of the target repository to connect to. + attr_accessor :target_repository + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'is_active' => :'is_active', + :'priority' => :'priority', + :'target_repository' => :'target_repository' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'is_active' => :'BOOLEAN', + :'priority' => :'Integer', + :'target_repository' => :'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?(:'is_active') + self.is_active = attributes[:'is_active'] + else + self.is_active = true + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'target_repository') + self.target_repository = attributes[:'target_repository'] + 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? + 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 && + is_active == o.is_active && + priority == o.priority && + target_repository == o.target_repository + 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 + [is_active, priority, target_repository].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/cran_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb index b5425401..7dfb5d07 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb @@ -76,6 +76,8 @@ class CranPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class CranPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -266,6 +271,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -283,6 +289,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'r_version' => :'r_version', @@ -357,6 +364,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -374,6 +382,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'r_version' => :'String', @@ -543,6 +552,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -611,6 +624,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -832,6 +849,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -849,6 +867,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && r_version == o.r_version && @@ -900,7 +919,7 @@ def eql?(o) # 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, r_version, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, r_version, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb index e06ceadb..b6902043 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload.rb @@ -76,6 +76,8 @@ class DartPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class DartPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb index b2dcca72..84a7f384 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload.rb @@ -76,6 +76,8 @@ class DebPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class DebPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb index 5c3a795d..2039148d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload.rb @@ -76,6 +76,8 @@ class DockerPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class DockerPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb index 081de217..09a75fad 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload.rb @@ -76,6 +76,8 @@ class GenericPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class GenericPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb index b6b371c2..01915cc7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload.rb @@ -76,6 +76,8 @@ class GoPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class GoPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb index 82a5a644..20e43abd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload.rb @@ -76,6 +76,8 @@ class HelmPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class HelmPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb index a55528ef..9f67a29c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload.rb @@ -76,6 +76,8 @@ class HexPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class HexPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash 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 index b658ac27..511068c7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload.rb @@ -76,6 +76,8 @@ class HuggingfacePackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class HuggingfacePackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb index a57e5c72..3ef28721 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb @@ -26,7 +26,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { - :'results' => :'Array' + :'results' => :'Array' } end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb new file mode 100644 index 00000000..ebcbe6b9 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_2.rb @@ -0,0 +1,191 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'date' + +module CloudsmithApi +class InlineResponse2002 + attr_accessor :results + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'results' => :'results' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'results' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @results.nil? + invalid_properties.push('invalid value for "results", results cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @results.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + results == o.results + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [results].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb index 51c0947f..12145de4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload.rb @@ -76,6 +76,8 @@ class LuarocksPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class LuarocksPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb index 2f045ebf..6be19c6d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb @@ -82,6 +82,8 @@ class MavenPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -118,6 +120,9 @@ class MavenPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -278,6 +283,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -295,6 +301,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'packaging' => :'packaging', :'policy_violated' => :'policy_violated', @@ -373,6 +380,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -390,6 +398,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'packaging' => :'String', :'policy_violated' => :'BOOLEAN', @@ -569,6 +578,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -637,6 +650,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -868,6 +885,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -885,6 +903,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && packaging == o.packaging && policy_violated == o.policy_violated && @@ -938,7 +957,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, artifact_id, 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, group_id, 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, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [architectures, artifact_id, 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, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb index a1f7a684..2c178e8a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload.rb @@ -76,6 +76,8 @@ class McpPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class McpPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/member_teams.rb b/bindings/ruby/src/lib/cloudsmith-api/models/member_teams.rb new file mode 100644 index 00000000..103ec2e9 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/member_teams.rb @@ -0,0 +1,238 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class MemberTeams + attr_accessor :name + + attr_accessor :role + + attr_accessor :slug + + 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 + { + :'name' => :'name', + :'role' => :'role', + :'slug' => :'slug' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'name' => :'String', + :'role' => :'String', + :'slug' => :'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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'role') + self.role = attributes[:'role'] + else + self.role = 'Manager' + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid 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? + role_validator = EnumAttributeValidator.new('String', ['Manager', 'Member']) + return false unless role_validator.valid?(@role) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] role Object to be assigned + def role=(role) + validator = EnumAttributeValidator.new('String', ['Manager', 'Member']) + unless validator.valid?(role) + fail ArgumentError, 'invalid value for "role", must be one of #{validator.allowable_values}.' + end + @role = role + 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 && + name == o.name && + role == o.role && + slug == o.slug + 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 + [name, role, slug].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/npm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb index e9820ee5..c1f4e5ce 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload.rb @@ -76,6 +76,8 @@ class NpmPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class NpmPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb index 4c8653bb..f19656f2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload.rb @@ -76,6 +76,8 @@ class NugetPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class NugetPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb new file mode 100644 index 00000000..e83e20cd --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb @@ -0,0 +1,195 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class OrganizationCustomDomainNestedRepo + # A descriptive name for the repository. + attr_accessor :name + + # The slug identifies the repository in URIs. + attr_accessor :slug + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'slug' => :'slug' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'name' => :'String', + :'slug' => :'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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid 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? + 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 && + name == o.name && + slug == o.slug + 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 + [name, slug].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/organization_custom_domains.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_custom_domains.rb new file mode 100644 index 00000000..a3c87127 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_custom_domains.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.50 + +=end + +require 'date' + +module CloudsmithApi +class OrganizationCustomDomains + # The domain for a specific package format. + attr_accessor :backend_kind + + attr_accessor :created_at + + attr_accessor :created_by + + # The CNAME value to use to publish this domain publicly. + attr_accessor :dns_alias_value + + # The CNAME name to create to allow us to generate a TLS cert. + attr_accessor :dns_cert_name + + # The CNAME value to use to allow us to generate a TLS cert. + attr_accessor :dns_cert_value + + # The type for the custom domain. + attr_accessor :domain_type + + # If checked, the domain is enabled. + attr_accessor :enabled + + attr_accessor :host + + attr_accessor :namespace + + # If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.) + attr_accessor :primary + + # If checked, the domain root redirects to the repository. + attr_accessor :redirect_root + + # Where root requests should be redirected to if redirect_root is enabled. + attr_accessor :redirect_root_url + + attr_accessor :repository + + # If checked, the domain applies to a specific repository only. + attr_accessor :repository_only + + attr_accessor :slug_perm + + # If validated, the domain is ready for requests. + attr_accessor :validated + + attr_accessor :validated_at + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'backend_kind' => :'backend_kind', + :'created_at' => :'created_at', + :'created_by' => :'created_by', + :'dns_alias_value' => :'dns_alias_value', + :'dns_cert_name' => :'dns_cert_name', + :'dns_cert_value' => :'dns_cert_value', + :'domain_type' => :'domain_type', + :'enabled' => :'enabled', + :'host' => :'host', + :'namespace' => :'namespace', + :'primary' => :'primary', + :'redirect_root' => :'redirect_root', + :'redirect_root_url' => :'redirect_root_url', + :'repository' => :'repository', + :'repository_only' => :'repository_only', + :'slug_perm' => :'slug_perm', + :'validated' => :'validated', + :'validated_at' => :'validated_at' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'backend_kind' => :'Integer', + :'created_at' => :'DateTime', + :'created_by' => :'Integer', + :'dns_alias_value' => :'String', + :'dns_cert_name' => :'String', + :'dns_cert_value' => :'String', + :'domain_type' => :'Integer', + :'enabled' => :'BOOLEAN', + :'host' => :'String', + :'namespace' => :'Integer', + :'primary' => :'BOOLEAN', + :'redirect_root' => :'BOOLEAN', + :'redirect_root_url' => :'String', + :'repository' => :'OrganizationCustomDomainNestedRepo', + :'repository_only' => :'BOOLEAN', + :'slug_perm' => :'String', + :'validated' => :'BOOLEAN', + :'validated_at' => :'DateTime' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'backend_kind') + self.backend_kind = attributes[:'backend_kind'] + end + + if attributes.has_key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'created_by') + self.created_by = attributes[:'created_by'] + end + + if attributes.has_key?(:'dns_alias_value') + self.dns_alias_value = attributes[:'dns_alias_value'] + end + + if attributes.has_key?(:'dns_cert_name') + self.dns_cert_name = attributes[:'dns_cert_name'] + end + + if attributes.has_key?(:'dns_cert_value') + self.dns_cert_value = attributes[:'dns_cert_value'] + end + + if attributes.has_key?(:'domain_type') + self.domain_type = attributes[:'domain_type'] + end + + if attributes.has_key?(:'enabled') + self.enabled = attributes[:'enabled'] + end + + if attributes.has_key?(:'host') + self.host = attributes[:'host'] + end + + if attributes.has_key?(:'namespace') + self.namespace = attributes[:'namespace'] + end + + if attributes.has_key?(:'primary') + self.primary = attributes[:'primary'] + else + self.primary = true + end + + if attributes.has_key?(:'redirect_root') + self.redirect_root = attributes[:'redirect_root'] + end + + if attributes.has_key?(:'redirect_root_url') + self.redirect_root_url = attributes[:'redirect_root_url'] + end + + if attributes.has_key?(:'repository') + self.repository = attributes[:'repository'] + end + + if attributes.has_key?(:'repository_only') + self.repository_only = attributes[:'repository_only'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'validated') + self.validated = attributes[:'validated'] + end + + if attributes.has_key?(:'validated_at') + self.validated_at = attributes[:'validated_at'] + 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 @repository.nil? + invalid_properties.push('invalid value for "repository", repository 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 @repository.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + backend_kind == o.backend_kind && + created_at == o.created_at && + created_by == o.created_by && + dns_alias_value == o.dns_alias_value && + dns_cert_name == o.dns_cert_name && + dns_cert_value == o.dns_cert_value && + domain_type == o.domain_type && + enabled == o.enabled && + host == o.host && + namespace == o.namespace && + primary == o.primary && + redirect_root == o.redirect_root && + redirect_root_url == o.redirect_root_url && + repository == o.repository && + repository_only == o.repository_only && + slug_perm == o.slug_perm && + validated == o.validated && + validated_at == o.validated_at + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [backend_kind, created_at, created_by, dns_alias_value, dns_cert_name, dns_cert_value, domain_type, enabled, host, namespace, primary, redirect_root, redirect_root_url, repository, repository_only, slug_perm, validated, validated_at].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/organization_membership.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb index c601d9a0..a4988916 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb @@ -28,6 +28,8 @@ class OrganizationMembership attr_accessor :role + attr_accessor :teams + attr_accessor :user attr_accessor :user_id @@ -70,6 +72,7 @@ def self.attribute_map :'last_login_at' => :'last_login_at', :'last_login_method' => :'last_login_method', :'role' => :'role', + :'teams' => :'teams', :'user' => :'user', :'user_id' => :'user_id', :'user_name' => :'user_name', @@ -88,6 +91,7 @@ def self.swagger_types :'last_login_at' => :'DateTime', :'last_login_method' => :'String', :'role' => :'String', + :'teams' => :'Array', :'user' => :'String', :'user_id' => :'String', :'user_name' => :'String', @@ -136,6 +140,12 @@ def initialize(attributes = {}) self.role = 'Owner' end + if attributes.has_key?(:'teams') + if (value = attributes[:'teams']).is_a?(Array) + self.teams = value + end + end + if attributes.has_key?(:'user') self.user = attributes[:'user'] end @@ -220,6 +230,7 @@ def ==(o) last_login_at == o.last_login_at && last_login_method == o.last_login_method && role == o.role && + teams == o.teams && user == o.user && user_id == o.user_id && user_name == o.user_name && @@ -236,7 +247,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, has_two_factor, is_active, joined_at, last_login_at, last_login_method, role, user, user_id, user_name, user_url, visibility].hash + [email, has_two_factor, is_active, joined_at, last_login_at, last_login_method, role, teams, user, user_id, user_name, user_url, visibility].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb index f82b9299..ac4ecedd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb @@ -76,6 +76,8 @@ class P2PackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class P2PackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb index e457fb90..e8079f22 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb @@ -79,6 +79,8 @@ class Package attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -115,6 +117,9 @@ class Package attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -269,6 +274,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -286,6 +292,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -361,6 +368,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -378,6 +386,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -551,6 +560,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -619,6 +632,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -841,6 +858,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -858,6 +876,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -909,7 +928,7 @@ def eql?(o) # 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, filepath, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb index e4bbc524..33e58894 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb @@ -79,6 +79,8 @@ class PackageCopy attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -115,6 +117,9 @@ class PackageCopy attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -270,6 +275,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -287,6 +293,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -362,6 +369,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -379,6 +387,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -552,6 +561,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -620,6 +633,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -842,6 +859,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -859,6 +877,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -910,7 +929,7 @@ def eql?(o) # 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, filepath, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb index 9ac381d4..f7e308d2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb @@ -79,6 +79,8 @@ class PackageMove attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -115,6 +117,9 @@ class PackageMove attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -270,6 +275,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -287,6 +293,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -362,6 +369,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -379,6 +387,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -552,6 +561,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -620,6 +633,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -842,6 +859,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -859,6 +877,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -910,7 +929,7 @@ def eql?(o) # 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, filepath, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb index a903e356..0d195617 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb @@ -79,6 +79,8 @@ class PackageQuarantine attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -115,6 +117,9 @@ class PackageQuarantine attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -266,6 +271,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -283,6 +289,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -357,6 +364,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -374,6 +382,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -546,6 +555,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -614,6 +627,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -832,6 +849,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -849,6 +867,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -899,7 +918,7 @@ def eql?(o) # 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, filepath, 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, raw_license, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, policy_violated, raw_license, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb index ef09cadc..bcab7672 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb @@ -79,6 +79,8 @@ class PackageResync attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -115,6 +117,9 @@ class PackageResync attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -269,6 +274,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -286,6 +292,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -361,6 +368,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -378,6 +386,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -551,6 +560,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -619,6 +632,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -841,6 +858,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -858,6 +876,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -909,7 +928,7 @@ def eql?(o) # 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, filepath, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb index 53af8d45..a4837d6b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb @@ -22,6 +22,8 @@ class PackageStatus attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -76,6 +78,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -106,6 +109,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -153,6 +157,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -256,6 +264,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -287,7 +296,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash + [is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb index 8f3cc400..f74defa9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb @@ -79,6 +79,8 @@ class PackageTag attr_accessor :is_downloadable + attr_accessor :is_hidden + # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. attr_accessor :is_immutable @@ -118,6 +120,9 @@ class PackageTag attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -270,6 +275,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_immutable' => :'is_immutable', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', @@ -288,6 +294,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -362,6 +369,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_immutable' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', @@ -380,6 +388,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -552,6 +561,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_immutable') self.is_immutable = attributes[:'is_immutable'] else @@ -626,6 +639,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -844,6 +861,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_immutable == o.is_immutable && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && @@ -862,6 +880,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -912,7 +931,7 @@ def eql?(o) # 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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_immutable, 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_immutable, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb index 30aaac3c..5d2a80b8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload.rb @@ -76,6 +76,8 @@ class PythonPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class PythonPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb index b81a2b86..e4d8ee77 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb @@ -76,6 +76,8 @@ class RawPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class RawPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb index e74a109f..9fe366ed 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb @@ -98,6 +98,9 @@ class Repository # API endpoint where data about this namespace can be retrieved. attr_accessor :namespace_url + # If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + attr_accessor :npm_upstream_tags_take_precedence + # When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. attr_accessor :nuget_native_signing_enabled @@ -273,6 +276,7 @@ def self.attribute_map :'name' => :'name', :'namespace' => :'namespace', :'namespace_url' => :'namespace_url', + :'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence', :'nuget_native_signing_enabled' => :'nuget_native_signing_enabled', :'num_downloads' => :'num_downloads', :'num_policy_violated_packages' => :'num_policy_violated_packages', @@ -349,6 +353,7 @@ def self.swagger_types :'name' => :'String', :'namespace' => :'String', :'namespace_url' => :'String', + :'npm_upstream_tags_take_precedence' => :'BOOLEAN', :'nuget_native_signing_enabled' => :'BOOLEAN', :'num_downloads' => :'Integer', :'num_policy_violated_packages' => :'Integer', @@ -540,6 +545,10 @@ def initialize(attributes = {}) self.namespace_url = attributes[:'namespace_url'] end + if attributes.has_key?(:'npm_upstream_tags_take_precedence') + self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence'] + end + if attributes.has_key?(:'nuget_native_signing_enabled') self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled'] end @@ -924,6 +933,7 @@ def ==(o) name == o.name && namespace == o.namespace && namespace_url == o.namespace_url && + npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence && nuget_native_signing_enabled == o.nuget_native_signing_enabled && num_downloads == o.num_downloads && num_policy_violated_packages == o.num_policy_violated_packages && @@ -975,7 +985,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb index 7eccda56..ca90e9ce 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create.rb @@ -98,6 +98,9 @@ class RepositoryCreate # API endpoint where data about this namespace can be retrieved. attr_accessor :namespace_url + # If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + attr_accessor :npm_upstream_tags_take_precedence + # When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. attr_accessor :nuget_native_signing_enabled @@ -273,6 +276,7 @@ def self.attribute_map :'name' => :'name', :'namespace' => :'namespace', :'namespace_url' => :'namespace_url', + :'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence', :'nuget_native_signing_enabled' => :'nuget_native_signing_enabled', :'num_downloads' => :'num_downloads', :'num_policy_violated_packages' => :'num_policy_violated_packages', @@ -349,6 +353,7 @@ def self.swagger_types :'name' => :'String', :'namespace' => :'String', :'namespace_url' => :'String', + :'npm_upstream_tags_take_precedence' => :'BOOLEAN', :'nuget_native_signing_enabled' => :'BOOLEAN', :'num_downloads' => :'Integer', :'num_policy_violated_packages' => :'Integer', @@ -540,6 +545,10 @@ def initialize(attributes = {}) self.namespace_url = attributes[:'namespace_url'] end + if attributes.has_key?(:'npm_upstream_tags_take_precedence') + self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence'] + end + if attributes.has_key?(:'nuget_native_signing_enabled') self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled'] end @@ -924,6 +933,7 @@ def ==(o) name == o.name && namespace == o.namespace && namespace_url == o.namespace_url && + npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence && nuget_native_signing_enabled == o.nuget_native_signing_enabled && num_downloads == o.num_downloads && num_policy_violated_packages == o.num_policy_violated_packages && @@ -975,7 +985,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create_request.rb index ba164c18..f34f7639 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_create_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_create_request.rb @@ -74,6 +74,9 @@ class RepositoryCreateRequest # A descriptive name for the repository. attr_accessor :name + # If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + attr_accessor :npm_upstream_tags_take_precedence + # When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. attr_accessor :nuget_native_signing_enabled @@ -200,6 +203,7 @@ def self.attribute_map :'move_own' => :'move_own', :'move_packages' => :'move_packages', :'name' => :'name', + :'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence', :'nuget_native_signing_enabled' => :'nuget_native_signing_enabled', :'open_source_license' => :'open_source_license', :'open_source_project_url' => :'open_source_project_url', @@ -253,6 +257,7 @@ def self.swagger_types :'move_own' => :'BOOLEAN', :'move_packages' => :'String', :'name' => :'String', + :'npm_upstream_tags_take_precedence' => :'BOOLEAN', :'nuget_native_signing_enabled' => :'BOOLEAN', :'open_source_license' => :'String', :'open_source_project_url' => :'String', @@ -387,6 +392,10 @@ def initialize(attributes = {}) self.name = attributes[:'name'] end + if attributes.has_key?(:'npm_upstream_tags_take_precedence') + self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence'] + end + if attributes.has_key?(:'nuget_native_signing_enabled') self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled'] end @@ -709,6 +718,7 @@ def ==(o) move_own == o.move_own && move_packages == o.move_packages && name == o.name && + npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence && nuget_native_signing_enabled == o.nuget_native_signing_enabled && open_source_license == o.open_source_license && open_source_project_url == o.open_source_project_url && @@ -747,7 +757,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb new file mode 100644 index 00000000..e8d3cb8f --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key.rb @@ -0,0 +1,233 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class RepositoryEd25519Key + # If selected this is the active key for this repository. + attr_accessor :active + + attr_accessor :created_at + + # If selected this is the default key for this repository. + attr_accessor :default + + # Uppercase hex-encoded SHA-256 fingerprint of the public key. + attr_accessor :fingerprint + + attr_accessor :fingerprint_short + + # The public key given to repository users. + attr_accessor :public_key + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'active' => :'active', + :'created_at' => :'created_at', + :'default' => :'default', + :'fingerprint' => :'fingerprint', + :'fingerprint_short' => :'fingerprint_short', + :'public_key' => :'public_key' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'active' => :'BOOLEAN', + :'created_at' => :'DateTime', + :'default' => :'BOOLEAN', + :'fingerprint' => :'String', + :'fingerprint_short' => :'String', + :'public_key' => :'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?(:'active') + self.active = attributes[:'active'] + end + + if attributes.has_key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'default') + self.default = attributes[:'default'] + end + + if attributes.has_key?(:'fingerprint') + self.fingerprint = attributes[:'fingerprint'] + end + + if attributes.has_key?(:'fingerprint_short') + self.fingerprint_short = attributes[:'fingerprint_short'] + end + + if attributes.has_key?(:'public_key') + self.public_key = attributes[:'public_key'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid 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? + 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 && + active == o.active && + created_at == o.created_at && + default == o.default && + fingerprint == o.fingerprint && + fingerprint_short == o.fingerprint_short && + public_key == o.public_key + 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 + [active, created_at, default, fingerprint, fingerprint_short, public_key].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/repository_ed25519_key_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key_create.rb new file mode 100644 index 00000000..54918768 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_ed25519_key_create.rb @@ -0,0 +1,200 @@ +=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.50 + +=end + +require 'date' + +module CloudsmithApi +class RepositoryEd25519KeyCreate + # The Ed25519 passphrase used for signing. + attr_accessor :ed25519_passphrase + + # The Ed25519 private key. + attr_accessor :ed25519_private_key + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'ed25519_passphrase' => :'ed25519_passphrase', + :'ed25519_private_key' => :'ed25519_private_key' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'ed25519_passphrase' => :'String', + :'ed25519_private_key' => :'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?(:'ed25519_passphrase') + self.ed25519_passphrase = attributes[:'ed25519_passphrase'] + end + + if attributes.has_key?(:'ed25519_private_key') + self.ed25519_private_key = attributes[:'ed25519_private_key'] + 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 @ed25519_private_key.nil? + invalid_properties.push('invalid value for "ed25519_private_key", ed25519_private_key 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 @ed25519_private_key.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 && + ed25519_passphrase == o.ed25519_passphrase && + ed25519_private_key == o.ed25519_private_key + 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 + [ed25519_passphrase, ed25519_private_key].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/repository_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_request_patch.rb index 4b3738fd..709c5832 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_request_patch.rb @@ -74,6 +74,9 @@ class RepositoryRequestPatch # A descriptive name for the repository. attr_accessor :name + # If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version. + attr_accessor :npm_upstream_tags_take_precedence + # When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams. attr_accessor :nuget_native_signing_enabled @@ -197,6 +200,7 @@ def self.attribute_map :'move_own' => :'move_own', :'move_packages' => :'move_packages', :'name' => :'name', + :'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence', :'nuget_native_signing_enabled' => :'nuget_native_signing_enabled', :'open_source_license' => :'open_source_license', :'open_source_project_url' => :'open_source_project_url', @@ -249,6 +253,7 @@ def self.swagger_types :'move_own' => :'BOOLEAN', :'move_packages' => :'String', :'name' => :'String', + :'npm_upstream_tags_take_precedence' => :'BOOLEAN', :'nuget_native_signing_enabled' => :'BOOLEAN', :'open_source_license' => :'String', :'open_source_project_url' => :'String', @@ -382,6 +387,10 @@ def initialize(attributes = {}) self.name = attributes[:'name'] end + if attributes.has_key?(:'npm_upstream_tags_take_precedence') + self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence'] + end + if attributes.has_key?(:'nuget_native_signing_enabled') self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled'] end @@ -693,6 +702,7 @@ def ==(o) move_own == o.move_own && move_packages == o.move_packages && name == o.name && + npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence && nuget_native_signing_enabled == o.nuget_native_signing_enabled && open_source_license == o.open_source_license && open_source_project_url == o.open_source_project_url && @@ -730,7 +740,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash + [broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb index 0bf1b2a4..c63d9cee 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload.rb @@ -76,6 +76,8 @@ class RpmPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class RpmPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb index 548c3585..e90383ea 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload.rb @@ -76,6 +76,8 @@ class RubyPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class RubyPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/service_teams.rb b/bindings/ruby/src/lib/cloudsmith-api/models/service_teams.rb index f8642628..4affd732 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/service_teams.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/service_teams.rb @@ -14,6 +14,9 @@ module CloudsmithApi class ServiceTeams + # The name of the team + attr_accessor :name + # The team role associated with the service attr_accessor :role @@ -45,6 +48,7 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'name' => :'name', :'role' => :'role', :'slug' => :'slug' } @@ -53,6 +57,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'name' => :'String', :'role' => :'String', :'slug' => :'String' } @@ -66,6 +71,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + if attributes.has_key?(:'role') self.role = attributes[:'role'] else @@ -112,6 +121,7 @@ def role=(role) def ==(o) return true if self.equal?(o) self.class == o.class && + name == o.name && role == o.role && slug == o.slug end @@ -125,7 +135,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [role, slug].hash + [name, role, slug].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb index f7b5e444..78f9883b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload.rb @@ -82,6 +82,8 @@ class SwiftPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -121,6 +123,9 @@ class SwiftPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -281,6 +286,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -299,6 +305,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -376,6 +383,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -394,6 +402,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -572,6 +581,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -644,6 +657,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -886,6 +903,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -904,6 +922,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -956,7 +975,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architectures, author_name, author_org, 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, license_url, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, policy_violated, raw_license, readme_url, release, repository, repository_url, scope, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [architectures, author_name, author_org, 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_hidden, 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, license_url, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, readme_url, release, repository, repository_url, scope, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb index 6fe9d7ae..cc08ef8b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload.rb @@ -76,6 +76,8 @@ class TerraformPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class TerraformPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb index 52303ec4..81a1a690 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb @@ -76,6 +76,8 @@ class VagrantPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class VagrantPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -266,6 +271,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -283,6 +289,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'provider' => :'provider', @@ -357,6 +364,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -374,6 +382,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'provider' => :'String', @@ -543,6 +552,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -611,6 +624,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -847,6 +864,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -864,6 +882,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && provider == o.provider && @@ -915,7 +934,7 @@ def eql?(o) # 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, provider, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, provider, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb index 251bc319..3177084d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload.rb @@ -76,6 +76,8 @@ class VsxPackageUpload attr_accessor :is_downloadable + attr_accessor :is_hidden + attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -112,6 +114,9 @@ class VsxPackageUpload attr_accessor :origin_repository_url + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + # The type of package contents. attr_accessor :package_type @@ -263,6 +268,7 @@ def self.attribute_map :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -280,6 +286,7 @@ def self.attribute_map :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', @@ -353,6 +360,7 @@ def self.swagger_types :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -370,6 +378,7 @@ def self.swagger_types :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', @@ -538,6 +547,10 @@ def initialize(attributes = {}) self.is_downloadable = attributes[:'is_downloadable'] end + if attributes.has_key?(:'is_hidden') + self.is_hidden = attributes[:'is_hidden'] + end + if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -606,6 +619,10 @@ def initialize(attributes = {}) self.origin_repository_url = attributes[:'origin_repository_url'] end + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end @@ -823,6 +840,7 @@ def ==(o) is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && + is_hidden == o.is_hidden && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -840,6 +858,7 @@ def ==(o) num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && package_type == o.package_type && policy_violated == o.policy_violated && raw_license == o.raw_license && @@ -890,7 +909,7 @@ def eql?(o) # 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, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].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_hidden, 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, osi_approved, package_type, policy_violated, raw_license, 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, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index 906356c8..fbca388a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -11,5 +11,5 @@ =end module CloudsmithApi - VERSION = '2.0.26' + VERSION = '2.0.27' end diff --git a/bindings/ruby/src/spec/api/entitlements_api_spec.rb b/bindings/ruby/src/spec/api/entitlements_api_spec.rb index 1f603bf1..4f07496d 100644 --- a/bindings/ruby/src/spec/api/entitlements_api_spec.rb +++ b/bindings/ruby/src/spec/api/entitlements_api_spec.rb @@ -100,6 +100,7 @@ # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results # @option opts [String] :query A search term for querying names of entitlements. # @option opts [BOOLEAN] :active If true, only include active tokens + # @option opts [BOOLEAN] :exclude_other_user_tokens If true, exclude user tokens that belong to other users # @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. # @return [Array] describe 'entitlements_list test' do diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index 81337835..e37c7e9a 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -32,6 +32,20 @@ end end + # unit tests for orgs_custom_domains_list + # Get the details for all custom domains. + # Get the details for all custom domains. + # @param org + # @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_custom_domains_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_delete # Delete the specified organization. # Delete the specified organization. diff --git a/bindings/ruby/src/spec/api/recycle_bin_api_spec.rb b/bindings/ruby/src/spec/api/recycle_bin_api_spec.rb index 273cfc63..da082bbe 100644 --- a/bindings/ruby/src/spec/api/recycle_bin_api_spec.rb +++ b/bindings/ruby/src/spec/api/recycle_bin_api_spec.rb @@ -32,6 +32,18 @@ end end + # unit tests for recycle_bin_action + # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. + # @param owner + # @param [Hash] opts the optional parameters + # @option opts [PackageRecycleBin] :data + # @return [PackageBulkActionResponse] + describe 'recycle_bin_action 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 recycle_bin_list # List soft-deleted packages in recycle bin # Retrieve all soft-deleted packages in the workspace. Optionally filter by repository using the 'repository' query parameter. @@ -47,16 +59,4 @@ end end - # unit tests for recycle_bin_recycle_bin_action - # Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details. - # @param owner - # @param [Hash] opts the optional parameters - # @option opts [PackageRecycleBin] :data - # @return [PackageBulkActionResponse] - describe 'recycle_bin_recycle_bin_action test' 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/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index 9efaad12..fdebb5bc 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -72,6 +72,93 @@ end end + # unit tests for repos_connected_create + # Create a connected repository for this repository. + # Create a connected repository for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [ConnectedRepository] + describe 'repos_connected_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_connected_delete + # Delete a connected repository for this repository. + # Delete a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_connected_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_connected_list + # List connected repositories for this repository. + # List connected repositories 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 [InlineResponse2001] + describe 'repos_connected_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_connected_partial_update + # Partially update a connected repository for this repository. + # Partially update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequestPatch] :data + # @return [ConnectedRepository] + describe 'repos_connected_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_connected_read + # Retrieve a connected repository for this repository. + # Retrieve a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [ConnectedRepository] + describe 'repos_connected_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_connected_update + # Update a connected repository for this repository. + # Update a connected repository for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ConnectedRepositoryRequest] :data + # @return [ConnectedRepository] + describe 'repos_connected_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_create # Create a new repository in a given namespace. # Create a new repository in a given namespace. @@ -86,7 +173,7 @@ end # unit tests for repos_delete - # Delete a repository in a given namespace.Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. + # Delete a repository in a given namespace. Note: Repositories are soft-deleted and can be restored within a retention period. During this time, the repository's slug remains reserved and cannot be reused for new repositories. # @param owner # @param identifier # @param [Hash] opts the optional parameters @@ -137,6 +224,46 @@ end end + # unit tests for repos_ed25519_create + # Set the active Ed25519 key for the Repository. + # Set the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [RepositoryEd25519KeyCreate] :data + # @return [RepositoryEd25519Key] + describe 'repos_ed25519_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_ed25519_list + # Retrieve the active Ed25519 key for the Repository. + # Retrieve the active Ed25519 key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [RepositoryEd25519Key] + describe 'repos_ed25519_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_ed25519_regenerate + # Regenerate Ed25519 Key for the Repository. + # Regenerate Ed25519 Key for the Repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @return [RepositoryEd25519Key] + describe 'repos_ed25519_regenerate 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_geoip_disable # Disable GeoIP for this repository. # Disable GeoIP for this repository. diff --git a/bindings/ruby/src/spec/api/user_api_spec.rb b/bindings/ruby/src/spec/api/user_api_spec.rb index b71c9f9f..5f01bfa6 100644 --- a/bindings/ruby/src/spec/api/user_api_spec.rb +++ b/bindings/ruby/src/spec/api/user_api_spec.rb @@ -72,7 +72,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse2001] + # @return [InlineResponse2002] describe 'user_tokens_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb index 1380128f..82a0c541 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb index a5319857..a7f0b004 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb index 62b2ef3b..83cd73b9 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb index 27e13550..67b5acfa 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb index 6fe482eb..778eb3de 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -314,6 +320,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb index 2be685de..1e605148 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/connected_repository_request_patch_spec.rb b/bindings/ruby/src/spec/models/connected_repository_request_patch_spec.rb new file mode 100644 index 00000000..1306cc66 --- /dev/null +++ b/bindings/ruby/src/spec/models/connected_repository_request_patch_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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::ConnectedRepositoryRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConnectedRepositoryRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::ConnectedRepositoryRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of ConnectedRepositoryRequestPatch' do + it 'should create an instance of ConnectedRepositoryRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepositoryRequestPatch) + 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 "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 "target_repository"' 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/connected_repository_request_spec.rb b/bindings/ruby/src/spec/models/connected_repository_request_spec.rb new file mode 100644 index 00000000..7be05d5b --- /dev/null +++ b/bindings/ruby/src/spec/models/connected_repository_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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::ConnectedRepositoryRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConnectedRepositoryRequest' do + before do + # run before each test + @instance = CloudsmithApi::ConnectedRepositoryRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of ConnectedRepositoryRequest' do + it 'should create an instance of ConnectedRepositoryRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepositoryRequest) + 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 "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 "target_repository"' 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/connected_repository_spec.rb b/bindings/ruby/src/spec/models/connected_repository_spec.rb new file mode 100644 index 00000000..f5de1b00 --- /dev/null +++ b/bindings/ruby/src/spec/models/connected_repository_spec.rb @@ -0,0 +1,65 @@ +=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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::ConnectedRepository +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConnectedRepository' do + before do + # run before each test + @instance = CloudsmithApi::ConnectedRepository.new + end + + after do + # run after each test + end + + describe 'test an instance of ConnectedRepository' do + it 'should create an instance of ConnectedRepository' do + expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepository) + 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 "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 "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 "target_repository"' 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/cran_package_upload_spec.rb b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb index aa0a987d..7822f3bd 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb index 7c0a197a..94a90201 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb index dab64b91..63f100b6 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb index 09c43a06..12ef45e1 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb index 3e22b03e..bc24e81e 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/go_package_upload_spec.rb b/bindings/ruby/src/spec/models/go_package_upload_spec.rb index 8601333c..63788b8a 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb index 9109cb54..55b4501a 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb index 9c5cb507..646d8678 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb index 30adfeed..514be615 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/inline_response_200_2_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_2_spec.rb new file mode 100644 index 00000000..ab9571f7 --- /dev/null +++ b/bindings/ruby/src/spec/models/inline_response_200_2_spec.rb @@ -0,0 +1,41 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::InlineResponse2002 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2002' do + before do + # run before each test + @instance = CloudsmithApi::InlineResponse2002.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2002' do + it 'should create an instance of InlineResponse2002' do + expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse2002) + end + end + describe 'test attribute "results"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb index 0c51b6d8..5f82df35 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb index 60e637de..ac94db4f 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -314,6 +320,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb index 6cc8e597..e66d5382 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/member_teams_spec.rb b/bindings/ruby/src/spec/models/member_teams_spec.rb new file mode 100644 index 00000000..f241f9b8 --- /dev/null +++ b/bindings/ruby/src/spec/models/member_teams_spec.rb @@ -0,0 +1,57 @@ +=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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::MemberTeams +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'MemberTeams' do + before do + # run before each test + @instance = CloudsmithApi::MemberTeams.new + end + + after do + # run after each test + end + + describe 'test an instance of MemberTeams' do + it 'should create an instance of MemberTeams' do + expect(@instance).to be_instance_of(CloudsmithApi::MemberTeams) + 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 "role"' 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', ["Manager", "Member"]) + # validator.allowable_values.each do |value| + # expect { @instance.role = value }.not_to raise_error + # end + 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 + +end diff --git a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb index 9c7cc771..e95b7592 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb index 48f41450..c7de23e6 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/organization_custom_domain_nested_repo_spec.rb b/bindings/ruby/src/spec/models/organization_custom_domain_nested_repo_spec.rb new file mode 100644 index 00000000..1b4a4090 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_custom_domain_nested_repo_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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::OrganizationCustomDomainNestedRepo +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationCustomDomainNestedRepo' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationCustomDomainNestedRepo.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationCustomDomainNestedRepo' do + it 'should create an instance of OrganizationCustomDomainNestedRepo' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationCustomDomainNestedRepo) + 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 "slug"' 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/organization_custom_domains_spec.rb b/bindings/ruby/src/spec/models/organization_custom_domains_spec.rb new file mode 100644 index 00000000..416c11a7 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_custom_domains_spec.rb @@ -0,0 +1,143 @@ +=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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::OrganizationCustomDomains +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationCustomDomains' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationCustomDomains.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationCustomDomains' do + it 'should create an instance of OrganizationCustomDomains' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationCustomDomains) + end + end + describe 'test attribute "backend_kind"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "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 "created_by"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dns_alias_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 "dns_cert_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 "dns_cert_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 "domain_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 "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 "host"' 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 "primary"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "redirect_root"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "redirect_root_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 "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_only"' 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 "validated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "validated_at"' 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/organization_membership_spec.rb b/bindings/ruby/src/spec/models/organization_membership_spec.rb index 33f381d3..32b512a3 100644 --- a/bindings/ruby/src/spec/models/organization_membership_spec.rb +++ b/bindings/ruby/src/spec/models/organization_membership_spec.rb @@ -82,6 +82,12 @@ end end + describe 'test attribute "teams"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "user"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb index 5ce7ecf5..4bea2841 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_copy_spec.rb b/bindings/ruby/src/spec/models/package_copy_spec.rb index 19689b78..6598d423 100644 --- a/bindings/ruby/src/spec/models/package_copy_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -308,6 +314,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_move_spec.rb b/bindings/ruby/src/spec/models/package_move_spec.rb index 7349d541..2ba939d0 100644 --- a/bindings/ruby/src/spec/models/package_move_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -308,6 +314,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_quarantine_spec.rb b/bindings/ruby/src/spec/models/package_quarantine_spec.rb index 765d8193..f5a6dfe5 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -308,6 +314,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_resync_spec.rb b/bindings/ruby/src/spec/models/package_resync_spec.rb index f43c848a..ce606666 100644 --- a/bindings/ruby/src/spec/models/package_resync_spec.rb +++ b/bindings/ruby/src/spec/models/package_resync_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -308,6 +314,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_spec.rb b/bindings/ruby/src/spec/models/package_spec.rb index f4a42782..10f88d01 100644 --- a/bindings/ruby/src/spec/models/package_spec.rb +++ b/bindings/ruby/src/spec/models/package_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -308,6 +314,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/package_status_spec.rb b/bindings/ruby/src/spec/models/package_status_spec.rb index a47d8254..c0b11116 100644 --- a/bindings/ruby/src/spec/models/package_status_spec.rb +++ b/bindings/ruby/src/spec/models/package_status_spec.rb @@ -56,6 +56,12 @@ end end + describe 'test attribute "is_hidden"' 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 diff --git a/bindings/ruby/src/spec/models/package_tag_spec.rb b/bindings/ruby/src/spec/models/package_tag_spec.rb index 45ed8b0b..00ebfdc7 100644 --- a/bindings/ruby/src/spec/models/package_tag_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_spec.rb @@ -206,6 +206,12 @@ end end + describe 'test attribute "is_hidden"' 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_immutable"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -314,6 +320,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/python_package_upload_spec.rb b/bindings/ruby/src/spec/models/python_package_upload_spec.rb index 1bf2008f..bcf8b5f5 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb index 19d93454..35c35c0a 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/repository_create_request_spec.rb b/bindings/ruby/src/spec/models/repository_create_request_spec.rb index 0132abe2..2476f08e 100644 --- a/bindings/ruby/src/spec/models/repository_create_request_spec.rb +++ b/bindings/ruby/src/spec/models/repository_create_request_spec.rb @@ -180,6 +180,12 @@ end end + describe 'test attribute "npm_upstream_tags_take_precedence"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "nuget_native_signing_enabled"' 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/repository_create_spec.rb b/bindings/ruby/src/spec/models/repository_create_spec.rb index 82dc105f..9f59b958 100644 --- a/bindings/ruby/src/spec/models/repository_create_spec.rb +++ b/bindings/ruby/src/spec/models/repository_create_spec.rb @@ -240,6 +240,12 @@ end end + describe 'test attribute "npm_upstream_tags_take_precedence"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "nuget_native_signing_enabled"' 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/repository_ed25519_key_create_spec.rb b/bindings/ruby/src/spec/models/repository_ed25519_key_create_spec.rb new file mode 100644 index 00000000..245005fa --- /dev/null +++ b/bindings/ruby/src/spec/models/repository_ed25519_key_create_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.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::RepositoryEd25519KeyCreate +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'RepositoryEd25519KeyCreate' do + before do + # run before each test + @instance = CloudsmithApi::RepositoryEd25519KeyCreate.new + end + + after do + # run after each test + end + + describe 'test an instance of RepositoryEd25519KeyCreate' do + it 'should create an instance of RepositoryEd25519KeyCreate' do + expect(@instance).to be_instance_of(CloudsmithApi::RepositoryEd25519KeyCreate) + end + end + describe 'test attribute "ed25519_passphrase"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ed25519_private_key"' 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/repository_ed25519_key_spec.rb b/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb new file mode 100644 index 00000000..23eb3dec --- /dev/null +++ b/bindings/ruby/src/spec/models/repository_ed25519_key_spec.rb @@ -0,0 +1,71 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.50 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::RepositoryEd25519Key +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'RepositoryEd25519Key' do + before do + # run before each test + @instance = CloudsmithApi::RepositoryEd25519Key.new + end + + after do + # run after each test + end + + describe 'test an instance of RepositoryEd25519Key' do + it 'should create an instance of RepositoryEd25519Key' do + expect(@instance).to be_instance_of(CloudsmithApi::RepositoryEd25519Key) + end + end + describe 'test attribute "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 "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 "default"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fingerprint"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fingerprint_short"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "public_key"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/repository_request_patch_spec.rb b/bindings/ruby/src/spec/models/repository_request_patch_spec.rb index 10388e9b..6929d1b2 100644 --- a/bindings/ruby/src/spec/models/repository_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/repository_request_patch_spec.rb @@ -180,6 +180,12 @@ end end + describe 'test attribute "npm_upstream_tags_take_precedence"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "nuget_native_signing_enabled"' 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/repository_spec.rb b/bindings/ruby/src/spec/models/repository_spec.rb index b3bfa45c..3a63cd7e 100644 --- a/bindings/ruby/src/spec/models/repository_spec.rb +++ b/bindings/ruby/src/spec/models/repository_spec.rb @@ -240,6 +240,12 @@ end end + describe 'test attribute "npm_upstream_tags_take_precedence"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "nuget_native_signing_enabled"' 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/rpm_package_upload_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb index 51514716..5e58016a 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb index c906f103..92c400ef 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/service_teams_spec.rb b/bindings/ruby/src/spec/models/service_teams_spec.rb index 073221ec..f6dc0ce0 100644 --- a/bindings/ruby/src/spec/models/service_teams_spec.rb +++ b/bindings/ruby/src/spec/models/service_teams_spec.rb @@ -32,6 +32,12 @@ expect(@instance).to be_instance_of(CloudsmithApi::ServiceTeams) 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 "role"' 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/swift_package_upload_spec.rb b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb index e021ff6c..50c7067c 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb @@ -212,6 +212,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -320,6 +326,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb index c1700ca5..3c902a0e 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb index 7102f97e..3904085f 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb index 71d7ff79..0310b1ee 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb @@ -200,6 +200,12 @@ end end + describe 'test attribute "is_hidden"' 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 @@ -302,6 +308,12 @@ end end + describe 'test attribute "osi_approved"' 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 diff --git a/scripts/build.sh b/scripts/build.sh index 51d6f2b6..d38cb67f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -6,6 +6,28 @@ self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/..") . $root_dir/scripts/common.sh +# Ensure a Docker-compatible daemon is reachable. We use OrbStack, which ships a +# drop-in `docker` CLI; start it on demand if the daemon isn't up yet. +ensure_docker_daemon() { + docker info >/dev/null 2>&1 && return 0 + + echo "Docker daemon not reachable. Attempting to start OrbStack ..." + if command -v orb >/dev/null 2>&1; then + orb start || true + elif [[ "$(uname)" == "Darwin" ]]; then + open -a OrbStack 2>/dev/null || true + fi + + for _ in $(seq 1 30); do + docker info >/dev/null 2>&1 && return 0 + sleep 1 + done + + die "Docker daemon not available via OrbStack. Install/start OrbStack: https://orbstack.dev" +} + +ensure_docker_daemon + docker image pull -q "${swagger_codegen_cli_image:?}" build_language() { diff --git a/scripts/common.sh b/scripts/common.sh index e4d85843..9b1bb487 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -3,7 +3,7 @@ language=${1:-""} api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}} api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version') openapi_url="${api_url}?format=openapi" -package_version="2.0.26" +package_version="2.0.27" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:v2.4.50" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2)