diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index e889220f..29dc0ab0 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.32 + 2.0.33 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.32" +compile "io.cloudsmith.api:cloudsmith-api:2.0.33" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.32.jar` +* `target/cloudsmith-api-2.0.33.jar` * `target/lib/*.jar` ## Getting Started @@ -150,6 +150,12 @@ Class | Method | HTTP request | Description *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. *OpenidApi* | [**openidCreate**](docs/OpenidApi.md#openidCreate) | **POST** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org. +*OrgsApi* | [**orgsApiKeyRulesCreate**](docs/OrgsApi.md#orgsApiKeyRulesCreate) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +*OrgsApi* | [**orgsApiKeyRulesDelete**](docs/OrgsApi.md#orgsApiKeyRulesDelete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +*OrgsApi* | [**orgsApiKeyRulesList**](docs/OrgsApi.md#orgsApiKeyRulesList) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +*OrgsApi* | [**orgsApiKeyRulesPartialUpdate**](docs/OrgsApi.md#orgsApiKeyRulesPartialUpdate) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +*OrgsApi* | [**orgsApiKeyRulesRead**](docs/OrgsApi.md#orgsApiKeyRulesRead) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +*OrgsApi* | [**orgsApiKeyRulesUpdate**](docs/OrgsApi.md#orgsApiKeyRulesUpdate) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. *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. @@ -530,6 +536,8 @@ Class | Method | HTTP request | Description - [ConnectedRepository](docs/ConnectedRepository.md) - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) + - [ConnectedRepositoryTargetSummary](docs/ConnectedRepositoryTargetSummary.md) + - [ConnectedRepositoryUpstream](docs/ConnectedRepositoryUpstream.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -629,6 +637,9 @@ Class | Method | HTTP request | Description - [Oidc1](docs/Oidc1.md) - [OidcRequest](docs/OidcRequest.md) - [Organization](docs/Organization.md) + - [OrganizationApiKeyRule](docs/OrganizationApiKeyRule.md) + - [OrganizationApiKeyRuleRequest](docs/OrganizationApiKeyRuleRequest.md) + - [OrganizationApiKeyRuleRequestPatch](docs/OrganizationApiKeyRuleRequestPatch.md) - [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) - [OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [OrganizationGroupSync](docs/OrganizationGroupSync.md) diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index f86ee75a..217b2955 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.32' +version = '2.0.33' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index c467f8c2..e7db0266 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.32", + "artifactVersion": "2.0.33", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 96c20619..5b118655 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.32", + version := "2.0.33", 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 ac4e052b..80362354 100644 --- a/bindings/java/src/docs/AlpinePackageUpload.md +++ b/bindings/java/src/docs/AlpinePackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/AlpinePackageUploadRequest.md b/bindings/java/src/docs/AlpinePackageUploadRequest.md index fb0b8e27..c00c371e 100644 --- a/bindings/java/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/java/src/docs/AlpinePackageUploadRequest.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CargoPackageUpload.md b/bindings/java/src/docs/CargoPackageUpload.md index 00ebb94e..4e0eb777 100644 --- a/bindings/java/src/docs/CargoPackageUpload.md +++ b/bindings/java/src/docs/CargoPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CargoPackageUploadRequest.md b/bindings/java/src/docs/CargoPackageUploadRequest.md index 2630d5db..ad438326 100644 --- a/bindings/java/src/docs/CargoPackageUploadRequest.md +++ b/bindings/java/src/docs/CargoPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CocoapodsPackageUpload.md b/bindings/java/src/docs/CocoapodsPackageUpload.md index 85419578..f346a3b4 100644 --- a/bindings/java/src/docs/CocoapodsPackageUpload.md +++ b/bindings/java/src/docs/CocoapodsPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CocoapodsPackageUploadRequest.md b/bindings/java/src/docs/CocoapodsPackageUploadRequest.md index 0526ef3d..3348f107 100644 --- a/bindings/java/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/java/src/docs/CocoapodsPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ComposerPackageUpload.md b/bindings/java/src/docs/ComposerPackageUpload.md index bc5fd34a..5c8242d5 100644 --- a/bindings/java/src/docs/ComposerPackageUpload.md +++ b/bindings/java/src/docs/ComposerPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/ComposerPackageUploadRequest.md b/bindings/java/src/docs/ComposerPackageUploadRequest.md index e557e5c3..a97362ba 100644 --- a/bindings/java/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/java/src/docs/ComposerPackageUploadRequest.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ConanPackageUpload.md b/bindings/java/src/docs/ConanPackageUpload.md index ce708c1b..4110d5b0 100644 --- a/bindings/java/src/docs/ConanPackageUpload.md +++ b/bindings/java/src/docs/ConanPackageUpload.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/ConanPackageUploadRequest.md b/bindings/java/src/docs/ConanPackageUploadRequest.md index da033658..36824124 100644 --- a/bindings/java/src/docs/ConanPackageUploadRequest.md +++ b/bindings/java/src/docs/ConanPackageUploadRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **conanChannel** | **String** | Conan channel. | [optional] **conanPrefix** | **String** | Conan prefix (User). | [optional] **infoFile** | **String** | The info file is an python file containing the package metadata. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifestFile** | **String** | The info file is an python file containing the package metadata. | **metadataFile** | **String** | The conan file is an python file containing the package metadata. | **name** | **String** | The name of this package. | [optional] @@ -15,7 +14,6 @@ Name | Type | Description | Notes **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/CondaPackageUpload.md b/bindings/java/src/docs/CondaPackageUpload.md index 40bc64bd..88a3cfdd 100644 --- a/bindings/java/src/docs/CondaPackageUpload.md +++ b/bindings/java/src/docs/CondaPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CondaPackageUploadRequest.md b/bindings/java/src/docs/CondaPackageUploadRequest.md index 0979ca7b..5c431c9e 100644 --- a/bindings/java/src/docs/CondaPackageUploadRequest.md +++ b/bindings/java/src/docs/CondaPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ConnectedRepository.md b/bindings/java/src/docs/ConnectedRepository.md index 8902fda3..1e12a849 100644 --- a/bindings/java/src/docs/ConnectedRepository.md +++ b/bindings/java/src/docs/ConnectedRepository.md @@ -4,6 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**canViewTargetRepositorySettings** | **Boolean** | Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. | [optional] +**configuredUpstreams** | [**List<ConnectedRepositoryUpstream>**](ConnectedRepositoryUpstream.md) | The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. | [optional] **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the connection was created. | [optional] **disableReason** | [**DisableReasonEnum**](#DisableReasonEnum) | | [optional] **disableReasonText** | **String** | Human-readable explanation of why this connection is disabled. | [optional] @@ -11,6 +13,7 @@ Name | Type | Description | Notes **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. | +**targetRepositorySummary** | [**ConnectedRepositoryTargetSummary**](ConnectedRepositoryTargetSummary.md) | | [optional] diff --git a/bindings/java/src/docs/ConnectedRepositoryTargetSummary.md b/bindings/java/src/docs/ConnectedRepositoryTargetSummary.md new file mode 100644 index 00000000..e2da565c --- /dev/null +++ b/bindings/java/src/docs/ConnectedRepositoryTargetSummary.md @@ -0,0 +1,13 @@ + +# ConnectedRepositoryTargetSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isPrivate** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**packageCount** | **java.math.BigInteger** | | [optional] +**size** | **java.math.BigInteger** | | [optional] + + + diff --git a/bindings/java/src/docs/ConnectedRepositoryUpstream.md b/bindings/java/src/docs/ConnectedRepositoryUpstream.md new file mode 100644 index 00000000..8beffbb2 --- /dev/null +++ b/bindings/java/src/docs/ConnectedRepositoryUpstream.md @@ -0,0 +1,11 @@ + +# ConnectedRepositoryUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | The format/backend slug of the upstream (e.g. 'npm'). | [optional] +**upstreamUrl** | **String** | | [optional] + + + diff --git a/bindings/java/src/docs/CranPackageUpload.md b/bindings/java/src/docs/CranPackageUpload.md index 512db197..2534d850 100644 --- a/bindings/java/src/docs/CranPackageUpload.md +++ b/bindings/java/src/docs/CranPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/CranPackageUploadRequest.md b/bindings/java/src/docs/CranPackageUploadRequest.md index 65483a08..cfa0422c 100644 --- a/bindings/java/src/docs/CranPackageUploadRequest.md +++ b/bindings/java/src/docs/CranPackageUploadRequest.md @@ -5,12 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **String** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **rVersion** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DartPackageUpload.md b/bindings/java/src/docs/DartPackageUpload.md index de8da94f..951e357e 100644 --- a/bindings/java/src/docs/DartPackageUpload.md +++ b/bindings/java/src/docs/DartPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DartPackageUploadRequest.md b/bindings/java/src/docs/DartPackageUploadRequest.md index d93c4291..5c4af18f 100644 --- a/bindings/java/src/docs/DartPackageUploadRequest.md +++ b/bindings/java/src/docs/DartPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DebPackageUpload.md b/bindings/java/src/docs/DebPackageUpload.md index 6ee35d7c..ec267a69 100644 --- a/bindings/java/src/docs/DebPackageUpload.md +++ b/bindings/java/src/docs/DebPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DebPackageUploadRequest.md b/bindings/java/src/docs/DebPackageUploadRequest.md index 60cc22bb..04d791ca 100644 --- a/bindings/java/src/docs/DebPackageUploadRequest.md +++ b/bindings/java/src/docs/DebPackageUploadRequest.md @@ -7,12 +7,10 @@ Name | Type | Description | Notes **changesFile** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] **distribution** | **String** | The distribution to store the package for. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sourcesFile** | **String** | The sources archive containing the source code for the binary | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/DockerPackageUpload.md b/bindings/java/src/docs/DockerPackageUpload.md index 5976dbdb..531c33c3 100644 --- a/bindings/java/src/docs/DockerPackageUpload.md +++ b/bindings/java/src/docs/DockerPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/DockerPackageUploadRequest.md b/bindings/java/src/docs/DockerPackageUploadRequest.md index 20a1e059..7fbdf623 100644 --- a/bindings/java/src/docs/DockerPackageUploadRequest.md +++ b/bindings/java/src/docs/DockerPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/GenericPackageUpload.md b/bindings/java/src/docs/GenericPackageUpload.md index aef03b5d..abed6ad2 100644 --- a/bindings/java/src/docs/GenericPackageUpload.md +++ b/bindings/java/src/docs/GenericPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/GenericPackageUploadRequest.md b/bindings/java/src/docs/GenericPackageUploadRequest.md index 3ca2a706..d5906cee 100644 --- a/bindings/java/src/docs/GenericPackageUploadRequest.md +++ b/bindings/java/src/docs/GenericPackageUploadRequest.md @@ -5,13 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **String** | The full filepath of the package including filename. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/GoPackageUpload.md b/bindings/java/src/docs/GoPackageUpload.md index 98667c9e..34bf9c24 100644 --- a/bindings/java/src/docs/GoPackageUpload.md +++ b/bindings/java/src/docs/GoPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/GoPackageUploadRequest.md b/bindings/java/src/docs/GoPackageUploadRequest.md index e7021e80..8c8c950e 100644 --- a/bindings/java/src/docs/GoPackageUploadRequest.md +++ b/bindings/java/src/docs/GoPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HelmPackageUpload.md b/bindings/java/src/docs/HelmPackageUpload.md index fef42775..5451c568 100644 --- a/bindings/java/src/docs/HelmPackageUpload.md +++ b/bindings/java/src/docs/HelmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HelmPackageUploadRequest.md b/bindings/java/src/docs/HelmPackageUploadRequest.md index 156b27d6..739da846 100644 --- a/bindings/java/src/docs/HelmPackageUploadRequest.md +++ b/bindings/java/src/docs/HelmPackageUploadRequest.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **provenanceFile** | **String** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HexPackageUpload.md b/bindings/java/src/docs/HexPackageUpload.md index 36b17683..50834438 100644 --- a/bindings/java/src/docs/HexPackageUpload.md +++ b/bindings/java/src/docs/HexPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HexPackageUploadRequest.md b/bindings/java/src/docs/HexPackageUploadRequest.md index 88e262c4..cee3d8b0 100644 --- a/bindings/java/src/docs/HexPackageUploadRequest.md +++ b/bindings/java/src/docs/HexPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/HuggingfacePackageUpload.md b/bindings/java/src/docs/HuggingfacePackageUpload.md index c41e341e..f53ee579 100644 --- a/bindings/java/src/docs/HuggingfacePackageUpload.md +++ b/bindings/java/src/docs/HuggingfacePackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md index 9926221e..c3f612f2 100644 --- a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/LuarocksPackageUpload.md b/bindings/java/src/docs/LuarocksPackageUpload.md index 986a8a86..9f455f80 100644 --- a/bindings/java/src/docs/LuarocksPackageUpload.md +++ b/bindings/java/src/docs/LuarocksPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/LuarocksPackageUploadRequest.md b/bindings/java/src/docs/LuarocksPackageUploadRequest.md index 1a8aa267..0646761b 100644 --- a/bindings/java/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/java/src/docs/LuarocksPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/MavenPackageUpload.md b/bindings/java/src/docs/MavenPackageUpload.md index 0fe81809..e664f6fa 100644 --- a/bindings/java/src/docs/MavenPackageUpload.md +++ b/bindings/java/src/docs/MavenPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -97,7 +97,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/MavenPackageUploadRequest.md b/bindings/java/src/docs/MavenPackageUploadRequest.md index 1bbcb413..83c9acf8 100644 --- a/bindings/java/src/docs/MavenPackageUploadRequest.md +++ b/bindings/java/src/docs/MavenPackageUploadRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **artifactId** | **String** | The ID of the artifact. | [optional] **extraFiles** | **List<String>** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **groupId** | **String** | Artifact's group ID. | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivyFile** | **String** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadocFile** | **String** | Adds bundled Java documentation to the Maven package | [optional] **packageFile** | **String** | The primary file for the package. | @@ -20,7 +19,6 @@ Name | Type | Description | Notes **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **testsFile** | **String** | Adds bundled Java tests to the Maven package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/McpPackageUpload.md b/bindings/java/src/docs/McpPackageUpload.md index 4048652b..38a73bcb 100644 --- a/bindings/java/src/docs/McpPackageUpload.md +++ b/bindings/java/src/docs/McpPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/McpPackageUploadRequest.md b/bindings/java/src/docs/McpPackageUploadRequest.md index d72470cf..7913223c 100644 --- a/bindings/java/src/docs/McpPackageUploadRequest.md +++ b/bindings/java/src/docs/McpPackageUploadRequest.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/ModelPackage.md b/bindings/java/src/docs/ModelPackage.md index ad032154..3c9e352b 100644 --- a/bindings/java/src/docs/ModelPackage.md +++ b/bindings/java/src/docs/ModelPackage.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] diff --git a/bindings/java/src/docs/NixPackageUpload.md b/bindings/java/src/docs/NixPackageUpload.md index 753f6b71..8119a62c 100644 --- a/bindings/java/src/docs/NixPackageUpload.md +++ b/bindings/java/src/docs/NixPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NixPackageUploadRequest.md b/bindings/java/src/docs/NixPackageUploadRequest.md index eab4da3e..629e5b60 100644 --- a/bindings/java/src/docs/NixPackageUploadRequest.md +++ b/bindings/java/src/docs/NixPackageUploadRequest.md @@ -4,13 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **narinfoFile** | **String** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/NpmPackageUpload.md b/bindings/java/src/docs/NpmPackageUpload.md index 54521858..2aad2340 100644 --- a/bindings/java/src/docs/NpmPackageUpload.md +++ b/bindings/java/src/docs/NpmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NpmPackageUploadRequest.md b/bindings/java/src/docs/NpmPackageUploadRequest.md index 4ce3a24c..b3f94c1e 100644 --- a/bindings/java/src/docs/NpmPackageUploadRequest.md +++ b/bindings/java/src/docs/NpmPackageUploadRequest.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npmDistTag** | **String** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/NugetPackageUpload.md b/bindings/java/src/docs/NugetPackageUpload.md index 973f6afc..5e31f29f 100644 --- a/bindings/java/src/docs/NugetPackageUpload.md +++ b/bindings/java/src/docs/NugetPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NugetPackageUploadRequest.md b/bindings/java/src/docs/NugetPackageUploadRequest.md index e8475acf..53795056 100644 --- a/bindings/java/src/docs/NugetPackageUploadRequest.md +++ b/bindings/java/src/docs/NugetPackageUploadRequest.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbolsFile** | **String** | Uploads a symbols file as a separate package | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/OrganizationApiKeyRule.md b/bindings/java/src/docs/OrganizationApiKeyRule.md new file mode 100644 index 00000000..7b3b9c1a --- /dev/null +++ b/bindings/java/src/docs/OrganizationApiKeyRule.md @@ -0,0 +1,27 @@ + +# OrganizationApiKeyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**enforceRefresh** | **Boolean** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**isEnabled** | **Boolean** | Whether this rule is currently active and enforced. | [optional] +**lastAppliedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The last time this rule was evaluated and applied by the expiry task. | [optional] +**maxAgeHours** | **java.math.BigInteger** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**ruleType** | [**RuleTypeEnum**](#RuleTypeEnum) | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | +**slug** | **String** | Human-readable identifier for the rule type. Automatically generated based on the rule type. | [optional] +**slugPerm** | **String** | An auto-generated id that uniquely identifies the API key policy. | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + +## Enum: RuleTypeEnum +Name | Value +---- | ----- +ALL_ACCOUNTS | "All Accounts" +SERVICE_ACCOUNTS | "Service Accounts" +USER_ACCOUNTS | "User Accounts" + + + diff --git a/bindings/java/src/docs/OrganizationApiKeyRuleRequest.md b/bindings/java/src/docs/OrganizationApiKeyRuleRequest.md new file mode 100644 index 00000000..e8e45133 --- /dev/null +++ b/bindings/java/src/docs/OrganizationApiKeyRuleRequest.md @@ -0,0 +1,23 @@ + +# OrganizationApiKeyRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforceRefresh** | **Boolean** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**isEnabled** | **Boolean** | Whether this rule is currently active and enforced. | [optional] +**maxAgeHours** | **java.math.BigInteger** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refreshImmediately** | **Boolean** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**ruleType** | [**RuleTypeEnum**](#RuleTypeEnum) | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | + + + +## Enum: RuleTypeEnum +Name | Value +---- | ----- +ALL_ACCOUNTS | "All Accounts" +SERVICE_ACCOUNTS | "Service Accounts" +USER_ACCOUNTS | "User Accounts" + + + diff --git a/bindings/java/src/docs/OrganizationApiKeyRuleRequestPatch.md b/bindings/java/src/docs/OrganizationApiKeyRuleRequestPatch.md new file mode 100644 index 00000000..32751c0f --- /dev/null +++ b/bindings/java/src/docs/OrganizationApiKeyRuleRequestPatch.md @@ -0,0 +1,23 @@ + +# OrganizationApiKeyRuleRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforceRefresh** | **Boolean** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**isEnabled** | **Boolean** | Whether this rule is currently active and enforced. | [optional] +**maxAgeHours** | **java.math.BigInteger** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refreshImmediately** | **Boolean** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**ruleType** | [**RuleTypeEnum**](#RuleTypeEnum) | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | [optional] + + + +## Enum: RuleTypeEnum +Name | Value +---- | ----- +ALL_ACCOUNTS | "All Accounts" +SERVICE_ACCOUNTS | "Service Accounts" +USER_ACCOUNTS | "User Accounts" + + + diff --git a/bindings/java/src/docs/OrgsApi.md b/bindings/java/src/docs/OrgsApi.md index a2d22cf4..00ff849f 100644 --- a/bindings/java/src/docs/OrgsApi.md +++ b/bindings/java/src/docs/OrgsApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgsApiKeyRulesCreate**](OrgsApi.md#orgsApiKeyRulesCreate) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +[**orgsApiKeyRulesDelete**](OrgsApi.md#orgsApiKeyRulesDelete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +[**orgsApiKeyRulesList**](OrgsApi.md#orgsApiKeyRulesList) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +[**orgsApiKeyRulesPartialUpdate**](OrgsApi.md#orgsApiKeyRulesPartialUpdate) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +[**orgsApiKeyRulesRead**](OrgsApi.md#orgsApiKeyRulesRead) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +[**orgsApiKeyRulesUpdate**](OrgsApi.md#orgsApiKeyRulesUpdate) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. [**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. @@ -82,6 +88,379 @@ Method | HTTP request | Description [**orgsVulnerabilityPolicyViolationList**](OrgsApi.md#orgsVulnerabilityPolicyViolationList) | **GET** /orgs/{org}/vulnerability-policy-violation/ | List all current vulnerability policy violations for this Organization. + +# **orgsApiKeyRulesCreate** +> OrganizationApiKeyRule orgsApiKeyRulesCreate(org, data) + +Create an API key rule. + +Create an API key rule. + +### 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 | +OrganizationApiKeyRuleRequest data = new OrganizationApiKeyRuleRequest(); // OrganizationApiKeyRuleRequest | +try { + OrganizationApiKeyRule result = apiInstance.orgsApiKeyRulesCreate(org, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsApiKeyRulesDelete** +> orgsApiKeyRulesDelete(org, slugPerm) + +Delete an API key rule. + +Delete an API key rule. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + apiInstance.orgsApiKeyRulesDelete(org, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesDelete"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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 + + +# **orgsApiKeyRulesList** +> List<OrganizationApiKeyRule> orgsApiKeyRulesList(org) + +List all API key rules for the organization. + +List all API key rules for the organization. + +### 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 | +try { + List result = apiInstance.orgsApiKeyRulesList(org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + +### Return type + +[**List<OrganizationApiKeyRule>**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsApiKeyRulesPartialUpdate** +> OrganizationApiKeyRule orgsApiKeyRulesPartialUpdate(org, slugPerm, data) + +Update an API key rule. + +Update an API key rule. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String slugPerm = "slugPerm_example"; // String | +OrganizationApiKeyRuleRequestPatch data = new OrganizationApiKeyRuleRequestPatch(); // OrganizationApiKeyRuleRequestPatch | +try { + OrganizationApiKeyRule result = apiInstance.orgsApiKeyRulesPartialUpdate(org, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slugPerm** | **String**| | + **data** | [**OrganizationApiKeyRuleRequestPatch**](OrganizationApiKeyRuleRequestPatch.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsApiKeyRulesRead** +> OrganizationApiKeyRule orgsApiKeyRulesRead(org, slugPerm) + +Retrieve an API key rule. + +Retrieve an API key rule. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + OrganizationApiKeyRule result = apiInstance.orgsApiKeyRulesRead(org, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **orgsApiKeyRulesUpdate** +> OrganizationApiKeyRule orgsApiKeyRulesUpdate(org, slugPerm, data) + +Full update of an API key rule. + +Full update of an API key rule. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.OrgsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +OrgsApi apiInstance = new OrgsApi(); +String org = "org_example"; // String | +String slugPerm = "slugPerm_example"; // String | +OrganizationApiKeyRuleRequest data = new OrganizationApiKeyRuleRequest(); // OrganizationApiKeyRuleRequest | +try { + OrganizationApiKeyRule result = apiInstance.orgsApiKeyRulesUpdate(org, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrgsApi#orgsApiKeyRulesUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slugPerm** | **String**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **orgsCustomDomainsList** > List<OrganizationCustomDomains> orgsCustomDomainsList(org, page, pageSize) diff --git a/bindings/java/src/docs/P2PackageUpload.md b/bindings/java/src/docs/P2PackageUpload.md index 0bd6ee08..d83998de 100644 --- a/bindings/java/src/docs/P2PackageUpload.md +++ b/bindings/java/src/docs/P2PackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/P2PackageUploadRequest.md b/bindings/java/src/docs/P2PackageUploadRequest.md index 4404a853..3c011cc4 100644 --- a/bindings/java/src/docs/P2PackageUploadRequest.md +++ b/bindings/java/src/docs/P2PackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageCopy.md b/bindings/java/src/docs/PackageCopy.md index ab4b31cb..670cfb6e 100644 --- a/bindings/java/src/docs/PackageCopy.md +++ b/bindings/java/src/docs/PackageCopy.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageCopyRequest.md b/bindings/java/src/docs/PackageCopyRequest.md index 94d6a0bf..8b0c3349 100644 --- a/bindings/java/src/docs/PackageCopyRequest.md +++ b/bindings/java/src/docs/PackageCopyRequest.md @@ -5,9 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **Boolean** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageDetail.md b/bindings/java/src/docs/PackageDetail.md index 5f058880..7b181bee 100644 --- a/bindings/java/src/docs/PackageDetail.md +++ b/bindings/java/src/docs/PackageDetail.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] diff --git a/bindings/java/src/docs/PackageLicense.md b/bindings/java/src/docs/PackageLicense.md index 2b18b819..74ce2a1b 100644 --- a/bindings/java/src/docs/PackageLicense.md +++ b/bindings/java/src/docs/PackageLicense.md @@ -4,12 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseNotes** | **String** | | [optional] **licenseOverride** | [**LicenseOverrideEnum**](#LicenseOverrideEnum) | | [optional] **licenseUrl** | **String** | | [optional] **spdxLicense** | **String** | | -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageLicenseRequestPatch.md b/bindings/java/src/docs/PackageLicenseRequestPatch.md index 8c3868c4..b559812b 100644 --- a/bindings/java/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/java/src/docs/PackageLicenseRequestPatch.md @@ -5,12 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseNotes** | **String** | | [optional] **licenseOverride** | [**LicenseOverrideEnum**](#LicenseOverrideEnum) | | [optional] **licenseUrl** | **String** | | [optional] **spdxLicense** | **String** | | -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageMove.md b/bindings/java/src/docs/PackageMove.md index 62a69528..b6572963 100644 --- a/bindings/java/src/docs/PackageMove.md +++ b/bindings/java/src/docs/PackageMove.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageMoveRequest.md b/bindings/java/src/docs/PackageMoveRequest.md index 7e8bf7cd..b19321e3 100644 --- a/bindings/java/src/docs/PackageMoveRequest.md +++ b/bindings/java/src/docs/PackageMoveRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageQuarantine.md b/bindings/java/src/docs/PackageQuarantine.md index dbad374c..dd66c4e0 100644 --- a/bindings/java/src/docs/PackageQuarantine.md +++ b/bindings/java/src/docs/PackageQuarantine.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageQuarantineRequest.md b/bindings/java/src/docs/PackageQuarantineRequest.md index 3daffe64..ba057859 100644 --- a/bindings/java/src/docs/PackageQuarantineRequest.md +++ b/bindings/java/src/docs/PackageQuarantineRequest.md @@ -4,10 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **Boolean** | If true, the package is released from quarantine. | [optional] **restore** | **Boolean** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageResync.md b/bindings/java/src/docs/PackageResync.md index fc8eb469..658fbd18 100644 --- a/bindings/java/src/docs/PackageResync.md +++ b/bindings/java/src/docs/PackageResync.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageTag.md b/bindings/java/src/docs/PackageTag.md index e2d05d8c..3d970027 100644 --- a/bindings/java/src/docs/PackageTag.md +++ b/bindings/java/src/docs/PackageTag.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **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] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -94,7 +94,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PackageTagRequest.md b/bindings/java/src/docs/PackageTagRequest.md index 004c5341..b2162981 100644 --- a/bindings/java/src/docs/PackageTagRequest.md +++ b/bindings/java/src/docs/PackageTagRequest.md @@ -6,9 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | [optional] **isImmutable** | **Boolean** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **List<String>** | A list of tags to apply the action to. Not required for clears. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackageVulnerability.md b/bindings/java/src/docs/PackageVulnerability.md index 7108ce56..eabbaeb6 100644 --- a/bindings/java/src/docs/PackageVulnerability.md +++ b/bindings/java/src/docs/PackageVulnerability.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **String** | | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/PackagesApi.md b/bindings/java/src/docs/PackagesApi.md index d766920e..9af7e48a 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -386,7 +386,7 @@ String repo = "repo_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. Boolean includeConnectedRepositories = false; // Boolean | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. -String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. +String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. String sort = "-date"; // String | A field for sorting objects in ascending or descending order. try { List result = apiInstance.packagesList(owner, repo, page, pageSize, includeConnectedRepositories, query, sort); @@ -406,7 +406,7 @@ Name | Type | Description | Notes **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] **includeConnectedRepositories** | **Boolean**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] - **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] + **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] ### Return type diff --git a/bindings/java/src/docs/PythonPackageUpload.md b/bindings/java/src/docs/PythonPackageUpload.md index bd8503bf..ebd9d0eb 100644 --- a/bindings/java/src/docs/PythonPackageUpload.md +++ b/bindings/java/src/docs/PythonPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/PythonPackageUploadRequest.md b/bindings/java/src/docs/PythonPackageUploadRequest.md index 8ee014a6..7b1fd06e 100644 --- a/bindings/java/src/docs/PythonPackageUploadRequest.md +++ b/bindings/java/src/docs/PythonPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RawPackageUpload.md b/bindings/java/src/docs/RawPackageUpload.md index 8fb64be0..baf0c839 100644 --- a/bindings/java/src/docs/RawPackageUpload.md +++ b/bindings/java/src/docs/RawPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RawPackageUploadRequest.md b/bindings/java/src/docs/RawPackageUploadRequest.md index 1248040d..b3f8d245 100644 --- a/bindings/java/src/docs/RawPackageUploadRequest.md +++ b/bindings/java/src/docs/RawPackageUploadRequest.md @@ -6,14 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **contentType** | **String** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **String** | A textual description of this package. | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RpmPackageUpload.md b/bindings/java/src/docs/RpmPackageUpload.md index 14d1abdd..996bb7b5 100644 --- a/bindings/java/src/docs/RpmPackageUpload.md +++ b/bindings/java/src/docs/RpmPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RpmPackageUploadRequest.md b/bindings/java/src/docs/RpmPackageUploadRequest.md index 3535d883..b8f5b131 100644 --- a/bindings/java/src/docs/RpmPackageUploadRequest.md +++ b/bindings/java/src/docs/RpmPackageUploadRequest.md @@ -5,11 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/RubyPackageUpload.md b/bindings/java/src/docs/RubyPackageUpload.md index 739c266f..6e725614 100644 --- a/bindings/java/src/docs/RubyPackageUpload.md +++ b/bindings/java/src/docs/RubyPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/RubyPackageUploadRequest.md b/bindings/java/src/docs/RubyPackageUploadRequest.md index 87c31cee..8334a937 100644 --- a/bindings/java/src/docs/RubyPackageUploadRequest.md +++ b/bindings/java/src/docs/RubyPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/SwiftPackageUpload.md b/bindings/java/src/docs/SwiftPackageUpload.md index cf3cb253..c1b261b6 100644 --- a/bindings/java/src/docs/SwiftPackageUpload.md +++ b/bindings/java/src/docs/SwiftPackageUpload.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -35,7 +36,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -97,7 +97,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/SwiftPackageUploadRequest.md b/bindings/java/src/docs/SwiftPackageUploadRequest.md index a2adb852..e88e2522 100644 --- a/bindings/java/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/java/src/docs/SwiftPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **authorName** | **String** | The name of the author of the package. | [optional] **authorOrg** | **String** | The organization of the author. | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **licenseUrl** | **String** | The license URL of this package. | [optional] **name** | **String** | The name of this package. | **packageFile** | **String** | The primary file for the package. | @@ -16,7 +15,6 @@ Name | Type | Description | Notes **scope** | **String** | A scope provides a namespace for related packages within the package registry. | **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/TerraformPackageUpload.md b/bindings/java/src/docs/TerraformPackageUpload.md index 0bd7c42d..d50b5f04 100644 --- a/bindings/java/src/docs/TerraformPackageUpload.md +++ b/bindings/java/src/docs/TerraformPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/TerraformPackageUploadRequest.md b/bindings/java/src/docs/TerraformPackageUploadRequest.md index a0ed0526..f7156034 100644 --- a/bindings/java/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/java/src/docs/TerraformPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/VagrantPackageUpload.md b/bindings/java/src/docs/VagrantPackageUpload.md index d257fbb4..34a53658 100644 --- a/bindings/java/src/docs/VagrantPackageUpload.md +++ b/bindings/java/src/docs/VagrantPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/VagrantPackageUploadRequest.md b/bindings/java/src/docs/VagrantPackageUploadRequest.md index 59a617d1..ec4a6fed 100644 --- a/bindings/java/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/java/src/docs/VagrantPackageUploadRequest.md @@ -4,14 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | **packageFile** | **String** | The primary file for the package. | **provider** | **String** | The virtual machine provider for the box. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/docs/VsxPackageUpload.md b/bindings/java/src/docs/VsxPackageUpload.md index 6529742d..8edafc86 100644 --- a/bindings/java/src/docs/VsxPackageUpload.md +++ b/bindings/java/src/docs/VsxPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependenciesUrl** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **displayName** | **String** | | [optional] +**displaySource** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **java.math.BigInteger** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **isDeleteable** | **Boolean** | | [optional] **isDownloadable** | **Boolean** | | [optional] **isHidden** | **Boolean** | | [optional] -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isMoveable** | **Boolean** | | [optional] **isQuarantinable** | **Boolean** | | [optional] **isQuarantined** | **Boolean** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/VsxPackageUploadRequest.md b/bindings/java/src/docs/VsxPackageUploadRequest.md index 9cd6a0c3..4befe199 100644 --- a/bindings/java/src/docs/VsxPackageUploadRequest.md +++ b/bindings/java/src/docs/VsxPackageUploadRequest.md @@ -4,11 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 35f55e5d..9b484091 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.32 + 2.0.33 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 7bc09929..806400ce 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.32/java"); + setUserAgent("Swagger-Codegen/2.0.33/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); 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 65faf76a..8f390b2f 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 @@ -41,6 +41,9 @@ import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.Organization; +import io.cloudsmith.api.models.OrganizationApiKeyRule; +import io.cloudsmith.api.models.OrganizationApiKeyRuleRequest; +import io.cloudsmith.api.models.OrganizationApiKeyRuleRequestPatch; import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; import io.cloudsmith.api.models.OrganizationGroupSyncRequest; @@ -114,6 +117,874 @@ public void setHeadersOverrides(Map headers) { this.headers = headers; } + /** + * Build call for orgsApiKeyRulesCreate + * @param org (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 orgsApiKeyRulesCreateCall(String org, OrganizationApiKeyRuleRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesCreateValidateBeforeCall(String org, OrganizationApiKeyRuleRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, data }; + Method method = this.getClass().getMethod("orgsApiKeyRulesCreateWithHttpInfo", String.class, OrganizationApiKeyRuleRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesCreateCall(org, 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 an API key rule. + * Create an API key rule. + * @param org (required) + * @param data (optional) + * @return OrganizationApiKeyRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public OrganizationApiKeyRule orgsApiKeyRulesCreate(String org, OrganizationApiKeyRuleRequest data) throws ApiException { + ApiResponse resp = orgsApiKeyRulesCreateWithHttpInfo(org, data); + return resp.getData(); + } + + /** + * Create an API key rule. + * Create an API key rule. + * @param org (required) + * @param data (optional) + * @return ApiResponse<OrganizationApiKeyRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsApiKeyRulesCreateWithHttpInfo( @NotNull String org, OrganizationApiKeyRuleRequest data) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesCreateValidateBeforeCall(org, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create an API key rule. (asynchronously) + * Create an API key rule. + * @param org (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 orgsApiKeyRulesCreateAsync(String org, OrganizationApiKeyRuleRequest 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 = orgsApiKeyRulesCreateValidateBeforeCall(org, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for orgsApiKeyRulesDelete + * @param org (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 orgsApiKeyRulesDeleteCall(String org, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/{slug_perm}/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesDeleteValidateBeforeCall(String org, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, slugPerm }; + Method method = this.getClass().getMethod("orgsApiKeyRulesDeleteWithHttpInfo", String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesDeleteCall(org, 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 an API key rule. + * Delete an API key rule. + * @param org (required) + * @param slugPerm (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void orgsApiKeyRulesDelete(String org, String slugPerm) throws ApiException { + orgsApiKeyRulesDeleteWithHttpInfo(org, slugPerm); + } + + /** + * Delete an API key rule. + * Delete an API key rule. + * @param org (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 orgsApiKeyRulesDeleteWithHttpInfo( @NotNull String org, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesDeleteValidateBeforeCall(org, slugPerm, null, null); + return apiClient.execute(call); + } + + /** + * Delete an API key rule. (asynchronously) + * Delete an API key rule. + * @param org (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 orgsApiKeyRulesDeleteAsync(String org, 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 = orgsApiKeyRulesDeleteValidateBeforeCall(org, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for orgsApiKeyRulesList + * @param org (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 orgsApiKeyRulesListCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesListValidateBeforeCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org }; + Method method = this.getClass().getMethod("orgsApiKeyRulesListWithHttpInfo", String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesListCall(org, 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 all API key rules for the organization. + * List all API key rules for the organization. + * @param org (required) + * @return List<OrganizationApiKeyRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List orgsApiKeyRulesList(String org) throws ApiException { + ApiResponse> resp = orgsApiKeyRulesListWithHttpInfo(org); + return resp.getData(); + } + + /** + * List all API key rules for the organization. + * List all API key rules for the organization. + * @param org (required) + * @return ApiResponse<List<OrganizationApiKeyRule>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> orgsApiKeyRulesListWithHttpInfo( @NotNull String org) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesListValidateBeforeCall(org, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List all API key rules for the organization. (asynchronously) + * List all API key rules for the organization. + * @param org (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 orgsApiKeyRulesListAsync(String org, 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 = orgsApiKeyRulesListValidateBeforeCall(org, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for orgsApiKeyRulesPartialUpdate + * @param org (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 orgsApiKeyRulesPartialUpdateCall(String org, String slugPerm, OrganizationApiKeyRuleRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/{slug_perm}/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesPartialUpdateValidateBeforeCall(String org, String slugPerm, OrganizationApiKeyRuleRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, slugPerm, data }; + Method method = this.getClass().getMethod("orgsApiKeyRulesPartialUpdateWithHttpInfo", String.class, String.class, OrganizationApiKeyRuleRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesPartialUpdateCall(org, 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 an API key rule. + * Update an API key rule. + * @param org (required) + * @param slugPerm (required) + * @param data (optional) + * @return OrganizationApiKeyRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public OrganizationApiKeyRule orgsApiKeyRulesPartialUpdate(String org, String slugPerm, OrganizationApiKeyRuleRequestPatch data) throws ApiException { + ApiResponse resp = orgsApiKeyRulesPartialUpdateWithHttpInfo(org, slugPerm, data); + return resp.getData(); + } + + /** + * Update an API key rule. + * Update an API key rule. + * @param org (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<OrganizationApiKeyRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsApiKeyRulesPartialUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, OrganizationApiKeyRuleRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesPartialUpdateValidateBeforeCall(org, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update an API key rule. (asynchronously) + * Update an API key rule. + * @param org (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 orgsApiKeyRulesPartialUpdateAsync(String org, String slugPerm, OrganizationApiKeyRuleRequestPatch 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 = orgsApiKeyRulesPartialUpdateValidateBeforeCall(org, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for orgsApiKeyRulesRead + * @param org (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 orgsApiKeyRulesReadCall(String org, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/{slug_perm}/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesReadValidateBeforeCall(String org, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, slugPerm }; + Method method = this.getClass().getMethod("orgsApiKeyRulesReadWithHttpInfo", String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesReadCall(org, 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 an API key rule. + * Retrieve an API key rule. + * @param org (required) + * @param slugPerm (required) + * @return OrganizationApiKeyRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public OrganizationApiKeyRule orgsApiKeyRulesRead(String org, String slugPerm) throws ApiException { + ApiResponse resp = orgsApiKeyRulesReadWithHttpInfo(org, slugPerm); + return resp.getData(); + } + + /** + * Retrieve an API key rule. + * Retrieve an API key rule. + * @param org (required) + * @param slugPerm (required) + * @return ApiResponse<OrganizationApiKeyRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsApiKeyRulesReadWithHttpInfo( @NotNull String org, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesReadValidateBeforeCall(org, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve an API key rule. (asynchronously) + * Retrieve an API key rule. + * @param org (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 orgsApiKeyRulesReadAsync(String org, 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 = orgsApiKeyRulesReadValidateBeforeCall(org, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for orgsApiKeyRulesUpdate + * @param org (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 orgsApiKeyRulesUpdateCall(String org, String slugPerm, OrganizationApiKeyRuleRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/orgs/{org}/api-key-rules/{slug_perm}/" + .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.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 orgsApiKeyRulesUpdateValidateBeforeCall(String org, String slugPerm, OrganizationApiKeyRuleRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { org, slugPerm, data }; + Method method = this.getClass().getMethod("orgsApiKeyRulesUpdateWithHttpInfo", String.class, String.class, OrganizationApiKeyRuleRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = orgsApiKeyRulesUpdateCall(org, 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()); + } + + } + + /** + * Full update of an API key rule. + * Full update of an API key rule. + * @param org (required) + * @param slugPerm (required) + * @param data (optional) + * @return OrganizationApiKeyRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public OrganizationApiKeyRule orgsApiKeyRulesUpdate(String org, String slugPerm, OrganizationApiKeyRuleRequest data) throws ApiException { + ApiResponse resp = orgsApiKeyRulesUpdateWithHttpInfo(org, slugPerm, data); + return resp.getData(); + } + + /** + * Full update of an API key rule. + * Full update of an API key rule. + * @param org (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<OrganizationApiKeyRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse orgsApiKeyRulesUpdateWithHttpInfo( @NotNull String org, @NotNull String slugPerm, OrganizationApiKeyRuleRequest data) throws ApiException { + com.squareup.okhttp.Call call = orgsApiKeyRulesUpdateValidateBeforeCall(org, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Full update of an API key rule. (asynchronously) + * Full update of an API key rule. + * @param org (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 orgsApiKeyRulesUpdateAsync(String org, String slugPerm, OrganizationApiKeyRuleRequest 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 = orgsApiKeyRulesUpdateValidateBeforeCall(org, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for orgsCustomDomainsList * @param org (required) diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index 021bbb1a..27c490c5 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java @@ -791,7 +791,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @param progressListener Progress listener * @param progressRequestListener Progress request listener @@ -890,7 +890,7 @@ private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, St * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @return List<ModelPackage> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -908,7 +908,7 @@ public List packagesList(String owner, String repo, java.math.BigI * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @return ApiResponse<List<ModelPackage>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -927,7 +927,7 @@ public ApiResponse> packagesListWithHttpInfo( @NotNull String * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) * @param includeConnectedRepositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional, default to false) - * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional, default to ) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional, default to ) * @param sort A field for sorting objects in ascending or descending order. (optional, default to -date) * @param callback The callback to be executed when the API call finishes * @return The request 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 62c5bb83..bed33ff0 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class AlpinePackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class AlpinePackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public AlpinePackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public AlpinePackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, alpinePackageUpload.dependenciesUrl) && Objects.equals(this.description, alpinePackageUpload.description) && Objects.equals(this.displayName, alpinePackageUpload.displayName) && + Objects.equals(this.displaySource, alpinePackageUpload.displaySource) && Objects.equals(this.distro, alpinePackageUpload.distro) && Objects.equals(this.distroVersion, alpinePackageUpload.distroVersion) && Objects.equals(this.downloads, alpinePackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, alpinePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, alpinePackageUpload.isDownloadable) && Objects.equals(this.isHidden, alpinePackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, alpinePackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, alpinePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, alpinePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, alpinePackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, alpinePackageUpload.uploaderUrl) && Objects.equals(this.version, alpinePackageUpload.version) && Objects.equals(this.versionOrig, alpinePackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, alpinePackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, alpinePackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java index ec816af0..20cc88e2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,9 +37,6 @@ public class AlpinePackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,9 +46,6 @@ public class AlpinePackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public AlpinePackageUploadRequest distribution(String distribution) { this.distribution = distribution; return this; @@ -72,15 +65,6 @@ public void setDistribution(String distribution) { this.distribution = distribution; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public AlpinePackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -136,25 +120,6 @@ public void setTags(String tags) { this.tags = tags; } - public AlpinePackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -166,16 +131,14 @@ public boolean equals(java.lang.Object o) { } AlpinePackageUploadRequest alpinePackageUploadRequest = (AlpinePackageUploadRequest) o; return Objects.equals(this.distribution, alpinePackageUploadRequest.distribution) && - Objects.equals(this.isMalwareDetected, alpinePackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, alpinePackageUploadRequest.packageFile) && Objects.equals(this.republish, alpinePackageUploadRequest.republish) && - Objects.equals(this.tags, alpinePackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, alpinePackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, alpinePackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(distribution, packageFile, republish, tags); } @@ -185,11 +148,9 @@ public String toString() { sb.append("class AlpinePackageUploadRequest {\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 b9df41be..72394bd4 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class CargoPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class CargoPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public CargoPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public CargoPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, cargoPackageUpload.dependenciesUrl) && Objects.equals(this.description, cargoPackageUpload.description) && Objects.equals(this.displayName, cargoPackageUpload.displayName) && + Objects.equals(this.displaySource, cargoPackageUpload.displaySource) && Objects.equals(this.distro, cargoPackageUpload.distro) && Objects.equals(this.distroVersion, cargoPackageUpload.distroVersion) && Objects.equals(this.downloads, cargoPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cargoPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cargoPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cargoPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, cargoPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cargoPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cargoPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cargoPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, cargoPackageUpload.uploaderUrl) && Objects.equals(this.version, cargoPackageUpload.version) && Objects.equals(this.versionOrig, cargoPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, cargoPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cargoPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java index eeaade10..6d565170 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class CargoPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class CargoPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public CargoPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public CargoPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } CargoPackageUploadRequest cargoPackageUploadRequest = (CargoPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, cargoPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && Objects.equals(this.republish, cargoPackageUploadRequest.republish) && - Objects.equals(this.tags, cargoPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, cargoPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, cargoPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CargoPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 4881fb1b..b85696f1 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class CocoapodsPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class CocoapodsPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public CocoapodsPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public CocoapodsPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, cocoapodsPackageUpload.dependenciesUrl) && Objects.equals(this.description, cocoapodsPackageUpload.description) && Objects.equals(this.displayName, cocoapodsPackageUpload.displayName) && + Objects.equals(this.displaySource, cocoapodsPackageUpload.displaySource) && Objects.equals(this.distro, cocoapodsPackageUpload.distro) && Objects.equals(this.distroVersion, cocoapodsPackageUpload.distroVersion) && Objects.equals(this.downloads, cocoapodsPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cocoapodsPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cocoapodsPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cocoapodsPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, cocoapodsPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cocoapodsPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cocoapodsPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cocoapodsPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, cocoapodsPackageUpload.uploaderUrl) && Objects.equals(this.version, cocoapodsPackageUpload.version) && Objects.equals(this.versionOrig, cocoapodsPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, cocoapodsPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cocoapodsPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java index 085fcc65..db2816f5 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CocoapodsPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class CocoapodsPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class CocoapodsPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public CocoapodsPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public CocoapodsPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } CocoapodsPackageUploadRequest cocoapodsPackageUploadRequest = (CocoapodsPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, cocoapodsPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && Objects.equals(this.republish, cocoapodsPackageUploadRequest.republish) && - Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, cocoapodsPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CocoapodsPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 cb6ff932..26e67d24 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class ComposerPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class ComposerPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public ComposerPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1225,25 +1221,6 @@ public String getVersionOrig() { return versionOrig; } - public ComposerPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1273,6 +1250,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, composerPackageUpload.dependenciesUrl) && Objects.equals(this.description, composerPackageUpload.description) && Objects.equals(this.displayName, composerPackageUpload.displayName) && + Objects.equals(this.displaySource, composerPackageUpload.displaySource) && Objects.equals(this.distro, composerPackageUpload.distro) && Objects.equals(this.distroVersion, composerPackageUpload.distroVersion) && Objects.equals(this.downloads, composerPackageUpload.downloads) && @@ -1292,7 +1270,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, composerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, composerPackageUpload.isDownloadable) && Objects.equals(this.isHidden, composerPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, composerPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, composerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, composerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, composerPackageUpload.isQuarantined) && @@ -1351,13 +1328,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, composerPackageUpload.uploaderUrl) && Objects.equals(this.version, composerPackageUpload.version) && Objects.equals(this.versionOrig, composerPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, composerPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, composerPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1376,6 +1352,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1395,7 +1372,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1454,7 +1430,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java index 80cb7485..bffbeaea 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ComposerPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class ComposerPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,18 +46,6 @@ public class ComposerPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public ComposerPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -135,25 +119,6 @@ public void setVersion(String version) { this.version = version; } - public ComposerPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -164,17 +129,15 @@ public boolean equals(java.lang.Object o) { return false; } ComposerPackageUploadRequest composerPackageUploadRequest = (ComposerPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, composerPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, composerPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, composerPackageUploadRequest.packageFile) && Objects.equals(this.republish, composerPackageUploadRequest.republish) && Objects.equals(this.tags, composerPackageUploadRequest.tags) && - Objects.equals(this.version, composerPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, composerPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, composerPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags, version); } @@ -183,12 +146,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ComposerPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 e63897fe..bd7f234a 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -81,6 +80,9 @@ public class ConanPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -138,9 +140,6 @@ public class ConanPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -374,9 +373,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -507,6 +503,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public ConanPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -699,15 +704,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1276,25 +1272,6 @@ public String getVersionOrig() { return versionOrig; } - public ConanPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1326,6 +1303,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, conanPackageUpload.dependenciesUrl) && Objects.equals(this.description, conanPackageUpload.description) && Objects.equals(this.displayName, conanPackageUpload.displayName) && + Objects.equals(this.displaySource, conanPackageUpload.displaySource) && Objects.equals(this.distro, conanPackageUpload.distro) && Objects.equals(this.distroVersion, conanPackageUpload.distroVersion) && Objects.equals(this.downloads, conanPackageUpload.downloads) && @@ -1345,7 +1323,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, conanPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, conanPackageUpload.isDownloadable) && Objects.equals(this.isHidden, conanPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, conanPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, conanPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, conanPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, conanPackageUpload.isQuarantined) && @@ -1404,13 +1381,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, conanPackageUpload.uploaderUrl) && Objects.equals(this.version, conanPackageUpload.version) && Objects.equals(this.versionOrig, conanPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, conanPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, conanPackageUpload.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, conanChannel, conanPrefix, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1431,6 +1407,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1450,7 +1427,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1509,7 +1485,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java index 398d5568..1d856129 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -44,9 +43,6 @@ public class ConanPackageUploadRequest implements Serializable { @SerializedName("info_file") private String infoFile = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("manifest_file") private String manifestFile = null; @@ -68,9 +64,6 @@ public class ConanPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public ConanPackageUploadRequest conanChannel(String conanChannel) { this.conanChannel = conanChannel; return this; @@ -126,15 +119,6 @@ public void setInfoFile(String infoFile) { this.infoFile = infoFile; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public ConanPackageUploadRequest manifestFile(String manifestFile) { this.manifestFile = manifestFile; return this; @@ -264,25 +248,6 @@ public void setVersion(String version) { this.version = version; } - public ConanPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -296,20 +261,18 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.conanChannel, conanPackageUploadRequest.conanChannel) && Objects.equals(this.conanPrefix, conanPackageUploadRequest.conanPrefix) && Objects.equals(this.infoFile, conanPackageUploadRequest.infoFile) && - Objects.equals(this.isMalwareDetected, conanPackageUploadRequest.isMalwareDetected) && Objects.equals(this.manifestFile, conanPackageUploadRequest.manifestFile) && Objects.equals(this.metadataFile, conanPackageUploadRequest.metadataFile) && Objects.equals(this.name, conanPackageUploadRequest.name) && Objects.equals(this.packageFile, conanPackageUploadRequest.packageFile) && Objects.equals(this.republish, conanPackageUploadRequest.republish) && Objects.equals(this.tags, conanPackageUploadRequest.tags) && - Objects.equals(this.version, conanPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, conanPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, conanPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(conanChannel, conanPrefix, infoFile, isMalwareDetected, manifestFile, metadataFile, name, packageFile, republish, tags, version, vulnerabilityCounts); + return Objects.hash(conanChannel, conanPrefix, infoFile, manifestFile, metadataFile, name, packageFile, republish, tags, version); } @@ -321,7 +284,6 @@ public String toString() { sb.append(" conanChannel: ").append(toIndentedString(conanChannel)).append("\n"); sb.append(" conanPrefix: ").append(toIndentedString(conanPrefix)).append("\n"); sb.append(" infoFile: ").append(toIndentedString(infoFile)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" manifestFile: ").append(toIndentedString(manifestFile)).append("\n"); sb.append(" metadataFile: ").append(toIndentedString(metadataFile)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -329,7 +291,6 @@ public String toString() { sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 735b64f9..4cf531d4 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class CondaPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class CondaPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public CondaPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public CondaPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, condaPackageUpload.dependenciesUrl) && Objects.equals(this.description, condaPackageUpload.description) && Objects.equals(this.displayName, condaPackageUpload.displayName) && + Objects.equals(this.displaySource, condaPackageUpload.displaySource) && Objects.equals(this.distro, condaPackageUpload.distro) && Objects.equals(this.distroVersion, condaPackageUpload.distroVersion) && Objects.equals(this.downloads, condaPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, condaPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, condaPackageUpload.isDownloadable) && Objects.equals(this.isHidden, condaPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, condaPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, condaPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, condaPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, condaPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, condaPackageUpload.uploaderUrl) && Objects.equals(this.version, condaPackageUpload.version) && Objects.equals(this.versionOrig, condaPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, condaPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, condaPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java index a5370a3f..05b2581d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CondaPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class CondaPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class CondaPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public CondaPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public CondaPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } CondaPackageUploadRequest condaPackageUploadRequest = (CondaPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, condaPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && Objects.equals(this.republish, condaPackageUploadRequest.republish) && - Objects.equals(this.tags, condaPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, condaPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, condaPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CondaPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 index bfd5503d..3a296570 100644 --- 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 @@ -20,10 +20,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.ConnectedRepositoryTargetSummary; +import io.cloudsmith.api.models.ConnectedRepositoryUpstream; 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; @@ -35,6 +39,12 @@ public class ConnectedRepository implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("can_view_target_repository_settings") + private Boolean canViewTargetRepositorySettings = null; + + @SerializedName("configured_upstreams") + private List configuredUpstreams = null; + @SerializedName("created_at") private OffsetDateTime createdAt = null; @@ -103,6 +113,28 @@ public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("target_repository") private String targetRepository = null; + @SerializedName("target_repository_summary") + private ConnectedRepositoryTargetSummary targetRepositorySummary = null; + + /** + * Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. + * @return canViewTargetRepositorySettings + **/ + @ApiModelProperty(value = "Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured.") + public Boolean isCanViewTargetRepositorySettings() { + return canViewTargetRepositorySettings; + } + + /** + * The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. + * @return configuredUpstreams + **/ + @Valid + @ApiModelProperty(value = "The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes.") + public List getConfiguredUpstreams() { + return configuredUpstreams; + } + /** * The date and time when the connection was created. * @return createdAt @@ -197,6 +229,25 @@ public void setTargetRepository(String targetRepository) { this.targetRepository = targetRepository; } + public ConnectedRepository targetRepositorySummary(ConnectedRepositoryTargetSummary targetRepositorySummary) { + this.targetRepositorySummary = targetRepositorySummary; + return this; + } + + /** + * Get targetRepositorySummary + * @return targetRepositorySummary + **/ + @Valid + @ApiModelProperty(value = "") + public ConnectedRepositoryTargetSummary getTargetRepositorySummary() { + return targetRepositorySummary; + } + + public void setTargetRepositorySummary(ConnectedRepositoryTargetSummary targetRepositorySummary) { + this.targetRepositorySummary = targetRepositorySummary; + } + @Override public boolean equals(java.lang.Object o) { @@ -207,18 +258,21 @@ public boolean equals(java.lang.Object o) { return false; } ConnectedRepository connectedRepository = (ConnectedRepository) o; - return Objects.equals(this.createdAt, connectedRepository.createdAt) && + return Objects.equals(this.canViewTargetRepositorySettings, connectedRepository.canViewTargetRepositorySettings) && + Objects.equals(this.configuredUpstreams, connectedRepository.configuredUpstreams) && + Objects.equals(this.createdAt, connectedRepository.createdAt) && Objects.equals(this.disableReason, connectedRepository.disableReason) && Objects.equals(this.disableReasonText, connectedRepository.disableReasonText) && Objects.equals(this.isActive, connectedRepository.isActive) && Objects.equals(this.priority, connectedRepository.priority) && Objects.equals(this.slugPerm, connectedRepository.slugPerm) && - Objects.equals(this.targetRepository, connectedRepository.targetRepository); + Objects.equals(this.targetRepository, connectedRepository.targetRepository) && + Objects.equals(this.targetRepositorySummary, connectedRepository.targetRepositorySummary); } @Override public int hashCode() { - return Objects.hash(createdAt, disableReason, disableReasonText, isActive, priority, slugPerm, targetRepository); + return Objects.hash(canViewTargetRepositorySettings, configuredUpstreams, createdAt, disableReason, disableReasonText, isActive, priority, slugPerm, targetRepository, targetRepositorySummary); } @@ -227,6 +281,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConnectedRepository {\n"); + sb.append(" canViewTargetRepositorySettings: ").append(toIndentedString(canViewTargetRepositorySettings)).append("\n"); + sb.append(" configuredUpstreams: ").append(toIndentedString(configuredUpstreams)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" disableReason: ").append(toIndentedString(disableReason)).append("\n"); sb.append(" disableReasonText: ").append(toIndentedString(disableReasonText)).append("\n"); @@ -234,6 +290,7 @@ public String toString() { 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(" targetRepositorySummary: ").append(toIndentedString(targetRepositorySummary)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryTargetSummary.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryTargetSummary.java new file mode 100644 index 00000000..0078e257 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryTargetSummary.java @@ -0,0 +1,132 @@ +/* + * 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; + +/** + * ConnectedRepositoryTargetSummary + */ + +public class ConnectedRepositoryTargetSummary implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("is_private") + private Boolean isPrivate = null; + + @SerializedName("is_public") + private Boolean isPublic = null; + + @SerializedName("package_count") + private java.math.BigInteger packageCount = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + /** + * Get isPrivate + * @return isPrivate + **/ + @ApiModelProperty(value = "") + public Boolean isIsPrivate() { + return isPrivate; + } + + /** + * Get isPublic + * @return isPublic + **/ + @ApiModelProperty(value = "") + public Boolean isIsPublic() { + return isPublic; + } + + /** + * Get packageCount + * @return packageCount + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getPackageCount() { + return packageCount; + } + + /** + * Get size + * @return size + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getSize() { + return size; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedRepositoryTargetSummary connectedRepositoryTargetSummary = (ConnectedRepositoryTargetSummary) o; + return Objects.equals(this.isPrivate, connectedRepositoryTargetSummary.isPrivate) && + Objects.equals(this.isPublic, connectedRepositoryTargetSummary.isPublic) && + Objects.equals(this.packageCount, connectedRepositoryTargetSummary.packageCount) && + Objects.equals(this.size, connectedRepositoryTargetSummary.size); + } + + @Override + public int hashCode() { + return Objects.hash(isPrivate, isPublic, packageCount, size); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedRepositoryTargetSummary {\n"); + + sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n"); + sb.append(" isPublic: ").append(toIndentedString(isPublic)).append("\n"); + sb.append(" packageCount: ").append(toIndentedString(packageCount)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryUpstream.java new file mode 100644 index 00000000..ded37b00 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConnectedRepositoryUpstream.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; + +/** + * ConnectedRepositoryUpstream + */ + +public class ConnectedRepositoryUpstream implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("type") + private String type = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + /** + * The format/backend slug of the upstream (e.g. 'npm'). + * @return type + **/ + @ApiModelProperty(value = "The format/backend slug of the upstream (e.g. 'npm').") + public String getType() { + return type; + } + + /** + * Get upstreamUrl + * @return upstreamUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUpstreamUrl() { + return upstreamUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectedRepositoryUpstream connectedRepositoryUpstream = (ConnectedRepositoryUpstream) o; + return Objects.equals(this.type, connectedRepositoryUpstream.type) && + Objects.equals(this.upstreamUrl, connectedRepositoryUpstream.upstreamUrl); + } + + @Override + public int hashCode() { + return Objects.hash(type, upstreamUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectedRepositoryUpstream {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).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 3959cb69..94fd3cc8 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class CranPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class CranPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -371,9 +370,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -468,6 +464,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public CranPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -660,15 +665,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1237,25 +1233,6 @@ public String getVersionOrig() { return versionOrig; } - public CranPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1285,6 +1262,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, cranPackageUpload.dependenciesUrl) && Objects.equals(this.description, cranPackageUpload.description) && Objects.equals(this.displayName, cranPackageUpload.displayName) && + Objects.equals(this.displaySource, cranPackageUpload.displaySource) && Objects.equals(this.distro, cranPackageUpload.distro) && Objects.equals(this.distroVersion, cranPackageUpload.distroVersion) && Objects.equals(this.downloads, cranPackageUpload.downloads) && @@ -1304,7 +1282,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, cranPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, cranPackageUpload.isDownloadable) && Objects.equals(this.isHidden, cranPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, cranPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, cranPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, cranPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, cranPackageUpload.isQuarantined) && @@ -1364,13 +1341,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, cranPackageUpload.uploaderUrl) && Objects.equals(this.version, cranPackageUpload.version) && Objects.equals(this.versionOrig, cranPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, cranPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, cranPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1389,6 +1365,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1408,7 +1385,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1468,7 +1444,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java index 91dda247..acc8b9e0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,9 +37,6 @@ public class CranPackageUploadRequest implements Serializable { @SerializedName("architecture") private String architecture = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -53,9 +49,6 @@ public class CranPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public CranPackageUploadRequest architecture(String architecture) { this.architecture = architecture; return this; @@ -74,15 +67,6 @@ public void setArchitecture(String architecture) { this.architecture = architecture; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public CranPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -156,25 +140,6 @@ public void setTags(String tags) { this.tags = tags; } - public CranPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -186,17 +151,15 @@ public boolean equals(java.lang.Object o) { } CranPackageUploadRequest cranPackageUploadRequest = (CranPackageUploadRequest) o; return Objects.equals(this.architecture, cranPackageUploadRequest.architecture) && - Objects.equals(this.isMalwareDetected, cranPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, cranPackageUploadRequest.packageFile) && Objects.equals(this.rVersion, cranPackageUploadRequest.rVersion) && Objects.equals(this.republish, cranPackageUploadRequest.republish) && - Objects.equals(this.tags, cranPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, cranPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, cranPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(architecture, isMalwareDetected, packageFile, rVersion, republish, tags, vulnerabilityCounts); + return Objects.hash(architecture, packageFile, rVersion, republish, tags); } @@ -206,12 +169,10 @@ public String toString() { sb.append("class CranPackageUploadRequest {\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" rVersion: ").append(toIndentedString(rVersion)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 eace9536..4a0a5646 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class DartPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class DartPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public DartPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public DartPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, dartPackageUpload.dependenciesUrl) && Objects.equals(this.description, dartPackageUpload.description) && Objects.equals(this.displayName, dartPackageUpload.displayName) && + Objects.equals(this.displaySource, dartPackageUpload.displaySource) && Objects.equals(this.distro, dartPackageUpload.distro) && Objects.equals(this.distroVersion, dartPackageUpload.distroVersion) && Objects.equals(this.downloads, dartPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, dartPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dartPackageUpload.isDownloadable) && Objects.equals(this.isHidden, dartPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, dartPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, dartPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dartPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dartPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, dartPackageUpload.uploaderUrl) && Objects.equals(this.version, dartPackageUpload.version) && Objects.equals(this.versionOrig, dartPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, dartPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, dartPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java index 2b0dc859..2998fc9e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DartPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class DartPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class DartPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public DartPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public DartPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } DartPackageUploadRequest dartPackageUploadRequest = (DartPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, dartPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && Objects.equals(this.republish, dartPackageUploadRequest.republish) && - Objects.equals(this.tags, dartPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, dartPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, dartPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DartPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 e59fe015..ea263bb6 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class DebPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class DebPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public DebPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public DebPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, debPackageUpload.dependenciesUrl) && Objects.equals(this.description, debPackageUpload.description) && Objects.equals(this.displayName, debPackageUpload.displayName) && + Objects.equals(this.displaySource, debPackageUpload.displaySource) && Objects.equals(this.distro, debPackageUpload.distro) && Objects.equals(this.distroVersion, debPackageUpload.distroVersion) && Objects.equals(this.downloads, debPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, debPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, debPackageUpload.isDownloadable) && Objects.equals(this.isHidden, debPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, debPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, debPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, debPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, debPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, debPackageUpload.uploaderUrl) && Objects.equals(this.version, debPackageUpload.version) && Objects.equals(this.versionOrig, debPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, debPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, debPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java index 512162f5..38b1174b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -44,9 +43,6 @@ public class DebPackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -59,9 +55,6 @@ public class DebPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public DebPackageUploadRequest changesFile(String changesFile) { this.changesFile = changesFile; return this; @@ -117,15 +110,6 @@ public void setDistribution(String distribution) { this.distribution = distribution; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public DebPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -199,25 +183,6 @@ public void setTags(String tags) { this.tags = tags; } - public DebPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -231,17 +196,15 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.changesFile, debPackageUploadRequest.changesFile) && Objects.equals(this.component, debPackageUploadRequest.component) && Objects.equals(this.distribution, debPackageUploadRequest.distribution) && - Objects.equals(this.isMalwareDetected, debPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, debPackageUploadRequest.packageFile) && Objects.equals(this.republish, debPackageUploadRequest.republish) && Objects.equals(this.sourcesFile, debPackageUploadRequest.sourcesFile) && - Objects.equals(this.tags, debPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, debPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, debPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(changesFile, component, distribution, isMalwareDetected, packageFile, republish, sourcesFile, tags, vulnerabilityCounts); + return Objects.hash(changesFile, component, distribution, packageFile, republish, sourcesFile, tags); } @@ -253,12 +216,10 @@ public String toString() { sb.append(" changesFile: ").append(toIndentedString(changesFile)).append("\n"); sb.append(" component: ").append(toIndentedString(component)).append("\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" sourcesFile: ").append(toIndentedString(sourcesFile)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 1edb9a26..2f8885aa 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class DockerPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class DockerPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public DockerPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public DockerPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, dockerPackageUpload.dependenciesUrl) && Objects.equals(this.description, dockerPackageUpload.description) && Objects.equals(this.displayName, dockerPackageUpload.displayName) && + Objects.equals(this.displaySource, dockerPackageUpload.displaySource) && Objects.equals(this.distro, dockerPackageUpload.distro) && Objects.equals(this.distroVersion, dockerPackageUpload.distroVersion) && Objects.equals(this.downloads, dockerPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, dockerPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, dockerPackageUpload.isDownloadable) && Objects.equals(this.isHidden, dockerPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, dockerPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, dockerPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, dockerPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, dockerPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, dockerPackageUpload.uploaderUrl) && Objects.equals(this.version, dockerPackageUpload.version) && Objects.equals(this.versionOrig, dockerPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, dockerPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, dockerPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java index 7634396e..b69be1b8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DockerPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class DockerPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class DockerPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public DockerPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public DockerPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } DockerPackageUploadRequest dockerPackageUploadRequest = (DockerPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, dockerPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && Objects.equals(this.republish, dockerPackageUploadRequest.republish) && - Objects.equals(this.tags, dockerPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, dockerPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, dockerPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DockerPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 6d6c3e1d..fd4591c4 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class GenericPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class GenericPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public GenericPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1234,25 +1230,6 @@ public String getVersionOrig() { return versionOrig; } - public GenericPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1282,6 +1259,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, genericPackageUpload.dependenciesUrl) && Objects.equals(this.description, genericPackageUpload.description) && Objects.equals(this.displayName, genericPackageUpload.displayName) && + Objects.equals(this.displaySource, genericPackageUpload.displaySource) && Objects.equals(this.distro, genericPackageUpload.distro) && Objects.equals(this.distroVersion, genericPackageUpload.distroVersion) && Objects.equals(this.downloads, genericPackageUpload.downloads) && @@ -1301,7 +1279,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, genericPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, genericPackageUpload.isDownloadable) && Objects.equals(this.isHidden, genericPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, genericPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, genericPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, genericPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, genericPackageUpload.isQuarantined) && @@ -1360,13 +1337,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, genericPackageUpload.uploaderUrl) && Objects.equals(this.version, genericPackageUpload.version) && Objects.equals(this.versionOrig, genericPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, genericPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, genericPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1385,6 +1361,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1404,7 +1381,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1463,7 +1439,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java index 337be887..a9851f18 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GenericPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,9 +37,6 @@ public class GenericPackageUploadRequest implements Serializable { @SerializedName("filepath") private String filepath = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("name") private String name = null; @@ -56,9 +52,6 @@ public class GenericPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public GenericPackageUploadRequest filepath(String filepath) { this.filepath = filepath; return this; @@ -78,15 +71,6 @@ public void setFilepath(String filepath) { this.filepath = filepath; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public GenericPackageUploadRequest name(String name) { this.name = name; return this; @@ -178,25 +162,6 @@ public void setVersion(String version) { this.version = version; } - public GenericPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -208,18 +173,16 @@ public boolean equals(java.lang.Object o) { } GenericPackageUploadRequest genericPackageUploadRequest = (GenericPackageUploadRequest) o; return Objects.equals(this.filepath, genericPackageUploadRequest.filepath) && - Objects.equals(this.isMalwareDetected, genericPackageUploadRequest.isMalwareDetected) && Objects.equals(this.name, genericPackageUploadRequest.name) && Objects.equals(this.packageFile, genericPackageUploadRequest.packageFile) && Objects.equals(this.republish, genericPackageUploadRequest.republish) && Objects.equals(this.tags, genericPackageUploadRequest.tags) && - Objects.equals(this.version, genericPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, genericPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, genericPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(filepath, isMalwareDetected, name, packageFile, republish, tags, version, vulnerabilityCounts); + return Objects.hash(filepath, name, packageFile, republish, tags, version); } @@ -229,13 +192,11 @@ public String toString() { sb.append("class GenericPackageUploadRequest {\n"); sb.append(" filepath: ").append(toIndentedString(filepath)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 77183ff1..34fec67f 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class GoPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class GoPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public GoPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public GoPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, goPackageUpload.dependenciesUrl) && Objects.equals(this.description, goPackageUpload.description) && Objects.equals(this.displayName, goPackageUpload.displayName) && + Objects.equals(this.displaySource, goPackageUpload.displaySource) && Objects.equals(this.distro, goPackageUpload.distro) && Objects.equals(this.distroVersion, goPackageUpload.distroVersion) && Objects.equals(this.downloads, goPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, goPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, goPackageUpload.isDownloadable) && Objects.equals(this.isHidden, goPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, goPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, goPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, goPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, goPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, goPackageUpload.uploaderUrl) && Objects.equals(this.version, goPackageUpload.version) && Objects.equals(this.versionOrig, goPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, goPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, goPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java index 5580e005..dd6e95a4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class GoPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class GoPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public GoPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public GoPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } GoPackageUploadRequest goPackageUploadRequest = (GoPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, goPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && Objects.equals(this.republish, goPackageUploadRequest.republish) && - Objects.equals(this.tags, goPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, goPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, goPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GoPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 7b85371f..04f7ff73 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class HelmPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class HelmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public HelmPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public HelmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, helmPackageUpload.dependenciesUrl) && Objects.equals(this.description, helmPackageUpload.description) && Objects.equals(this.displayName, helmPackageUpload.displayName) && + Objects.equals(this.displaySource, helmPackageUpload.displaySource) && Objects.equals(this.distro, helmPackageUpload.distro) && Objects.equals(this.distroVersion, helmPackageUpload.distroVersion) && Objects.equals(this.downloads, helmPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, helmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, helmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, helmPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, helmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, helmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, helmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, helmPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, helmPackageUpload.uploaderUrl) && Objects.equals(this.version, helmPackageUpload.version) && Objects.equals(this.versionOrig, helmPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, helmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, helmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java index 66cb99a6..1dc8c137 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HelmPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class HelmPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,18 +46,6 @@ public class HelmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public HelmPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -135,25 +119,6 @@ public void setTags(String tags) { this.tags = tags; } - public HelmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -164,17 +129,15 @@ public boolean equals(java.lang.Object o) { return false; } HelmPackageUploadRequest helmPackageUploadRequest = (HelmPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, helmPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, helmPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, helmPackageUploadRequest.packageFile) && Objects.equals(this.provenanceFile, helmPackageUploadRequest.provenanceFile) && Objects.equals(this.republish, helmPackageUploadRequest.republish) && - Objects.equals(this.tags, helmPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, helmPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, helmPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, provenanceFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, provenanceFile, republish, tags); } @@ -183,12 +146,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HelmPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" provenanceFile: ").append(toIndentedString(provenanceFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 ac14c56c..71ada7ad 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class HexPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class HexPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public HexPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public HexPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, hexPackageUpload.dependenciesUrl) && Objects.equals(this.description, hexPackageUpload.description) && Objects.equals(this.displayName, hexPackageUpload.displayName) && + Objects.equals(this.displaySource, hexPackageUpload.displaySource) && Objects.equals(this.distro, hexPackageUpload.distro) && Objects.equals(this.distroVersion, hexPackageUpload.distroVersion) && Objects.equals(this.downloads, hexPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, hexPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, hexPackageUpload.isDownloadable) && Objects.equals(this.isHidden, hexPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, hexPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, hexPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, hexPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, hexPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, hexPackageUpload.uploaderUrl) && Objects.equals(this.version, hexPackageUpload.version) && Objects.equals(this.versionOrig, hexPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, hexPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, hexPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java index 36f95698..9032393a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HexPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class HexPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class HexPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public HexPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public HexPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } HexPackageUploadRequest hexPackageUploadRequest = (HexPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, hexPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && Objects.equals(this.republish, hexPackageUploadRequest.republish) && - Objects.equals(this.tags, hexPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, hexPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, hexPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HexPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 0466cd1f..27b14d78 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class HuggingfacePackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class HuggingfacePackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public HuggingfacePackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public HuggingfacePackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, huggingfacePackageUpload.dependenciesUrl) && Objects.equals(this.description, huggingfacePackageUpload.description) && Objects.equals(this.displayName, huggingfacePackageUpload.displayName) && + Objects.equals(this.displaySource, huggingfacePackageUpload.displaySource) && Objects.equals(this.distro, huggingfacePackageUpload.distro) && Objects.equals(this.distroVersion, huggingfacePackageUpload.distroVersion) && Objects.equals(this.downloads, huggingfacePackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, huggingfacePackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, huggingfacePackageUpload.isDownloadable) && Objects.equals(this.isHidden, huggingfacePackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, huggingfacePackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, huggingfacePackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, huggingfacePackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, huggingfacePackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, huggingfacePackageUpload.uploaderUrl) && Objects.equals(this.version, huggingfacePackageUpload.version) && Objects.equals(this.versionOrig, huggingfacePackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, huggingfacePackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, huggingfacePackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java index 5a498021..2f1e3bb8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/HuggingfacePackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class HuggingfacePackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class HuggingfacePackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public HuggingfacePackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public HuggingfacePackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } HuggingfacePackageUploadRequest huggingfacePackageUploadRequest = (HuggingfacePackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, huggingfacePackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && Objects.equals(this.republish, huggingfacePackageUploadRequest.republish) && - Objects.equals(this.tags, huggingfacePackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, huggingfacePackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, huggingfacePackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HuggingfacePackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 a30feee7..2d2eb2bd 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class LuarocksPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class LuarocksPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public LuarocksPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public LuarocksPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, luarocksPackageUpload.dependenciesUrl) && Objects.equals(this.description, luarocksPackageUpload.description) && Objects.equals(this.displayName, luarocksPackageUpload.displayName) && + Objects.equals(this.displaySource, luarocksPackageUpload.displaySource) && Objects.equals(this.distro, luarocksPackageUpload.distro) && Objects.equals(this.distroVersion, luarocksPackageUpload.distroVersion) && Objects.equals(this.downloads, luarocksPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, luarocksPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, luarocksPackageUpload.isDownloadable) && Objects.equals(this.isHidden, luarocksPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, luarocksPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, luarocksPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, luarocksPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, luarocksPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, luarocksPackageUpload.uploaderUrl) && Objects.equals(this.version, luarocksPackageUpload.version) && Objects.equals(this.versionOrig, luarocksPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, luarocksPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, luarocksPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java index e988cd5c..3b891613 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/LuarocksPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class LuarocksPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class LuarocksPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public LuarocksPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public LuarocksPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } LuarocksPackageUploadRequest luarocksPackageUploadRequest = (LuarocksPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, luarocksPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && Objects.equals(this.republish, luarocksPackageUploadRequest.republish) && - Objects.equals(this.tags, luarocksPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, luarocksPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, luarocksPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LuarocksPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 c05581fe..ba8a6ef5 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -78,6 +77,9 @@ public class MavenPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -138,9 +140,6 @@ public class MavenPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -383,9 +382,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -498,6 +494,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public MavenPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -708,15 +713,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1330,25 +1326,6 @@ public String getVersionOrig() { return versionOrig; } - public MavenPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1379,6 +1356,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, mavenPackageUpload.dependenciesUrl) && Objects.equals(this.description, mavenPackageUpload.description) && Objects.equals(this.displayName, mavenPackageUpload.displayName) && + Objects.equals(this.displaySource, mavenPackageUpload.displaySource) && Objects.equals(this.distro, mavenPackageUpload.distro) && Objects.equals(this.distroVersion, mavenPackageUpload.distroVersion) && Objects.equals(this.downloads, mavenPackageUpload.downloads) && @@ -1399,7 +1377,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, mavenPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mavenPackageUpload.isDownloadable) && Objects.equals(this.isHidden, mavenPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, mavenPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, mavenPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mavenPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mavenPackageUpload.isQuarantined) && @@ -1461,13 +1438,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, mavenPackageUpload.uploaderUrl) && Objects.equals(this.version, mavenPackageUpload.version) && Objects.equals(this.versionOrig, mavenPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, mavenPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, mavenPackageUpload.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, artifactId, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1487,6 +1463,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1507,7 +1484,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1569,7 +1545,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java index 800728d8..6be42ece 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -46,9 +45,6 @@ public class MavenPackageUploadRequest implements Serializable { @SerializedName("group_id") private String groupId = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("ivy_file") private String ivyFile = null; @@ -85,9 +81,6 @@ public class MavenPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public MavenPackageUploadRequest artifactId(String artifactId) { this.artifactId = artifactId; return this; @@ -150,15 +143,6 @@ public void setGroupId(String groupId) { this.groupId = groupId; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public MavenPackageUploadRequest ivyFile(String ivyFile) { this.ivyFile = ivyFile; return this; @@ -376,25 +360,6 @@ public void setVersion(String version) { this.version = version; } - public MavenPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -408,7 +373,6 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.artifactId, mavenPackageUploadRequest.artifactId) && Objects.equals(this.extraFiles, mavenPackageUploadRequest.extraFiles) && Objects.equals(this.groupId, mavenPackageUploadRequest.groupId) && - Objects.equals(this.isMalwareDetected, mavenPackageUploadRequest.isMalwareDetected) && Objects.equals(this.ivyFile, mavenPackageUploadRequest.ivyFile) && Objects.equals(this.javadocFile, mavenPackageUploadRequest.javadocFile) && Objects.equals(this.packageFile, mavenPackageUploadRequest.packageFile) && @@ -420,13 +384,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.sourcesFile, mavenPackageUploadRequest.sourcesFile) && Objects.equals(this.tags, mavenPackageUploadRequest.tags) && Objects.equals(this.testsFile, mavenPackageUploadRequest.testsFile) && - Objects.equals(this.version, mavenPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, mavenPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, mavenPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(artifactId, extraFiles, groupId, isMalwareDetected, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version, vulnerabilityCounts); + return Objects.hash(artifactId, extraFiles, groupId, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version); } @@ -438,7 +401,6 @@ public String toString() { sb.append(" artifactId: ").append(toIndentedString(artifactId)).append("\n"); sb.append(" extraFiles: ").append(toIndentedString(extraFiles)).append("\n"); sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" ivyFile: ").append(toIndentedString(ivyFile)).append("\n"); sb.append(" javadocFile: ").append(toIndentedString(javadocFile)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); @@ -451,7 +413,6 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" testsFile: ").append(toIndentedString(testsFile)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 a6713e5f..c5c32ef9 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class McpPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class McpPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public McpPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1225,25 +1221,6 @@ public String getVersionOrig() { return versionOrig; } - public McpPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1273,6 +1250,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, mcpPackageUpload.dependenciesUrl) && Objects.equals(this.description, mcpPackageUpload.description) && Objects.equals(this.displayName, mcpPackageUpload.displayName) && + Objects.equals(this.displaySource, mcpPackageUpload.displaySource) && Objects.equals(this.distro, mcpPackageUpload.distro) && Objects.equals(this.distroVersion, mcpPackageUpload.distroVersion) && Objects.equals(this.downloads, mcpPackageUpload.downloads) && @@ -1292,7 +1270,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, mcpPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, mcpPackageUpload.isDownloadable) && Objects.equals(this.isHidden, mcpPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, mcpPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, mcpPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, mcpPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, mcpPackageUpload.isQuarantined) && @@ -1351,13 +1328,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, mcpPackageUpload.uploaderUrl) && Objects.equals(this.version, mcpPackageUpload.version) && Objects.equals(this.versionOrig, mcpPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, mcpPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, mcpPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1376,6 +1352,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1395,7 +1372,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1454,7 +1430,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java index e17d2c8c..997dcdb7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/McpPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class McpPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,18 +46,6 @@ public class McpPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public McpPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -135,25 +119,6 @@ public void setVersion(String version) { this.version = version; } - public McpPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -164,17 +129,15 @@ public boolean equals(java.lang.Object o) { return false; } McpPackageUploadRequest mcpPackageUploadRequest = (McpPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, mcpPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, mcpPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, mcpPackageUploadRequest.packageFile) && Objects.equals(this.republish, mcpPackageUploadRequest.republish) && Objects.equals(this.tags, mcpPackageUploadRequest.tags) && - Objects.equals(this.version, mcpPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, mcpPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, mcpPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags, version); } @@ -183,12 +146,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class McpPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 c789ee3e..063a21e6 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 @@ -75,6 +75,9 @@ public class ModelPackage implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -471,6 +474,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public ModelPackage distro(Distribution distro) { this.distro = distro; return this; @@ -1298,6 +1310,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, _package.dependenciesUrl) && Objects.equals(this.description, _package.description) && Objects.equals(this.displayName, _package.displayName) && + Objects.equals(this.displaySource, _package.displaySource) && Objects.equals(this.distro, _package.distro) && Objects.equals(this.distroVersion, _package.distroVersion) && Objects.equals(this.downloads, _package.downloads) && @@ -1384,7 +1397,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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1403,6 +1416,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java index ecd2c5c6..61228e57 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUpload.java @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class NixPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class NixPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public NixPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1225,25 +1221,6 @@ public String getVersionOrig() { return versionOrig; } - public NixPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1273,6 +1250,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, nixPackageUpload.dependenciesUrl) && Objects.equals(this.description, nixPackageUpload.description) && Objects.equals(this.displayName, nixPackageUpload.displayName) && + Objects.equals(this.displaySource, nixPackageUpload.displaySource) && Objects.equals(this.distro, nixPackageUpload.distro) && Objects.equals(this.distroVersion, nixPackageUpload.distroVersion) && Objects.equals(this.downloads, nixPackageUpload.downloads) && @@ -1292,7 +1270,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, nixPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, nixPackageUpload.isDownloadable) && Objects.equals(this.isHidden, nixPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, nixPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, nixPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, nixPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, nixPackageUpload.isQuarantined) && @@ -1351,13 +1328,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, nixPackageUpload.uploaderUrl) && Objects.equals(this.version, nixPackageUpload.version) && Objects.equals(this.versionOrig, nixPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, nixPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, nixPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1376,6 +1352,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1395,7 +1372,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1454,7 +1430,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java index 26e420f6..4a2957cd 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NixPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class NixPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("narinfo_file") private String narinfoFile = null; @@ -53,18 +49,6 @@ public class NixPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public NixPackageUploadRequest narinfoFile(String narinfoFile) { this.narinfoFile = narinfoFile; return this; @@ -156,25 +140,6 @@ public void setVersion(String version) { this.version = version; } - public NixPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -185,18 +150,16 @@ public boolean equals(java.lang.Object o) { return false; } NixPackageUploadRequest nixPackageUploadRequest = (NixPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, nixPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.narinfoFile, nixPackageUploadRequest.narinfoFile) && + return Objects.equals(this.narinfoFile, nixPackageUploadRequest.narinfoFile) && Objects.equals(this.packageFile, nixPackageUploadRequest.packageFile) && Objects.equals(this.republish, nixPackageUploadRequest.republish) && Objects.equals(this.tags, nixPackageUploadRequest.tags) && - Objects.equals(this.version, nixPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, nixPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, nixPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, narinfoFile, packageFile, republish, tags, version, vulnerabilityCounts); + return Objects.hash(narinfoFile, packageFile, republish, tags, version); } @@ -205,13 +168,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NixPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" narinfoFile: ").append(toIndentedString(narinfoFile)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 c764e7aa..43059055 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class NpmPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class NpmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public NpmPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public NpmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, npmPackageUpload.dependenciesUrl) && Objects.equals(this.description, npmPackageUpload.description) && Objects.equals(this.displayName, npmPackageUpload.displayName) && + Objects.equals(this.displaySource, npmPackageUpload.displaySource) && Objects.equals(this.distro, npmPackageUpload.distro) && Objects.equals(this.distroVersion, npmPackageUpload.distroVersion) && Objects.equals(this.downloads, npmPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, npmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, npmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, npmPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, npmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, npmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, npmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, npmPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, npmPackageUpload.uploaderUrl) && Objects.equals(this.version, npmPackageUpload.version) && Objects.equals(this.versionOrig, npmPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, npmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, npmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java index 9ad05e9e..3602a596 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class NpmPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("npm_dist_tag") private String npmDistTag = "latest"; @@ -50,18 +46,6 @@ public class NpmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public NpmPackageUploadRequest npmDistTag(String npmDistTag) { this.npmDistTag = npmDistTag; return this; @@ -135,25 +119,6 @@ public void setTags(String tags) { this.tags = tags; } - public NpmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -164,17 +129,15 @@ public boolean equals(java.lang.Object o) { return false; } NpmPackageUploadRequest npmPackageUploadRequest = (NpmPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, npmPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.npmDistTag, npmPackageUploadRequest.npmDistTag) && + return Objects.equals(this.npmDistTag, npmPackageUploadRequest.npmDistTag) && Objects.equals(this.packageFile, npmPackageUploadRequest.packageFile) && Objects.equals(this.republish, npmPackageUploadRequest.republish) && - Objects.equals(this.tags, npmPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, npmPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, npmPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, npmDistTag, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(npmDistTag, packageFile, republish, tags); } @@ -183,12 +146,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NpmPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" npmDistTag: ").append(toIndentedString(npmDistTag)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 92396aff..f8fc475d 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class NugetPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class NugetPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public NugetPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public NugetPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, nugetPackageUpload.dependenciesUrl) && Objects.equals(this.description, nugetPackageUpload.description) && Objects.equals(this.displayName, nugetPackageUpload.displayName) && + Objects.equals(this.displaySource, nugetPackageUpload.displaySource) && Objects.equals(this.distro, nugetPackageUpload.distro) && Objects.equals(this.distroVersion, nugetPackageUpload.distroVersion) && Objects.equals(this.downloads, nugetPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, nugetPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, nugetPackageUpload.isDownloadable) && Objects.equals(this.isHidden, nugetPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, nugetPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, nugetPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, nugetPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, nugetPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, nugetPackageUpload.uploaderUrl) && Objects.equals(this.version, nugetPackageUpload.version) && Objects.equals(this.versionOrig, nugetPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, nugetPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, nugetPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java index d948e68f..564879e1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NugetPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class NugetPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,18 +46,6 @@ public class NugetPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public NugetPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -135,25 +119,6 @@ public void setTags(String tags) { this.tags = tags; } - public NugetPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -164,17 +129,15 @@ public boolean equals(java.lang.Object o) { return false; } NugetPackageUploadRequest nugetPackageUploadRequest = (NugetPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, nugetPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, nugetPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, nugetPackageUploadRequest.packageFile) && Objects.equals(this.republish, nugetPackageUploadRequest.republish) && Objects.equals(this.symbolsFile, nugetPackageUploadRequest.symbolsFile) && - Objects.equals(this.tags, nugetPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, nugetPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, nugetPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, symbolsFile, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, symbolsFile, tags); } @@ -183,12 +146,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NugetPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" symbolsFile: ").append(toIndentedString(symbolsFile)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRule.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRule.java new file mode 100644 index 00000000..e6f50e8b --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRule.java @@ -0,0 +1,294 @@ +/* + * 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; + +/** + * OrganizationApiKeyRule + */ + +public class OrganizationApiKeyRule implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + @SerializedName("enforce_refresh") + private Boolean enforceRefresh = null; + + @SerializedName("is_enabled") + private Boolean isEnabled = null; + + @SerializedName("last_applied_at") + private OffsetDateTime lastAppliedAt = null; + + @SerializedName("max_age_hours") + private java.math.BigInteger maxAgeHours = null; + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + */ + @JsonAdapter(RuleTypeEnum.Adapter.class) + public enum RuleTypeEnum { + ALL_ACCOUNTS("All Accounts"), + + SERVICE_ACCOUNTS("Service Accounts"), + + USER_ACCOUNTS("User Accounts"); + + private String value; + + RuleTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RuleTypeEnum fromValue(String text) { + for (RuleTypeEnum b : RuleTypeEnum.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 RuleTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RuleTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RuleTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("rule_type") + private RuleTypeEnum ruleType = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("updated_at") + private OffsetDateTime updatedAt = null; + + /** + * Get createdAt + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public OrganizationApiKeyRule enforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + return this; + } + + /** + * When enabled, API keys that violate the organization's rule will be replaced automatically. + * @return enforceRefresh + **/ + @ApiModelProperty(value = "When enabled, API keys that violate the organization's rule will be replaced automatically.") + public Boolean isEnforceRefresh() { + return enforceRefresh; + } + + public void setEnforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + } + + public OrganizationApiKeyRule isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * Whether this rule is currently active and enforced. + * @return isEnabled + **/ + @ApiModelProperty(value = "Whether this rule is currently active and enforced.") + public Boolean isIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + /** + * The last time this rule was evaluated and applied by the expiry task. + * @return lastAppliedAt + **/ + @Valid + @ApiModelProperty(value = "The last time this rule was evaluated and applied by the expiry task.") + public OffsetDateTime getLastAppliedAt() { + return lastAppliedAt; + } + + public OrganizationApiKeyRule maxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + return this; + } + + /** + * The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + * minimum: 24 + * maximum: 2147483647 + * @return maxAgeHours + **/ + @Min(24L) @Max(2147483647L) @ApiModelProperty(value = "The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value.") + public java.math.BigInteger getMaxAgeHours() { + return maxAgeHours; + } + + public void setMaxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + } + + public OrganizationApiKeyRule ruleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + return this; + } + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + * @return ruleType + **/ + @NotNull + @ApiModelProperty(required = true, value = "Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only.") + public RuleTypeEnum getRuleType() { + return ruleType; + } + + public void setRuleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + } + + /** + * Human-readable identifier for the rule type. Automatically generated based on the rule type. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "Human-readable identifier for the rule type. Automatically generated based on the rule type.") + public String getSlug() { + return slug; + } + + /** + * An auto-generated id that uniquely identifies the API key policy. + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "An auto-generated id that uniquely identifies the API key policy.") + public String getSlugPerm() { + return slugPerm; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationApiKeyRule organizationApiKeyRule = (OrganizationApiKeyRule) o; + return Objects.equals(this.createdAt, organizationApiKeyRule.createdAt) && + Objects.equals(this.enforceRefresh, organizationApiKeyRule.enforceRefresh) && + Objects.equals(this.isEnabled, organizationApiKeyRule.isEnabled) && + Objects.equals(this.lastAppliedAt, organizationApiKeyRule.lastAppliedAt) && + Objects.equals(this.maxAgeHours, organizationApiKeyRule.maxAgeHours) && + Objects.equals(this.ruleType, organizationApiKeyRule.ruleType) && + Objects.equals(this.slug, organizationApiKeyRule.slug) && + Objects.equals(this.slugPerm, organizationApiKeyRule.slugPerm) && + Objects.equals(this.updatedAt, organizationApiKeyRule.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, enforceRefresh, isEnabled, lastAppliedAt, maxAgeHours, ruleType, slug, slugPerm, updatedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationApiKeyRule {\n"); + + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" enforceRefresh: ").append(toIndentedString(enforceRefresh)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" lastAppliedAt: ").append(toIndentedString(lastAppliedAt)).append("\n"); + sb.append(" maxAgeHours: ").append(toIndentedString(maxAgeHours)).append("\n"); + sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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/OrganizationApiKeyRuleRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRuleRequest.java new file mode 100644 index 00000000..8cc15b04 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRuleRequest.java @@ -0,0 +1,243 @@ +/* + * 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; + +/** + * OrganizationApiKeyRuleRequest + */ + +public class OrganizationApiKeyRuleRequest implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("enforce_refresh") + private Boolean enforceRefresh = null; + + @SerializedName("is_enabled") + private Boolean isEnabled = null; + + @SerializedName("max_age_hours") + private java.math.BigInteger maxAgeHours = null; + + @SerializedName("refresh_immediately") + private Boolean refreshImmediately = null; + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + */ + @JsonAdapter(RuleTypeEnum.Adapter.class) + public enum RuleTypeEnum { + ALL_ACCOUNTS("All Accounts"), + + SERVICE_ACCOUNTS("Service Accounts"), + + USER_ACCOUNTS("User Accounts"); + + private String value; + + RuleTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RuleTypeEnum fromValue(String text) { + for (RuleTypeEnum b : RuleTypeEnum.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 RuleTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RuleTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RuleTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("rule_type") + private RuleTypeEnum ruleType = null; + + public OrganizationApiKeyRuleRequest enforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + return this; + } + + /** + * When enabled, API keys that violate the organization's rule will be replaced automatically. + * @return enforceRefresh + **/ + @ApiModelProperty(value = "When enabled, API keys that violate the organization's rule will be replaced automatically.") + public Boolean isEnforceRefresh() { + return enforceRefresh; + } + + public void setEnforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + } + + public OrganizationApiKeyRuleRequest isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * Whether this rule is currently active and enforced. + * @return isEnabled + **/ + @ApiModelProperty(value = "Whether this rule is currently active and enforced.") + public Boolean isIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + public OrganizationApiKeyRuleRequest maxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + return this; + } + + /** + * The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + * minimum: 24 + * maximum: 2147483647 + * @return maxAgeHours + **/ + @Min(24L) @Max(2147483647L) @ApiModelProperty(value = "The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value.") + public java.math.BigInteger getMaxAgeHours() { + return maxAgeHours; + } + + public void setMaxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + } + + public OrganizationApiKeyRuleRequest refreshImmediately(Boolean refreshImmediately) { + this.refreshImmediately = refreshImmediately; + return this; + } + + /** + * If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + * @return refreshImmediately + **/ + @ApiModelProperty(value = "If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this.") + public Boolean isRefreshImmediately() { + return refreshImmediately; + } + + public void setRefreshImmediately(Boolean refreshImmediately) { + this.refreshImmediately = refreshImmediately; + } + + public OrganizationApiKeyRuleRequest ruleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + return this; + } + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + * @return ruleType + **/ + @NotNull + @ApiModelProperty(required = true, value = "Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only.") + public RuleTypeEnum getRuleType() { + return ruleType; + } + + public void setRuleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationApiKeyRuleRequest organizationApiKeyRuleRequest = (OrganizationApiKeyRuleRequest) o; + return Objects.equals(this.enforceRefresh, organizationApiKeyRuleRequest.enforceRefresh) && + Objects.equals(this.isEnabled, organizationApiKeyRuleRequest.isEnabled) && + Objects.equals(this.maxAgeHours, organizationApiKeyRuleRequest.maxAgeHours) && + Objects.equals(this.refreshImmediately, organizationApiKeyRuleRequest.refreshImmediately) && + Objects.equals(this.ruleType, organizationApiKeyRuleRequest.ruleType); + } + + @Override + public int hashCode() { + return Objects.hash(enforceRefresh, isEnabled, maxAgeHours, refreshImmediately, ruleType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationApiKeyRuleRequest {\n"); + + sb.append(" enforceRefresh: ").append(toIndentedString(enforceRefresh)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" maxAgeHours: ").append(toIndentedString(maxAgeHours)).append("\n"); + sb.append(" refreshImmediately: ").append(toIndentedString(refreshImmediately)).append("\n"); + sb.append(" ruleType: ").append(toIndentedString(ruleType)).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/OrganizationApiKeyRuleRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRuleRequestPatch.java new file mode 100644 index 00000000..e67b51c7 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationApiKeyRuleRequestPatch.java @@ -0,0 +1,242 @@ +/* + * 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; + +/** + * OrganizationApiKeyRuleRequestPatch + */ + +public class OrganizationApiKeyRuleRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("enforce_refresh") + private Boolean enforceRefresh = null; + + @SerializedName("is_enabled") + private Boolean isEnabled = null; + + @SerializedName("max_age_hours") + private java.math.BigInteger maxAgeHours = null; + + @SerializedName("refresh_immediately") + private Boolean refreshImmediately = null; + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + */ + @JsonAdapter(RuleTypeEnum.Adapter.class) + public enum RuleTypeEnum { + ALL_ACCOUNTS("All Accounts"), + + SERVICE_ACCOUNTS("Service Accounts"), + + USER_ACCOUNTS("User Accounts"); + + private String value; + + RuleTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RuleTypeEnum fromValue(String text) { + for (RuleTypeEnum b : RuleTypeEnum.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 RuleTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RuleTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RuleTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("rule_type") + private RuleTypeEnum ruleType = null; + + public OrganizationApiKeyRuleRequestPatch enforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + return this; + } + + /** + * When enabled, API keys that violate the organization's rule will be replaced automatically. + * @return enforceRefresh + **/ + @ApiModelProperty(value = "When enabled, API keys that violate the organization's rule will be replaced automatically.") + public Boolean isEnforceRefresh() { + return enforceRefresh; + } + + public void setEnforceRefresh(Boolean enforceRefresh) { + this.enforceRefresh = enforceRefresh; + } + + public OrganizationApiKeyRuleRequestPatch isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * Whether this rule is currently active and enforced. + * @return isEnabled + **/ + @ApiModelProperty(value = "Whether this rule is currently active and enforced.") + public Boolean isIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + public OrganizationApiKeyRuleRequestPatch maxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + return this; + } + + /** + * The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + * minimum: 24 + * maximum: 2147483647 + * @return maxAgeHours + **/ + @Min(24L) @Max(2147483647L) @ApiModelProperty(value = "The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value.") + public java.math.BigInteger getMaxAgeHours() { + return maxAgeHours; + } + + public void setMaxAgeHours(java.math.BigInteger maxAgeHours) { + this.maxAgeHours = maxAgeHours; + } + + public OrganizationApiKeyRuleRequestPatch refreshImmediately(Boolean refreshImmediately) { + this.refreshImmediately = refreshImmediately; + return this; + } + + /** + * If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + * @return refreshImmediately + **/ + @ApiModelProperty(value = "If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this.") + public Boolean isRefreshImmediately() { + return refreshImmediately; + } + + public void setRefreshImmediately(Boolean refreshImmediately) { + this.refreshImmediately = refreshImmediately; + } + + public OrganizationApiKeyRuleRequestPatch ruleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + return this; + } + + /** + * Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + * @return ruleType + **/ + @ApiModelProperty(value = "Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only.") + public RuleTypeEnum getRuleType() { + return ruleType; + } + + public void setRuleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationApiKeyRuleRequestPatch organizationApiKeyRuleRequestPatch = (OrganizationApiKeyRuleRequestPatch) o; + return Objects.equals(this.enforceRefresh, organizationApiKeyRuleRequestPatch.enforceRefresh) && + Objects.equals(this.isEnabled, organizationApiKeyRuleRequestPatch.isEnabled) && + Objects.equals(this.maxAgeHours, organizationApiKeyRuleRequestPatch.maxAgeHours) && + Objects.equals(this.refreshImmediately, organizationApiKeyRuleRequestPatch.refreshImmediately) && + Objects.equals(this.ruleType, organizationApiKeyRuleRequestPatch.ruleType); + } + + @Override + public int hashCode() { + return Objects.hash(enforceRefresh, isEnabled, maxAgeHours, refreshImmediately, ruleType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OrganizationApiKeyRuleRequestPatch {\n"); + + sb.append(" enforceRefresh: ").append(toIndentedString(enforceRefresh)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" maxAgeHours: ").append(toIndentedString(maxAgeHours)).append("\n"); + sb.append(" refreshImmediately: ").append(toIndentedString(refreshImmediately)).append("\n"); + sb.append(" ruleType: ").append(toIndentedString(ruleType)).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/P2PackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java index a4739af4..72682a95 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class P2PackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class P2PackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public P2PackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public P2PackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, p2PackageUpload.dependenciesUrl) && Objects.equals(this.description, p2PackageUpload.description) && Objects.equals(this.displayName, p2PackageUpload.displayName) && + Objects.equals(this.displaySource, p2PackageUpload.displaySource) && Objects.equals(this.distro, p2PackageUpload.distro) && Objects.equals(this.distroVersion, p2PackageUpload.distroVersion) && Objects.equals(this.downloads, p2PackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, p2PackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, p2PackageUpload.isDownloadable) && Objects.equals(this.isHidden, p2PackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, p2PackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, p2PackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, p2PackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, p2PackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, p2PackageUpload.uploaderUrl) && Objects.equals(this.version, p2PackageUpload.version) && Objects.equals(this.versionOrig, p2PackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, p2PackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, p2PackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java index 1c6d6f13..e4e6a5f5 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class P2PackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class P2PackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public P2PackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public P2PackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } P2PackageUploadRequest p2PackageUploadRequest = (P2PackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, p2PackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && Objects.equals(this.republish, p2PackageUploadRequest.republish) && - Objects.equals(this.tags, p2PackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, p2PackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, p2PackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class P2PackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 4dd1d0b0..0327bf90 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PackageCopy implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -135,9 +137,6 @@ public class PackageCopy implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -374,9 +373,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -471,6 +467,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageCopy distro(Distribution distro) { this.distro = distro; return this; @@ -672,15 +677,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1250,25 +1246,6 @@ public String getVersionOrig() { return versionOrig; } - public PackageCopy vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1298,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageCopy.dependenciesUrl) && Objects.equals(this.description, packageCopy.description) && Objects.equals(this.displayName, packageCopy.displayName) && + Objects.equals(this.displaySource, packageCopy.displaySource) && Objects.equals(this.distro, packageCopy.distro) && Objects.equals(this.distroVersion, packageCopy.distroVersion) && Objects.equals(this.downloads, packageCopy.downloads) && @@ -1318,7 +1296,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageCopy.isDeleteable) && Objects.equals(this.isDownloadable, packageCopy.isDownloadable) && Objects.equals(this.isHidden, packageCopy.isHidden) && - Objects.equals(this.isMalwareDetected, packageCopy.isMalwareDetected) && Objects.equals(this.isMoveable, packageCopy.isMoveable) && Objects.equals(this.isQuarantinable, packageCopy.isQuarantinable) && Objects.equals(this.isQuarantined, packageCopy.isQuarantined) && @@ -1378,13 +1355,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, packageCopy.uploaderUrl) && Objects.equals(this.version, packageCopy.version) && Objects.equals(this.versionOrig, packageCopy.versionOrig) && - Objects.equals(this.vulnerabilityCounts, packageCopy.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageCopy.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1403,6 +1379,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1423,7 +1400,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1483,7 +1459,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java index 926fc714..978a9d53 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopyRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,15 +37,9 @@ public class PackageCopyRequest implements Serializable { @SerializedName("destination") private String destination = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("republish") private Boolean republish = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public PackageCopyRequest destination(String destination) { this.destination = destination; return this; @@ -66,15 +59,6 @@ public void setDestination(String destination) { this.destination = destination; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PackageCopyRequest republish(Boolean republish) { this.republish = republish; return this; @@ -93,25 +77,6 @@ public void setRepublish(Boolean republish) { this.republish = republish; } - public PackageCopyRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -123,14 +88,12 @@ public boolean equals(java.lang.Object o) { } PackageCopyRequest packageCopyRequest = (PackageCopyRequest) o; return Objects.equals(this.destination, packageCopyRequest.destination) && - Objects.equals(this.isMalwareDetected, packageCopyRequest.isMalwareDetected) && - Objects.equals(this.republish, packageCopyRequest.republish) && - Objects.equals(this.vulnerabilityCounts, packageCopyRequest.vulnerabilityCounts); + Objects.equals(this.republish, packageCopyRequest.republish); } @Override public int hashCode() { - return Objects.hash(destination, isMalwareDetected, republish, vulnerabilityCounts); + return Objects.hash(destination, republish); } @@ -140,9 +103,7 @@ public String toString() { sb.append("class PackageCopyRequest {\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java index 1ffaa5f2..5eb37107 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java @@ -75,6 +75,9 @@ public class PackageDetail implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -474,6 +477,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageDetail distro(Distribution distro) { this.distro = distro; return this; @@ -1310,6 +1322,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageDetail.dependenciesUrl) && Objects.equals(this.description, packageDetail.description) && Objects.equals(this.displayName, packageDetail.displayName) && + Objects.equals(this.displaySource, packageDetail.displaySource) && Objects.equals(this.distro, packageDetail.distro) && Objects.equals(this.distroVersion, packageDetail.distroVersion) && Objects.equals(this.downloads, packageDetail.downloads) && @@ -1397,7 +1410,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, hasDependencies, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, distro, distroVersion, downloads, epoch, extension, filename, filepath, files, format, formatUrl, freeableStorage, fullyQualifiedName, hasDependencies, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1416,6 +1429,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java index fcfdf5f0..b5d1e2ac 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicense.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class PackageLicense implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("license_notes") private String licenseNotes = null; @@ -99,18 +95,6 @@ public LicenseOverrideEnum read(final JsonReader jsonReader) throws IOException @SerializedName("spdx_license") private String spdxLicense = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PackageLicense licenseNotes(String licenseNotes) { this.licenseNotes = licenseNotes; return this; @@ -184,25 +168,6 @@ public void setSpdxLicense(String spdxLicense) { this.spdxLicense = spdxLicense; } - public PackageLicense vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -213,17 +178,15 @@ public boolean equals(java.lang.Object o) { return false; } PackageLicense packageLicense = (PackageLicense) o; - return Objects.equals(this.isMalwareDetected, packageLicense.isMalwareDetected) && - Objects.equals(this.licenseNotes, packageLicense.licenseNotes) && + return Objects.equals(this.licenseNotes, packageLicense.licenseNotes) && Objects.equals(this.licenseOverride, packageLicense.licenseOverride) && Objects.equals(this.licenseUrl, packageLicense.licenseUrl) && - Objects.equals(this.spdxLicense, packageLicense.spdxLicense) && - Objects.equals(this.vulnerabilityCounts, packageLicense.vulnerabilityCounts); + Objects.equals(this.spdxLicense, packageLicense.spdxLicense); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); + return Objects.hash(licenseNotes, licenseOverride, licenseUrl, spdxLicense); } @@ -232,12 +195,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PackageLicense {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseNotes: ").append(toIndentedString(licenseNotes)).append("\n"); sb.append(" licenseOverride: ").append(toIndentedString(licenseOverride)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java index 1b91bd8d..8b691b7b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageLicenseRequestPatch.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -83,9 +82,6 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("action") private ActionEnum action = ActionEnum.UPDATE; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("license_notes") private String licenseNotes = null; @@ -147,9 +143,6 @@ public LicenseOverrideEnum read(final JsonReader jsonReader) throws IOException @SerializedName("spdx_license") private String spdxLicense = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public PackageLicenseRequestPatch action(ActionEnum action) { this.action = action; return this; @@ -168,15 +161,6 @@ public void setAction(ActionEnum action) { this.action = action; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PackageLicenseRequestPatch licenseNotes(String licenseNotes) { this.licenseNotes = licenseNotes; return this; @@ -250,25 +234,6 @@ public void setSpdxLicense(String spdxLicense) { this.spdxLicense = spdxLicense; } - public PackageLicenseRequestPatch vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -280,17 +245,15 @@ public boolean equals(java.lang.Object o) { } PackageLicenseRequestPatch packageLicenseRequestPatch = (PackageLicenseRequestPatch) o; return Objects.equals(this.action, packageLicenseRequestPatch.action) && - Objects.equals(this.isMalwareDetected, packageLicenseRequestPatch.isMalwareDetected) && Objects.equals(this.licenseNotes, packageLicenseRequestPatch.licenseNotes) && Objects.equals(this.licenseOverride, packageLicenseRequestPatch.licenseOverride) && Objects.equals(this.licenseUrl, packageLicenseRequestPatch.licenseUrl) && - Objects.equals(this.spdxLicense, packageLicenseRequestPatch.spdxLicense) && - Objects.equals(this.vulnerabilityCounts, packageLicenseRequestPatch.vulnerabilityCounts); + Objects.equals(this.spdxLicense, packageLicenseRequestPatch.spdxLicense); } @Override public int hashCode() { - return Objects.hash(action, isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); + return Objects.hash(action, licenseNotes, licenseOverride, licenseUrl, spdxLicense); } @@ -300,12 +263,10 @@ public String toString() { sb.append("class PackageLicenseRequestPatch {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseNotes: ").append(toIndentedString(licenseNotes)).append("\n"); sb.append(" licenseOverride: ").append(toIndentedString(licenseOverride)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 b8f1c068..9b41d6dc 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PackageMove implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -135,9 +137,6 @@ public class PackageMove implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -374,9 +373,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -471,6 +467,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageMove distro(Distribution distro) { this.distro = distro; return this; @@ -672,15 +677,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1250,25 +1246,6 @@ public String getVersionOrig() { return versionOrig; } - public PackageMove vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1298,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageMove.dependenciesUrl) && Objects.equals(this.description, packageMove.description) && Objects.equals(this.displayName, packageMove.displayName) && + Objects.equals(this.displaySource, packageMove.displaySource) && Objects.equals(this.distro, packageMove.distro) && Objects.equals(this.distroVersion, packageMove.distroVersion) && Objects.equals(this.downloads, packageMove.downloads) && @@ -1318,7 +1296,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageMove.isDeleteable) && Objects.equals(this.isDownloadable, packageMove.isDownloadable) && Objects.equals(this.isHidden, packageMove.isHidden) && - Objects.equals(this.isMalwareDetected, packageMove.isMalwareDetected) && Objects.equals(this.isMoveable, packageMove.isMoveable) && Objects.equals(this.isQuarantinable, packageMove.isQuarantinable) && Objects.equals(this.isQuarantined, packageMove.isQuarantined) && @@ -1378,13 +1355,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, packageMove.uploaderUrl) && Objects.equals(this.version, packageMove.version) && Objects.equals(this.versionOrig, packageMove.versionOrig) && - Objects.equals(this.vulnerabilityCounts, packageMove.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageMove.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1403,6 +1379,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1423,7 +1400,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1483,7 +1459,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java index 1f811051..525d7c4f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMoveRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,12 +37,6 @@ public class PackageMoveRequest implements Serializable { @SerializedName("destination") private String destination = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public PackageMoveRequest destination(String destination) { this.destination = destination; return this; @@ -63,34 +56,6 @@ public void setDestination(String destination) { this.destination = destination; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - - public PackageMoveRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -101,14 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } PackageMoveRequest packageMoveRequest = (PackageMoveRequest) o; - return Objects.equals(this.destination, packageMoveRequest.destination) && - Objects.equals(this.isMalwareDetected, packageMoveRequest.isMalwareDetected) && - Objects.equals(this.vulnerabilityCounts, packageMoveRequest.vulnerabilityCounts); + return Objects.equals(this.destination, packageMoveRequest.destination); } @Override public int hashCode() { - return Objects.hash(destination, isMalwareDetected, vulnerabilityCounts); + return Objects.hash(destination); } @@ -118,8 +81,6 @@ public String toString() { sb.append("class PackageMoveRequest {\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 cb7af64e..c570afb5 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PackageQuarantine implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -135,9 +137,6 @@ public class PackageQuarantine implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -371,9 +370,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -468,6 +464,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageQuarantine distro(Distribution distro) { this.distro = distro; return this; @@ -669,15 +674,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1238,25 +1234,6 @@ public String getVersionOrig() { return versionOrig; } - public PackageQuarantine vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1286,6 +1263,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageQuarantine.dependenciesUrl) && Objects.equals(this.description, packageQuarantine.description) && Objects.equals(this.displayName, packageQuarantine.displayName) && + Objects.equals(this.displaySource, packageQuarantine.displaySource) && Objects.equals(this.distro, packageQuarantine.distro) && Objects.equals(this.distroVersion, packageQuarantine.distroVersion) && Objects.equals(this.downloads, packageQuarantine.downloads) && @@ -1306,7 +1284,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageQuarantine.isDeleteable) && Objects.equals(this.isDownloadable, packageQuarantine.isDownloadable) && Objects.equals(this.isHidden, packageQuarantine.isHidden) && - Objects.equals(this.isMalwareDetected, packageQuarantine.isMalwareDetected) && Objects.equals(this.isMoveable, packageQuarantine.isMoveable) && Objects.equals(this.isQuarantinable, packageQuarantine.isQuarantinable) && Objects.equals(this.isQuarantined, packageQuarantine.isQuarantined) && @@ -1365,13 +1342,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, packageQuarantine.uploaderUrl) && Objects.equals(this.version, packageQuarantine.version) && Objects.equals(this.versionOrig, packageQuarantine.versionOrig) && - Objects.equals(this.vulnerabilityCounts, packageQuarantine.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageQuarantine.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1390,6 +1366,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1410,7 +1387,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1469,7 +1445,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java index 3684e8a0..814cc42b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageQuarantineRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,27 +34,12 @@ public class PackageQuarantineRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("release") private Boolean release = null; @SerializedName("restore") private Boolean restore = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PackageQuarantineRequest release(Boolean release) { this.release = release; return this; @@ -92,25 +76,6 @@ public void setRestore(Boolean restore) { this.restore = restore; } - public PackageQuarantineRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -121,15 +86,13 @@ public boolean equals(java.lang.Object o) { return false; } PackageQuarantineRequest packageQuarantineRequest = (PackageQuarantineRequest) o; - return Objects.equals(this.isMalwareDetected, packageQuarantineRequest.isMalwareDetected) && - Objects.equals(this.release, packageQuarantineRequest.release) && - Objects.equals(this.restore, packageQuarantineRequest.restore) && - Objects.equals(this.vulnerabilityCounts, packageQuarantineRequest.vulnerabilityCounts); + return Objects.equals(this.release, packageQuarantineRequest.release) && + Objects.equals(this.restore, packageQuarantineRequest.restore); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, release, restore, vulnerabilityCounts); + return Objects.hash(release, restore); } @@ -138,10 +101,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PackageQuarantineRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" release: ").append(toIndentedString(release)).append("\n"); sb.append(" restore: ").append(toIndentedString(restore)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 0cbb8b68..5649fb9a 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PackageResync implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -135,9 +137,6 @@ public class PackageResync implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -374,9 +373,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -471,6 +467,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageResync distro(Distribution distro) { this.distro = distro; return this; @@ -672,15 +677,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1250,25 +1246,6 @@ public String getVersionOrig() { return versionOrig; } - public PackageResync vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1298,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageResync.dependenciesUrl) && Objects.equals(this.description, packageResync.description) && Objects.equals(this.displayName, packageResync.displayName) && + Objects.equals(this.displaySource, packageResync.displaySource) && Objects.equals(this.distro, packageResync.distro) && Objects.equals(this.distroVersion, packageResync.distroVersion) && Objects.equals(this.downloads, packageResync.downloads) && @@ -1318,7 +1296,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, packageResync.isDeleteable) && Objects.equals(this.isDownloadable, packageResync.isDownloadable) && Objects.equals(this.isHidden, packageResync.isHidden) && - Objects.equals(this.isMalwareDetected, packageResync.isMalwareDetected) && Objects.equals(this.isMoveable, packageResync.isMoveable) && Objects.equals(this.isQuarantinable, packageResync.isQuarantinable) && Objects.equals(this.isQuarantined, packageResync.isQuarantined) && @@ -1378,13 +1355,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, packageResync.uploaderUrl) && Objects.equals(this.version, packageResync.version) && Objects.equals(this.versionOrig, packageResync.versionOrig) && - Objects.equals(this.vulnerabilityCounts, packageResync.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageResync.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1403,6 +1379,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1423,7 +1400,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1483,7 +1459,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); 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 749f963f..426c3936 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PackageTag implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -138,9 +140,6 @@ public class PackageTag implements Serializable { @SerializedName("is_immutable") private Boolean isImmutable = false; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -374,9 +373,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -471,6 +467,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PackageTag distro(Distribution distro) { this.distro = distro; return this; @@ -690,15 +695,6 @@ public void setIsImmutable(Boolean isImmutable) { this.isImmutable = isImmutable; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1249,25 +1245,6 @@ public String getVersionOrig() { return versionOrig; } - public PackageTag vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1297,6 +1274,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, packageTag.dependenciesUrl) && Objects.equals(this.description, packageTag.description) && Objects.equals(this.displayName, packageTag.displayName) && + Objects.equals(this.displaySource, packageTag.displaySource) && Objects.equals(this.distro, packageTag.distro) && Objects.equals(this.distroVersion, packageTag.distroVersion) && Objects.equals(this.downloads, packageTag.downloads) && @@ -1318,7 +1296,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDownloadable, packageTag.isDownloadable) && Objects.equals(this.isHidden, packageTag.isHidden) && Objects.equals(this.isImmutable, packageTag.isImmutable) && - Objects.equals(this.isMalwareDetected, packageTag.isMalwareDetected) && Objects.equals(this.isMoveable, packageTag.isMoveable) && Objects.equals(this.isQuarantinable, packageTag.isQuarantinable) && Objects.equals(this.isQuarantined, packageTag.isQuarantined) && @@ -1377,13 +1354,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, packageTag.uploaderUrl) && Objects.equals(this.version, packageTag.version) && Objects.equals(this.versionOrig, packageTag.versionOrig) && - Objects.equals(this.vulnerabilityCounts, packageTag.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, packageTag.vulnerabilityScanResultsUrl); } @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, isHidden, isImmutable, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1402,6 +1378,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1423,7 +1400,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1482,7 +1458,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java index 4d28f828..737a88bc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageTagRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -94,15 +93,9 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("is_immutable") private Boolean isImmutable = false; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("tags") private List tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public PackageTagRequest action(ActionEnum action) { this.action = action; return this; @@ -139,15 +132,6 @@ public void setIsImmutable(Boolean isImmutable) { this.isImmutable = isImmutable; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PackageTagRequest tags(List tags) { this.tags = tags; return this; @@ -174,25 +158,6 @@ public void setTags(List tags) { this.tags = tags; } - public PackageTagRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -205,14 +170,12 @@ public boolean equals(java.lang.Object o) { PackageTagRequest packageTagRequest = (PackageTagRequest) o; return Objects.equals(this.action, packageTagRequest.action) && Objects.equals(this.isImmutable, packageTagRequest.isImmutable) && - Objects.equals(this.isMalwareDetected, packageTagRequest.isMalwareDetected) && - Objects.equals(this.tags, packageTagRequest.tags) && - Objects.equals(this.vulnerabilityCounts, packageTagRequest.vulnerabilityCounts); + Objects.equals(this.tags, packageTagRequest.tags); } @Override public int hashCode() { - return Objects.hash(action, isImmutable, isMalwareDetected, tags, vulnerabilityCounts); + return Objects.hash(action, isImmutable, tags); } @@ -223,9 +186,7 @@ public String toString() { sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" isImmutable: ").append(toIndentedString(isImmutable)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java index 25f70408..caeac4f4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageVulnerability.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,9 +37,6 @@ public class PackageVulnerability implements Serializable { @SerializedName("identifier") private String identifier = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("name") private String name = null; @@ -50,9 +46,6 @@ public class PackageVulnerability implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public PackageVulnerability identifier(String identifier) { this.identifier = identifier; return this; @@ -72,15 +65,6 @@ public void setIdentifier(String identifier) { this.identifier = identifier; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * The name of this package. * @return name @@ -108,25 +92,6 @@ public String getVersion() { return version; } - public PackageVulnerability vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -138,16 +103,14 @@ public boolean equals(java.lang.Object o) { } PackageVulnerability packageVulnerability = (PackageVulnerability) o; return Objects.equals(this.identifier, packageVulnerability.identifier) && - Objects.equals(this.isMalwareDetected, packageVulnerability.isMalwareDetected) && Objects.equals(this.name, packageVulnerability.name) && Objects.equals(this.url, packageVulnerability.url) && - Objects.equals(this.version, packageVulnerability.version) && - Objects.equals(this.vulnerabilityCounts, packageVulnerability.vulnerabilityCounts); + Objects.equals(this.version, packageVulnerability.version); } @Override public int hashCode() { - return Objects.hash(identifier, isMalwareDetected, name, url, version, vulnerabilityCounts); + return Objects.hash(identifier, name, url, version); } @@ -157,11 +120,9 @@ public String toString() { sb.append("class PackageVulnerability {\n"); sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 c022c173..16a3b3e4 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class PythonPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class PythonPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public PythonPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public PythonPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, pythonPackageUpload.dependenciesUrl) && Objects.equals(this.description, pythonPackageUpload.description) && Objects.equals(this.displayName, pythonPackageUpload.displayName) && + Objects.equals(this.displaySource, pythonPackageUpload.displaySource) && Objects.equals(this.distro, pythonPackageUpload.distro) && Objects.equals(this.distroVersion, pythonPackageUpload.distroVersion) && Objects.equals(this.downloads, pythonPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, pythonPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, pythonPackageUpload.isDownloadable) && Objects.equals(this.isHidden, pythonPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, pythonPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, pythonPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, pythonPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, pythonPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, pythonPackageUpload.uploaderUrl) && Objects.equals(this.version, pythonPackageUpload.version) && Objects.equals(this.versionOrig, pythonPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, pythonPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, pythonPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java index 740ed53e..39c84e51 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PythonPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class PythonPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class PythonPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public PythonPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public PythonPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } PythonPackageUploadRequest pythonPackageUploadRequest = (PythonPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, pythonPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && Objects.equals(this.republish, pythonPackageUploadRequest.republish) && - Objects.equals(this.tags, pythonPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, pythonPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, pythonPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PythonPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 359250a2..74a2b664 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class RawPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class RawPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -474,6 +470,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public RawPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -666,15 +671,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1252,25 +1248,6 @@ public String getVersionOrig() { return versionOrig; } - public RawPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1300,6 +1277,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, rawPackageUpload.dependenciesUrl) && Objects.equals(this.description, rawPackageUpload.description) && Objects.equals(this.displayName, rawPackageUpload.displayName) && + Objects.equals(this.displaySource, rawPackageUpload.displaySource) && Objects.equals(this.distro, rawPackageUpload.distro) && Objects.equals(this.distroVersion, rawPackageUpload.distroVersion) && Objects.equals(this.downloads, rawPackageUpload.downloads) && @@ -1319,7 +1297,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rawPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rawPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rawPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, rawPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rawPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rawPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rawPackageUpload.isQuarantined) && @@ -1378,13 +1355,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, rawPackageUpload.uploaderUrl) && Objects.equals(this.version, rawPackageUpload.version) && Objects.equals(this.versionOrig, rawPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, rawPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rawPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1403,6 +1379,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1422,7 +1399,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1481,7 +1457,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java index b2450479..103741c1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -41,9 +40,6 @@ public class RawPackageUploadRequest implements Serializable { @SerializedName("description") private String description = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("name") private String name = null; @@ -62,9 +58,6 @@ public class RawPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public RawPackageUploadRequest contentType(String contentType) { this.contentType = contentType; return this; @@ -101,15 +94,6 @@ public void setDescription(String description) { this.description = description; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public RawPackageUploadRequest name(String name) { this.name = name; return this; @@ -219,25 +203,6 @@ public void setVersion(String version) { this.version = version; } - public RawPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -250,19 +215,17 @@ public boolean equals(java.lang.Object o) { RawPackageUploadRequest rawPackageUploadRequest = (RawPackageUploadRequest) o; return Objects.equals(this.contentType, rawPackageUploadRequest.contentType) && Objects.equals(this.description, rawPackageUploadRequest.description) && - Objects.equals(this.isMalwareDetected, rawPackageUploadRequest.isMalwareDetected) && Objects.equals(this.name, rawPackageUploadRequest.name) && Objects.equals(this.packageFile, rawPackageUploadRequest.packageFile) && Objects.equals(this.republish, rawPackageUploadRequest.republish) && Objects.equals(this.summary, rawPackageUploadRequest.summary) && Objects.equals(this.tags, rawPackageUploadRequest.tags) && - Objects.equals(this.version, rawPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, rawPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, rawPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(contentType, description, isMalwareDetected, name, packageFile, republish, summary, tags, version, vulnerabilityCounts); + return Objects.hash(contentType, description, name, packageFile, republish, summary, tags, version); } @@ -273,14 +236,12 @@ public String toString() { sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 a2388ebd..88821c43 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class RpmPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class RpmPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public RpmPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public RpmPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, rpmPackageUpload.dependenciesUrl) && Objects.equals(this.description, rpmPackageUpload.description) && Objects.equals(this.displayName, rpmPackageUpload.displayName) && + Objects.equals(this.displaySource, rpmPackageUpload.displaySource) && Objects.equals(this.distro, rpmPackageUpload.distro) && Objects.equals(this.distroVersion, rpmPackageUpload.distroVersion) && Objects.equals(this.downloads, rpmPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rpmPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rpmPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rpmPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, rpmPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rpmPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rpmPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rpmPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, rpmPackageUpload.uploaderUrl) && Objects.equals(this.version, rpmPackageUpload.version) && Objects.equals(this.versionOrig, rpmPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, rpmPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rpmPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java index 1e3d09a6..639da48a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RpmPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,9 +37,6 @@ public class RpmPackageUploadRequest implements Serializable { @SerializedName("distribution") private String distribution = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -50,9 +46,6 @@ public class RpmPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public RpmPackageUploadRequest distribution(String distribution) { this.distribution = distribution; return this; @@ -72,15 +65,6 @@ public void setDistribution(String distribution) { this.distribution = distribution; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public RpmPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -136,25 +120,6 @@ public void setTags(String tags) { this.tags = tags; } - public RpmPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -166,16 +131,14 @@ public boolean equals(java.lang.Object o) { } RpmPackageUploadRequest rpmPackageUploadRequest = (RpmPackageUploadRequest) o; return Objects.equals(this.distribution, rpmPackageUploadRequest.distribution) && - Objects.equals(this.isMalwareDetected, rpmPackageUploadRequest.isMalwareDetected) && Objects.equals(this.packageFile, rpmPackageUploadRequest.packageFile) && Objects.equals(this.republish, rpmPackageUploadRequest.republish) && - Objects.equals(this.tags, rpmPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, rpmPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, rpmPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(distribution, packageFile, republish, tags); } @@ -185,11 +148,9 @@ public String toString() { sb.append("class RpmPackageUploadRequest {\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 f9d66345..4b1def21 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class RubyPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class RubyPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public RubyPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public RubyPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, rubyPackageUpload.dependenciesUrl) && Objects.equals(this.description, rubyPackageUpload.description) && Objects.equals(this.displayName, rubyPackageUpload.displayName) && + Objects.equals(this.displaySource, rubyPackageUpload.displaySource) && Objects.equals(this.distro, rubyPackageUpload.distro) && Objects.equals(this.distroVersion, rubyPackageUpload.distroVersion) && Objects.equals(this.downloads, rubyPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, rubyPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, rubyPackageUpload.isDownloadable) && Objects.equals(this.isHidden, rubyPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, rubyPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, rubyPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, rubyPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, rubyPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, rubyPackageUpload.uploaderUrl) && Objects.equals(this.version, rubyPackageUpload.version) && Objects.equals(this.versionOrig, rubyPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, rubyPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, rubyPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java index ee6631aa..1c95923a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RubyPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class RubyPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class RubyPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public RubyPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public RubyPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } RubyPackageUploadRequest rubyPackageUploadRequest = (RubyPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, rubyPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && Objects.equals(this.republish, rubyPackageUploadRequest.republish) && - Objects.equals(this.tags, rubyPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, rubyPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, rubyPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RubyPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 1b7c611e..19cd490d 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -81,6 +80,9 @@ public class SwiftPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -138,9 +140,6 @@ public class SwiftPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -383,9 +382,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -516,6 +512,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public SwiftPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -708,15 +713,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1351,25 +1347,6 @@ public String getVersionOrig() { return versionOrig; } - public SwiftPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1401,6 +1378,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, swiftPackageUpload.dependenciesUrl) && Objects.equals(this.description, swiftPackageUpload.description) && Objects.equals(this.displayName, swiftPackageUpload.displayName) && + Objects.equals(this.displaySource, swiftPackageUpload.displaySource) && Objects.equals(this.distro, swiftPackageUpload.distro) && Objects.equals(this.distroVersion, swiftPackageUpload.distroVersion) && Objects.equals(this.downloads, swiftPackageUpload.downloads) && @@ -1420,7 +1398,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, swiftPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, swiftPackageUpload.isDownloadable) && Objects.equals(this.isHidden, swiftPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, swiftPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, swiftPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, swiftPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, swiftPackageUpload.isQuarantined) && @@ -1482,13 +1459,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, swiftPackageUpload.uploaderUrl) && Objects.equals(this.version, swiftPackageUpload.version) && Objects.equals(this.versionOrig, swiftPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, swiftPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, swiftPackageUpload.vulnerabilityScanResultsUrl); } @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, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, authorName, authorOrg, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1509,6 +1485,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1528,7 +1505,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1590,7 +1566,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java index 2dc179f4..46676d8e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/SwiftPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -41,9 +40,6 @@ public class SwiftPackageUploadRequest implements Serializable { @SerializedName("author_org") private String authorOrg = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("license_url") private String licenseUrl = null; @@ -71,9 +67,6 @@ public class SwiftPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - public SwiftPackageUploadRequest authorName(String authorName) { this.authorName = authorName; return this; @@ -110,15 +103,6 @@ public void setAuthorOrg(String authorOrg) { this.authorOrg = authorOrg; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public SwiftPackageUploadRequest licenseUrl(String licenseUrl) { this.licenseUrl = licenseUrl; return this; @@ -285,25 +269,6 @@ public void setVersion(String version) { this.version = version; } - public SwiftPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -316,7 +281,6 @@ public boolean equals(java.lang.Object o) { SwiftPackageUploadRequest swiftPackageUploadRequest = (SwiftPackageUploadRequest) o; return Objects.equals(this.authorName, swiftPackageUploadRequest.authorName) && Objects.equals(this.authorOrg, swiftPackageUploadRequest.authorOrg) && - Objects.equals(this.isMalwareDetected, swiftPackageUploadRequest.isMalwareDetected) && Objects.equals(this.licenseUrl, swiftPackageUploadRequest.licenseUrl) && Objects.equals(this.name, swiftPackageUploadRequest.name) && Objects.equals(this.packageFile, swiftPackageUploadRequest.packageFile) && @@ -325,13 +289,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.republish, swiftPackageUploadRequest.republish) && Objects.equals(this.scope, swiftPackageUploadRequest.scope) && Objects.equals(this.tags, swiftPackageUploadRequest.tags) && - Objects.equals(this.version, swiftPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, swiftPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, swiftPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(authorName, authorOrg, isMalwareDetected, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version, vulnerabilityCounts); + return Objects.hash(authorName, authorOrg, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version); } @@ -342,7 +305,6 @@ public String toString() { sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); sb.append(" authorOrg: ").append(toIndentedString(authorOrg)).append("\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" licenseUrl: ").append(toIndentedString(licenseUrl)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); @@ -352,7 +314,6 @@ public String toString() { sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 d91a234b..e67afa7a 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class TerraformPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class TerraformPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public TerraformPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public TerraformPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, terraformPackageUpload.dependenciesUrl) && Objects.equals(this.description, terraformPackageUpload.description) && Objects.equals(this.displayName, terraformPackageUpload.displayName) && + Objects.equals(this.displaySource, terraformPackageUpload.displaySource) && Objects.equals(this.distro, terraformPackageUpload.distro) && Objects.equals(this.distroVersion, terraformPackageUpload.distroVersion) && Objects.equals(this.downloads, terraformPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, terraformPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, terraformPackageUpload.isDownloadable) && Objects.equals(this.isHidden, terraformPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, terraformPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, terraformPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, terraformPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, terraformPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, terraformPackageUpload.uploaderUrl) && Objects.equals(this.version, terraformPackageUpload.version) && Objects.equals(this.versionOrig, terraformPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, terraformPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, terraformPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java index afa76aad..7ed9b67e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/TerraformPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class TerraformPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class TerraformPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public TerraformPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public TerraformPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } TerraformPackageUploadRequest terraformPackageUploadRequest = (TerraformPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, terraformPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && Objects.equals(this.republish, terraformPackageUploadRequest.republish) && - Objects.equals(this.tags, terraformPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, terraformPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, terraformPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerraformPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 ba74c67b..917a772f 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class VagrantPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class VagrantPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -371,9 +370,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -468,6 +464,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public VagrantPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -660,15 +665,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1258,25 +1254,6 @@ public String getVersionOrig() { return versionOrig; } - public VagrantPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1306,6 +1283,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, vagrantPackageUpload.dependenciesUrl) && Objects.equals(this.description, vagrantPackageUpload.description) && Objects.equals(this.displayName, vagrantPackageUpload.displayName) && + Objects.equals(this.displaySource, vagrantPackageUpload.displaySource) && Objects.equals(this.distro, vagrantPackageUpload.distro) && Objects.equals(this.distroVersion, vagrantPackageUpload.distroVersion) && Objects.equals(this.downloads, vagrantPackageUpload.downloads) && @@ -1325,7 +1303,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, vagrantPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vagrantPackageUpload.isDownloadable) && Objects.equals(this.isHidden, vagrantPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, vagrantPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, vagrantPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vagrantPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vagrantPackageUpload.isQuarantined) && @@ -1385,13 +1362,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, vagrantPackageUpload.uploaderUrl) && Objects.equals(this.version, vagrantPackageUpload.version) && Objects.equals(this.versionOrig, vagrantPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, vagrantPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, vagrantPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1410,6 +1386,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1429,7 +1406,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1489,7 +1465,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java index 660dbbd7..b8f85943 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class VagrantPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("name") private String name = null; @@ -56,18 +52,6 @@ public class VagrantPackageUploadRequest implements Serializable { @SerializedName("version") private String version = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public VagrantPackageUploadRequest name(String name) { this.name = name; return this; @@ -180,25 +164,6 @@ public void setVersion(String version) { this.version = version; } - public VagrantPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -209,19 +174,17 @@ public boolean equals(java.lang.Object o) { return false; } VagrantPackageUploadRequest vagrantPackageUploadRequest = (VagrantPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, vagrantPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.name, vagrantPackageUploadRequest.name) && + return Objects.equals(this.name, vagrantPackageUploadRequest.name) && Objects.equals(this.packageFile, vagrantPackageUploadRequest.packageFile) && Objects.equals(this.provider, vagrantPackageUploadRequest.provider) && Objects.equals(this.republish, vagrantPackageUploadRequest.republish) && Objects.equals(this.tags, vagrantPackageUploadRequest.tags) && - Objects.equals(this.version, vagrantPackageUploadRequest.version) && - Objects.equals(this.vulnerabilityCounts, vagrantPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.version, vagrantPackageUploadRequest.version); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, name, packageFile, provider, republish, tags, version, vulnerabilityCounts); + return Objects.hash(name, packageFile, provider, republish, tags, version); } @@ -230,14 +193,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VagrantPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 55963737..241c2bba 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 @@ -25,7 +25,6 @@ import io.cloudsmith.api.models.DistributionVersion; import io.cloudsmith.api.models.PackageFile; import io.cloudsmith.api.models.Tags; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -75,6 +74,9 @@ public class VsxPackageUpload implements Serializable { @SerializedName("display_name") private String displayName = null; + @SerializedName("display_source") + private String displaySource = null; + @SerializedName("distro") private Distribution distro = null; @@ -132,9 +134,6 @@ public class VsxPackageUpload implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -368,9 +367,6 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version_orig") private String versionOrig = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - @SerializedName("vulnerability_scan_results_url") private String vulnerabilityScanResultsUrl = null; @@ -465,6 +461,15 @@ public String getDisplayName() { return displayName; } + /** + * Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + * @return displaySource + **/ + @Size(min=1) @ApiModelProperty(value = "Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).") + public String getDisplaySource() { + return displaySource; + } + public VsxPackageUpload distro(Distribution distro) { this.distro = distro; return this; @@ -657,15 +662,6 @@ public Boolean isIsHidden() { return isHidden; } - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - /** * Get isMoveable * @return isMoveable @@ -1216,25 +1212,6 @@ public String getVersionOrig() { return versionOrig; } - public VsxPackageUpload vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - /** * Get vulnerabilityScanResultsUrl * @return vulnerabilityScanResultsUrl @@ -1264,6 +1241,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.dependenciesUrl, vsxPackageUpload.dependenciesUrl) && Objects.equals(this.description, vsxPackageUpload.description) && Objects.equals(this.displayName, vsxPackageUpload.displayName) && + Objects.equals(this.displaySource, vsxPackageUpload.displaySource) && Objects.equals(this.distro, vsxPackageUpload.distro) && Objects.equals(this.distroVersion, vsxPackageUpload.distroVersion) && Objects.equals(this.downloads, vsxPackageUpload.downloads) && @@ -1283,7 +1261,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, vsxPackageUpload.isDeleteable) && Objects.equals(this.isDownloadable, vsxPackageUpload.isDownloadable) && Objects.equals(this.isHidden, vsxPackageUpload.isHidden) && - Objects.equals(this.isMalwareDetected, vsxPackageUpload.isMalwareDetected) && Objects.equals(this.isMoveable, vsxPackageUpload.isMoveable) && Objects.equals(this.isQuarantinable, vsxPackageUpload.isQuarantinable) && Objects.equals(this.isQuarantined, vsxPackageUpload.isQuarantined) && @@ -1342,13 +1319,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaderUrl, vsxPackageUpload.uploaderUrl) && Objects.equals(this.version, vsxPackageUpload.version) && Objects.equals(this.versionOrig, vsxPackageUpload.versionOrig) && - Objects.equals(this.vulnerabilityCounts, vsxPackageUpload.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, vsxPackageUpload.vulnerabilityScanResultsUrl); } @Override public int hashCode() { - return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, distro, distroVersion, downloads, epoch, extension, filename, files, format, formatUrl, freeableStorage, fullyQualifiedName, identifierPerm, identifiers, indexed, isCancellable, isCopyable, isDeleteable, isDownloadable, isHidden, isMalwareDetected, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + return Objects.hash(architectures, cdnUrl, checksumMd5, checksumSha1, checksumSha256, checksumSha512, dependenciesChecksumMd5, dependenciesUrl, description, displayName, displaySource, 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, storePath, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); } @@ -1367,6 +1343,7 @@ public String toString() { sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displaySource: ").append(toIndentedString(displaySource)).append("\n"); sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); @@ -1386,7 +1363,6 @@ public String toString() { 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(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).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"); @@ -1445,7 +1421,6 @@ public String toString() { sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java index 73930700..d67c0379 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VsxPackageUploadRequest.java @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -35,9 +34,6 @@ public class VsxPackageUploadRequest implements Serializable { private static final long serialVersionUID = 1L; - @SerializedName("is_malware_detected") - private Boolean isMalwareDetected = null; - @SerializedName("package_file") private String packageFile = null; @@ -47,18 +43,6 @@ public class VsxPackageUploadRequest implements Serializable { @SerializedName("tags") private String tags = null; - @SerializedName("vulnerability_counts") - private WebOSVSeverityCounts vulnerabilityCounts = null; - - /** - * Whether the package has been detected as containing malware. Requires Ultra plan. - * @return isMalwareDetected - **/ - @ApiModelProperty(value = "Whether the package has been detected as containing malware. Requires Ultra plan.") - public Boolean isIsMalwareDetected() { - return isMalwareDetected; - } - public VsxPackageUploadRequest packageFile(String packageFile) { this.packageFile = packageFile; return this; @@ -114,25 +98,6 @@ public void setTags(String tags) { this.tags = tags; } - public VsxPackageUploadRequest vulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - return this; - } - - /** - * Get vulnerabilityCounts - * @return vulnerabilityCounts - **/ - @Valid - @ApiModelProperty(value = "") - public WebOSVSeverityCounts getVulnerabilityCounts() { - return vulnerabilityCounts; - } - - public void setVulnerabilityCounts(WebOSVSeverityCounts vulnerabilityCounts) { - this.vulnerabilityCounts = vulnerabilityCounts; - } - @Override public boolean equals(java.lang.Object o) { @@ -143,16 +108,14 @@ public boolean equals(java.lang.Object o) { return false; } VsxPackageUploadRequest vsxPackageUploadRequest = (VsxPackageUploadRequest) o; - return Objects.equals(this.isMalwareDetected, vsxPackageUploadRequest.isMalwareDetected) && - Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && + return Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && Objects.equals(this.republish, vsxPackageUploadRequest.republish) && - Objects.equals(this.tags, vsxPackageUploadRequest.tags) && - Objects.equals(this.vulnerabilityCounts, vsxPackageUploadRequest.vulnerabilityCounts); + Objects.equals(this.tags, vsxPackageUploadRequest.tags); } @Override public int hashCode() { - return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); + return Objects.hash(packageFile, republish, tags); } @@ -161,11 +124,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VsxPackageUploadRequest {\n"); - sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 4b8f8b89..528963d0 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 @@ -18,6 +18,9 @@ import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.Organization; +import io.cloudsmith.api.models.OrganizationApiKeyRule; +import io.cloudsmith.api.models.OrganizationApiKeyRuleRequest; +import io.cloudsmith.api.models.OrganizationApiKeyRuleRequestPatch; import io.cloudsmith.api.models.OrganizationCustomDomains; import io.cloudsmith.api.models.OrganizationGroupSync; import io.cloudsmith.api.models.OrganizationGroupSyncRequest; @@ -79,6 +82,109 @@ public class OrgsApiTest { private final OrgsApi api = new OrgsApi(); + /** + * Create an API key rule. + * + * Create an API key rule. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesCreateTest() throws Exception { + String org = null; + OrganizationApiKeyRuleRequest data = null; + OrganizationApiKeyRule response = api.orgsApiKeyRulesCreate(org, data); + + // TODO: test validations + } + + /** + * Delete an API key rule. + * + * Delete an API key rule. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesDeleteTest() throws Exception { + String org = null; + String slugPerm = null; + api.orgsApiKeyRulesDelete(org, slugPerm); + + // TODO: test validations + } + + /** + * List all API key rules for the organization. + * + * List all API key rules for the organization. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesListTest() throws Exception { + String org = null; + List response = api.orgsApiKeyRulesList(org); + + // TODO: test validations + } + + /** + * Update an API key rule. + * + * Update an API key rule. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesPartialUpdateTest() throws Exception { + String org = null; + String slugPerm = null; + OrganizationApiKeyRuleRequestPatch data = null; + OrganizationApiKeyRule response = api.orgsApiKeyRulesPartialUpdate(org, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve an API key rule. + * + * Retrieve an API key rule. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesReadTest() throws Exception { + String org = null; + String slugPerm = null; + OrganizationApiKeyRule response = api.orgsApiKeyRulesRead(org, slugPerm); + + // TODO: test validations + } + + /** + * Full update of an API key rule. + * + * Full update of an API key rule. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void orgsApiKeyRulesUpdateTest() throws Exception { + String org = null; + String slugPerm = null; + OrganizationApiKeyRuleRequest data = null; + OrganizationApiKeyRule response = api.orgsApiKeyRulesUpdate(org, slugPerm, data); + + // TODO: test validations + } + /** * Get the details for all custom domains. * diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index cf087d4d..4d240d9d 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.32 +- Package version: 2.0.33 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -115,6 +115,12 @@ Class | Method | HTTP request | Description *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. *OpenidApi* | [**openid_create**](docs/OpenidApi.md#openid_create) | **POST** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org. +*OrgsApi* | [**orgs_api_key_rules_create**](docs/OrgsApi.md#orgs_api_key_rules_create) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +*OrgsApi* | [**orgs_api_key_rules_delete**](docs/OrgsApi.md#orgs_api_key_rules_delete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +*OrgsApi* | [**orgs_api_key_rules_list**](docs/OrgsApi.md#orgs_api_key_rules_list) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +*OrgsApi* | [**orgs_api_key_rules_partial_update**](docs/OrgsApi.md#orgs_api_key_rules_partial_update) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +*OrgsApi* | [**orgs_api_key_rules_read**](docs/OrgsApi.md#orgs_api_key_rules_read) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +*OrgsApi* | [**orgs_api_key_rules_update**](docs/OrgsApi.md#orgs_api_key_rules_update) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. *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. @@ -495,6 +501,8 @@ Class | Method | HTTP request | Description - [ConnectedRepository](docs/ConnectedRepository.md) - [ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) - [ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) + - [ConnectedRepositoryTargetSummary](docs/ConnectedRepositoryTargetSummary.md) + - [ConnectedRepositoryUpstream](docs/ConnectedRepositoryUpstream.md) - [CranPackageUpload](docs/CranPackageUpload.md) - [CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CranUpstream](docs/CranUpstream.md) @@ -593,6 +601,9 @@ Class | Method | HTTP request | Description - [Oidc1](docs/Oidc1.md) - [OidcRequest](docs/OidcRequest.md) - [Organization](docs/Organization.md) + - [OrganizationApiKeyRule](docs/OrganizationApiKeyRule.md) + - [OrganizationApiKeyRuleRequest](docs/OrganizationApiKeyRuleRequest.md) + - [OrganizationApiKeyRuleRequestPatch](docs/OrganizationApiKeyRuleRequestPatch.md) - [OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) - [OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [OrganizationGroupSync](docs/OrganizationGroupSync.md) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 444881f4..8e9574a9 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.32", + "packageVersion": "2.0.33", "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 150f1d35..556e8cc5 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -81,6 +81,8 @@ 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.connected_repository_target_summary import ConnectedRepositoryTargetSummary +from cloudsmith_api.models.connected_repository_upstream import ConnectedRepositoryUpstream 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 @@ -179,6 +181,9 @@ from cloudsmith_api.models.oidc1 import Oidc1 from cloudsmith_api.models.oidc_request import OidcRequest from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_api_key_rule import OrganizationApiKeyRule +from cloudsmith_api.models.organization_api_key_rule_request import OrganizationApiKeyRuleRequest +from cloudsmith_api.models.organization_api_key_rule_request_patch import OrganizationApiKeyRuleRequestPatch 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 diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py index 76e7c1f6..6bf4717e 100644 --- a/bindings/python/src/cloudsmith_api/api/orgs_api.py +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -33,6 +33,644 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def orgs_api_key_rules_create(self, org, **kwargs): # noqa: E501 + """Create an API key rule. # noqa: E501 + + Create an API key rule. # 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_api_key_rules_create(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param OrganizationApiKeyRuleRequest data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_api_key_rules_create_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_create_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_create_with_http_info(self, org, **kwargs): # noqa: E501 + """Create an API key rule. # noqa: E501 + + Create an API key rule. # 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_api_key_rules_create_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param OrganizationApiKeyRuleRequest data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', '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 orgs_api_key_rules_create" % 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_api_key_rules_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + 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( + '/orgs/{org}/api-key-rules/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationApiKeyRule', # 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_api_key_rules_delete(self, org, slug_perm, **kwargs): # noqa: E501 + """Delete an API key rule. # noqa: E501 + + Delete an API key rule. # 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_api_key_rules_delete(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (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.orgs_api_key_rules_delete_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_delete_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_delete_with_http_info(self, org, slug_perm, **kwargs): # noqa: E501 + """Delete an API key rule. # noqa: E501 + + Delete an API key rule. # 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_api_key_rules_delete_with_http_info(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', '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 orgs_api_key_rules_delete" % 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_api_key_rules_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 `orgs_api_key_rules_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # 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( + '/orgs/{org}/api-key-rules/{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 orgs_api_key_rules_list(self, org, **kwargs): # noqa: E501 + """List all API key rules for the organization. # noqa: E501 + + List all API key rules for the organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_api_key_rules_list(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: list[OrganizationApiKeyRule] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_api_key_rules_list_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_list_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_list_with_http_info(self, org, **kwargs): # noqa: E501 + """List all API key rules for the organization. # noqa: E501 + + List all API key rules for the organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_api_key_rules_list_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: list[OrganizationApiKeyRule] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_api_key_rules_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_api_key_rules_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # 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}/api-key-rules/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[OrganizationApiKeyRule]', # 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_api_key_rules_partial_update(self, org, slug_perm, **kwargs): # noqa: E501 + """Update an API key rule. # noqa: E501 + + Update an API key rule. # 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_api_key_rules_partial_update(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :param OrganizationApiKeyRuleRequestPatch data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_api_key_rules_partial_update_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_partial_update_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_partial_update_with_http_info(self, org, slug_perm, **kwargs): # noqa: E501 + """Update an API key rule. # noqa: E501 + + Update an API key rule. # 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_api_key_rules_partial_update_with_http_info(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :param OrganizationApiKeyRuleRequestPatch data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', '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 orgs_api_key_rules_partial_update" % 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_api_key_rules_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 `orgs_api_key_rules_partial_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # 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( + '/orgs/{org}/api-key-rules/{slug_perm}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationApiKeyRule', # 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_api_key_rules_read(self, org, slug_perm, **kwargs): # noqa: E501 + """Retrieve an API key rule. # noqa: E501 + + Retrieve an API key rule. # 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_api_key_rules_read(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_api_key_rules_read_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_read_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_read_with_http_info(self, org, slug_perm, **kwargs): # noqa: E501 + """Retrieve an API key rule. # noqa: E501 + + Retrieve an API key rule. # 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_api_key_rules_read_with_http_info(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', '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 orgs_api_key_rules_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_api_key_rules_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 `orgs_api_key_rules_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # 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( + '/orgs/{org}/api-key-rules/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationApiKeyRule', # 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_api_key_rules_update(self, org, slug_perm, **kwargs): # noqa: E501 + """Full update of an API key rule. # noqa: E501 + + Full update of an API key rule. # 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_api_key_rules_update(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :param OrganizationApiKeyRuleRequest data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_api_key_rules_update_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.orgs_api_key_rules_update_with_http_info(org, slug_perm, **kwargs) # noqa: E501 + return data + + def orgs_api_key_rules_update_with_http_info(self, org, slug_perm, **kwargs): # noqa: E501 + """Full update of an API key rule. # noqa: E501 + + Full update of an API key rule. # 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_api_key_rules_update_with_http_info(org, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str slug_perm: (required) + :param OrganizationApiKeyRuleRequest data: + :return: OrganizationApiKeyRule + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', '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 orgs_api_key_rules_update" % 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_api_key_rules_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 `orgs_api_key_rules_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # 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( + '/orgs/{org}/api-key-rules/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationApiKeyRule', # 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_custom_domains_list(self, org, **kwargs): # noqa: E501 """Get the details for all custom domains. # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index 248887dc..48d1a31e 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -536,7 +536,7 @@ def packages_list(self, owner, repo, **kwargs): # noqa: E501 :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. :param str sort: A field for sorting objects in ascending or descending order. :return: list[Package] If the method is called asynchronously, @@ -564,7 +564,7 @@ def packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. :param bool include_connected_repositories: If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. :param str sort: A field for sorting objects in ascending or descending order. :return: list[Package] If the method is called asynchronously, diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index c8ef7c37..972713c7 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.32/python' + self.user_agent = 'Swagger-Codegen/2.0.33/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 d0e14a47..80a1aee0 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.32".\ + "SDK Package Version: 2.0.33".\ 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 2cf60caa..f5c91200 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -52,6 +52,8 @@ 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.connected_repository_target_summary import ConnectedRepositoryTargetSummary +from cloudsmith_api.models.connected_repository_upstream import ConnectedRepositoryUpstream 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 @@ -150,6 +152,9 @@ from cloudsmith_api.models.oidc1 import Oidc1 from cloudsmith_api.models.oidc_request import OidcRequest from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_api_key_rule import OrganizationApiKeyRule +from cloudsmith_api.models.organization_api_key_rule_request import OrganizationApiKeyRuleRequest +from cloudsmith_api.models.organization_api_key_rule_request_patch import OrganizationApiKeyRuleRequestPatch 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 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 8aca9880..0b23b069 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py @@ -43,6 +43,7 @@ class AlpinePackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class AlpinePackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class AlpinePackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class AlpinePackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class AlpinePackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class AlpinePackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this AlpinePackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this AlpinePackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this AlpinePackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this AlpinePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this AlpinePackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this AlpinePackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this AlpinePackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this AlpinePackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this AlpinePackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this AlpinePackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this AlpinePackageUpload. - - - :return: The vulnerability_counts of this AlpinePackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this AlpinePackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this AlpinePackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this AlpinePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py index 62cb0369..2482c366 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload_request.py @@ -34,46 +34,36 @@ class AlpinePackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { 'distribution': 'distribution', - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """AlpinePackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._distribution = None - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None self.distribution = distribution - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def distribution(self): @@ -103,29 +93,6 @@ def distribution(self, distribution): self._distribution = distribution - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this AlpinePackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this AlpinePackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this AlpinePackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this AlpinePackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def package_file(self): """Gets the package_file of this AlpinePackageUploadRequest. @@ -206,27 +173,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this AlpinePackageUploadRequest. - - - :return: The vulnerability_counts of this AlpinePackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this AlpinePackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this AlpinePackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 24470108..f2ae44b8 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py @@ -43,6 +43,7 @@ class CargoPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class CargoPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class CargoPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class CargoPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class CargoPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class CargoPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this CargoPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this CargoPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this CargoPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this CargoPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this CargoPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CargoPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CargoPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CargoPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CargoPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this CargoPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CargoPackageUpload. - - - :return: The vulnerability_counts of this CargoPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CargoPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this CargoPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CargoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py index 7cb58216..70534140 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload_request.py @@ -33,66 +33,33 @@ class CargoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """CargoPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CargoPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CargoPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CargoPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CargoPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CargoPackageUploadRequest. - - - :return: The vulnerability_counts of this CargoPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CargoPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this CargoPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 fc40dd2c..ca6eed06 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py @@ -43,6 +43,7 @@ class CocoapodsPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class CocoapodsPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class CocoapodsPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class CocoapodsPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class CocoapodsPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class CocoapodsPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this CocoapodsPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this CocoapodsPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this CocoapodsPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this CocoapodsPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this CocoapodsPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CocoapodsPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CocoapodsPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CocoapodsPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CocoapodsPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this CocoapodsPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CocoapodsPackageUpload. - - - :return: The vulnerability_counts of this CocoapodsPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CocoapodsPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this CocoapodsPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CocoapodsPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py index 8d393f1e..ba0804f9 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload_request.py @@ -33,66 +33,33 @@ class CocoapodsPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """CocoapodsPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CocoapodsPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CocoapodsPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CocoapodsPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CocoapodsPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CocoapodsPackageUploadRequest. - - - :return: The vulnerability_counts of this CocoapodsPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CocoapodsPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this CocoapodsPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 d5e59b72..a0a4f1b7 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py @@ -43,6 +43,7 @@ class ComposerPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class ComposerPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class ComposerPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class ComposerPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class ComposerPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class ComposerPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this ComposerPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this ComposerPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this ComposerPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this ComposerPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this ComposerPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this ComposerPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this ComposerPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this ComposerPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this ComposerPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this ComposerPackageUpload. @@ -2470,27 +2468,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this ComposerPackageUpload. - - - :return: The vulnerability_counts of this ComposerPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this ComposerPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this ComposerPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this ComposerPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py index d80323e6..738575fd 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload_request.py @@ -33,39 +33,31 @@ class ComposerPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """ComposerPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, package_file=None, republish=None, self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this ComposerPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this ComposerPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this ComposerPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this ComposerPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -205,27 +172,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this ComposerPackageUploadRequest. - - - :return: The vulnerability_counts of this ComposerPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this ComposerPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this ComposerPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 be0b443f..59bba252 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -45,6 +45,7 @@ class ConanPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -64,7 +65,6 @@ class ConanPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -123,7 +123,6 @@ class ConanPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -140,6 +139,7 @@ class ConanPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -159,7 +159,6 @@ class ConanPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -218,11 +217,10 @@ class ConanPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -240,6 +238,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -259,7 +258,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -318,7 +316,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -346,6 +343,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -384,8 +383,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -502,8 +499,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -779,6 +774,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this ConanPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this ConanPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this ConanPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this ConanPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this ConanPackageUpload. @@ -1198,29 +1219,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this ConanPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this ConanPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this ConanPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this ConanPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this ConanPackageUpload. @@ -2541,27 +2539,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this ConanPackageUpload. - - - :return: The vulnerability_counts of this ConanPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this ConanPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this ConanPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this ConanPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py index a08ecd67..c7c436d3 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload_request.py @@ -36,33 +36,29 @@ class ConanPackageUploadRequest(object): 'conan_channel': 'str', 'conan_prefix': 'str', 'info_file': 'str', - 'is_malware_detected': 'bool', 'manifest_file': 'str', 'metadata_file': 'str', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'conan_channel': 'conan_channel', 'conan_prefix': 'conan_prefix', 'info_file': 'info_file', - 'is_malware_detected': 'is_malware_detected', 'manifest_file': 'manifest_file', 'metadata_file': 'metadata_file', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_malware_detected=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """ConanPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -71,7 +67,6 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_mal self._conan_channel = None self._conan_prefix = None self._info_file = None - self._is_malware_detected = None self._manifest_file = None self._metadata_file = None self._name = None @@ -79,7 +74,6 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_mal self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None if conan_channel is not None: @@ -87,8 +81,6 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_mal if conan_prefix is not None: self.conan_prefix = conan_prefix self.info_file = info_file - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.manifest_file = manifest_file self.metadata_file = metadata_file if name is not None: @@ -100,8 +92,6 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, is_mal self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def conan_channel(self): @@ -189,29 +179,6 @@ def info_file(self, info_file): self._info_file = info_file - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this ConanPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this ConanPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this ConanPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this ConanPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def manifest_file(self): """Gets the manifest_file of this ConanPackageUploadRequest. @@ -400,27 +367,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this ConanPackageUploadRequest. - - - :return: The vulnerability_counts of this ConanPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this ConanPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this ConanPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 4abf22a0..9394150f 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py @@ -43,6 +43,7 @@ class CondaPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class CondaPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class CondaPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class CondaPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class CondaPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class CondaPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this CondaPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this CondaPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this CondaPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this CondaPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this CondaPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CondaPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CondaPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CondaPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CondaPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this CondaPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CondaPackageUpload. - - - :return: The vulnerability_counts of this CondaPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CondaPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this CondaPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CondaPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py index c8765d25..0ce3eaea 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload_request.py @@ -33,66 +33,33 @@ class CondaPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """CondaPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CondaPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CondaPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CondaPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CondaPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CondaPackageUploadRequest. - - - :return: The vulnerability_counts of this CondaPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CondaPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this CondaPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository.py b/bindings/python/src/cloudsmith_api/models/connected_repository.py index c730c8c8..34c77a52 100644 --- a/bindings/python/src/cloudsmith_api/models/connected_repository.py +++ b/bindings/python/src/cloudsmith_api/models/connected_repository.py @@ -33,31 +33,39 @@ class ConnectedRepository(object): and the value is json key in definition. """ swagger_types = { + 'can_view_target_repository_settings': 'bool', + 'configured_upstreams': 'list[ConnectedRepositoryUpstream]', 'created_at': 'datetime', 'disable_reason': 'str', 'disable_reason_text': 'str', 'is_active': 'bool', 'priority': 'int', 'slug_perm': 'str', - 'target_repository': 'str' + 'target_repository': 'str', + 'target_repository_summary': 'ConnectedRepositoryTargetSummary' } attribute_map = { + 'can_view_target_repository_settings': 'can_view_target_repository_settings', + 'configured_upstreams': 'configured_upstreams', 'created_at': 'created_at', 'disable_reason': 'disable_reason', 'disable_reason_text': 'disable_reason_text', 'is_active': 'is_active', 'priority': 'priority', 'slug_perm': 'slug_perm', - 'target_repository': 'target_repository' + 'target_repository': 'target_repository', + 'target_repository_summary': 'target_repository_summary' } - def __init__(self, created_at=None, disable_reason='N/A', disable_reason_text=None, is_active=False, priority=None, slug_perm=None, target_repository=None, _configuration=None): # noqa: E501 + def __init__(self, can_view_target_repository_settings=None, configured_upstreams=None, created_at=None, disable_reason='N/A', disable_reason_text=None, is_active=False, priority=None, slug_perm=None, target_repository=None, target_repository_summary=None, _configuration=None): # noqa: E501 """ConnectedRepository - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration + self._can_view_target_repository_settings = None + self._configured_upstreams = None self._created_at = None self._disable_reason = None self._disable_reason_text = None @@ -65,8 +73,13 @@ def __init__(self, created_at=None, disable_reason='N/A', disable_reason_text=No self._priority = None self._slug_perm = None self._target_repository = None + self._target_repository_summary = None self.discriminator = None + if can_view_target_repository_settings is not None: + self.can_view_target_repository_settings = can_view_target_repository_settings + if configured_upstreams is not None: + self.configured_upstreams = configured_upstreams if created_at is not None: self.created_at = created_at if disable_reason is not None: @@ -80,6 +93,54 @@ def __init__(self, created_at=None, disable_reason='N/A', disable_reason_text=No if slug_perm is not None: self.slug_perm = slug_perm self.target_repository = target_repository + if target_repository_summary is not None: + self.target_repository_summary = target_repository_summary + + @property + def can_view_target_repository_settings(self): + """Gets the can_view_target_repository_settings of this ConnectedRepository. + + Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. + + :return: The can_view_target_repository_settings of this ConnectedRepository. + :rtype: bool + """ + return self._can_view_target_repository_settings + + @can_view_target_repository_settings.setter + def can_view_target_repository_settings(self, can_view_target_repository_settings): + """Sets the can_view_target_repository_settings of this ConnectedRepository. + + Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. + + :param can_view_target_repository_settings: The can_view_target_repository_settings of this ConnectedRepository. + :type: bool + """ + + self._can_view_target_repository_settings = can_view_target_repository_settings + + @property + def configured_upstreams(self): + """Gets the configured_upstreams of this ConnectedRepository. + + The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. + + :return: The configured_upstreams of this ConnectedRepository. + :rtype: list[ConnectedRepositoryUpstream] + """ + return self._configured_upstreams + + @configured_upstreams.setter + def configured_upstreams(self, configured_upstreams): + """Sets the configured_upstreams of this ConnectedRepository. + + The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. + + :param configured_upstreams: The configured_upstreams of this ConnectedRepository. + :type: list[ConnectedRepositoryUpstream] + """ + + self._configured_upstreams = configured_upstreams @property def created_at(self): @@ -260,6 +321,27 @@ def target_repository(self, target_repository): self._target_repository = target_repository + @property + def target_repository_summary(self): + """Gets the target_repository_summary of this ConnectedRepository. + + + :return: The target_repository_summary of this ConnectedRepository. + :rtype: ConnectedRepositoryTargetSummary + """ + return self._target_repository_summary + + @target_repository_summary.setter + def target_repository_summary(self, target_repository_summary): + """Sets the target_repository_summary of this ConnectedRepository. + + + :param target_repository_summary: The target_repository_summary of this ConnectedRepository. + :type: ConnectedRepositoryTargetSummary + """ + + self._target_repository_summary = target_repository_summary + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_target_summary.py b/bindings/python/src/cloudsmith_api/models/connected_repository_target_summary.py new file mode 100644 index 00000000..d2b49cd6 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_target_summary.py @@ -0,0 +1,202 @@ +# 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 ConnectedRepositoryTargetSummary(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_private': 'bool', + 'is_public': 'bool', + 'package_count': 'int', + 'size': 'int' + } + + attribute_map = { + 'is_private': 'is_private', + 'is_public': 'is_public', + 'package_count': 'package_count', + 'size': 'size' + } + + def __init__(self, is_private=None, is_public=None, package_count=None, size=None, _configuration=None): # noqa: E501 + """ConnectedRepositoryTargetSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._is_private = None + self._is_public = None + self._package_count = None + self._size = None + self.discriminator = None + + if is_private is not None: + self.is_private = is_private + if is_public is not None: + self.is_public = is_public + if package_count is not None: + self.package_count = package_count + if size is not None: + self.size = size + + @property + def is_private(self): + """Gets the is_private of this ConnectedRepositoryTargetSummary. + + + :return: The is_private of this ConnectedRepositoryTargetSummary. + :rtype: bool + """ + return self._is_private + + @is_private.setter + def is_private(self, is_private): + """Sets the is_private of this ConnectedRepositoryTargetSummary. + + + :param is_private: The is_private of this ConnectedRepositoryTargetSummary. + :type: bool + """ + + self._is_private = is_private + + @property + def is_public(self): + """Gets the is_public of this ConnectedRepositoryTargetSummary. + + + :return: The is_public of this ConnectedRepositoryTargetSummary. + :rtype: bool + """ + return self._is_public + + @is_public.setter + def is_public(self, is_public): + """Sets the is_public of this ConnectedRepositoryTargetSummary. + + + :param is_public: The is_public of this ConnectedRepositoryTargetSummary. + :type: bool + """ + + self._is_public = is_public + + @property + def package_count(self): + """Gets the package_count of this ConnectedRepositoryTargetSummary. + + + :return: The package_count of this ConnectedRepositoryTargetSummary. + :rtype: int + """ + return self._package_count + + @package_count.setter + def package_count(self, package_count): + """Sets the package_count of this ConnectedRepositoryTargetSummary. + + + :param package_count: The package_count of this ConnectedRepositoryTargetSummary. + :type: int + """ + + self._package_count = package_count + + @property + def size(self): + """Gets the size of this ConnectedRepositoryTargetSummary. + + + :return: The size of this ConnectedRepositoryTargetSummary. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ConnectedRepositoryTargetSummary. + + + :param size: The size of this ConnectedRepositoryTargetSummary. + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConnectedRepositoryTargetSummary, 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, ConnectedRepositoryTargetSummary): + 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, ConnectedRepositoryTargetSummary): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/connected_repository_upstream.py b/bindings/python/src/cloudsmith_api/models/connected_repository_upstream.py new file mode 100644 index 00000000..804e1d31 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/connected_repository_upstream.py @@ -0,0 +1,155 @@ +# 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 ConnectedRepositoryUpstream(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 = { + 'type': 'str', + 'upstream_url': 'str' + } + + attribute_map = { + 'type': 'type', + 'upstream_url': 'upstream_url' + } + + def __init__(self, type=None, upstream_url=None, _configuration=None): # noqa: E501 + """ConnectedRepositoryUpstream - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._type = None + self._upstream_url = None + self.discriminator = None + + if type is not None: + self.type = type + if upstream_url is not None: + self.upstream_url = upstream_url + + @property + def type(self): + """Gets the type of this ConnectedRepositoryUpstream. + + The format/backend slug of the upstream (e.g. 'npm'). + + :return: The type of this ConnectedRepositoryUpstream. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ConnectedRepositoryUpstream. + + The format/backend slug of the upstream (e.g. 'npm'). + + :param type: The type of this ConnectedRepositoryUpstream. + :type: str + """ + + self._type = type + + @property + def upstream_url(self): + """Gets the upstream_url of this ConnectedRepositoryUpstream. + + + :return: The upstream_url of this ConnectedRepositoryUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(self, upstream_url): + """Sets the upstream_url of this ConnectedRepositoryUpstream. + + + :param upstream_url: The upstream_url of this ConnectedRepositoryUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + 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(ConnectedRepositoryUpstream, 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, ConnectedRepositoryUpstream): + 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, ConnectedRepositoryUpstream): + 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 5a12a8b9..701ac807 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py @@ -43,6 +43,7 @@ class CranPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class CranPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -122,7 +122,6 @@ class CranPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -137,6 +136,7 @@ class CranPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -156,7 +156,6 @@ class CranPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -216,11 +215,10 @@ class CranPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -236,6 +234,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -255,7 +254,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -315,7 +313,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -339,6 +336,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -377,8 +376,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -497,8 +494,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -716,6 +711,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this CranPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this CranPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this CranPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this CranPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this CranPackageUpload. @@ -1135,29 +1156,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CranPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CranPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CranPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CranPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this CranPackageUpload. @@ -2501,27 +2499,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CranPackageUpload. - - - :return: The vulnerability_counts of this CranPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CranPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this CranPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this CranPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py index f0a1b589..c7c5fb53 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload_request.py @@ -34,43 +34,35 @@ class CranPackageUploadRequest(object): """ swagger_types = { 'architecture': 'str', - 'is_malware_detected': 'bool', 'package_file': 'str', 'r_version': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { 'architecture': 'architecture', - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'r_version': 'r_version', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, architecture=None, is_malware_detected=None, package_file=None, r_version=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, architecture=None, package_file=None, r_version=None, republish=None, tags=None, _configuration=None): # noqa: E501 """CranPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._architecture = None - self._is_malware_detected = None self._package_file = None self._r_version = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None if architecture is not None: self.architecture = architecture - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if r_version is not None: self.r_version = r_version @@ -78,8 +70,6 @@ def __init__(self, architecture=None, is_malware_detected=None, package_file=Non self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def architecture(self): @@ -107,29 +97,6 @@ def architecture(self, architecture): self._architecture = architecture - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this CranPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this CranPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this CranPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this CranPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def package_file(self): """Gets the package_file of this CranPackageUploadRequest. @@ -239,27 +206,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this CranPackageUploadRequest. - - - :return: The vulnerability_counts of this CranPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this CranPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this CranPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 385426e0..226deec6 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py @@ -43,6 +43,7 @@ class DartPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class DartPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class DartPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class DartPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class DartPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class DartPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this DartPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this DartPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this DartPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this DartPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this DartPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DartPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DartPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DartPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DartPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this DartPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DartPackageUpload. - - - :return: The vulnerability_counts of this DartPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DartPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this DartPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DartPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py index 5c0268ef..e171256e 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload_request.py @@ -33,66 +33,33 @@ class DartPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """DartPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DartPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DartPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DartPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DartPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DartPackageUploadRequest. - - - :return: The vulnerability_counts of this DartPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DartPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this DartPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 c77a8c18..43f934f3 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py @@ -43,6 +43,7 @@ class DebPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class DebPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class DebPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class DebPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class DebPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class DebPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this DebPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this DebPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this DebPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this DebPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this DebPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DebPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DebPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DebPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DebPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this DebPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DebPackageUpload. - - - :return: The vulnerability_counts of this DebPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DebPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this DebPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DebPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py index a8f39dbd..ed8b05be 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py @@ -36,27 +36,23 @@ class DebPackageUploadRequest(object): 'changes_file': 'str', 'component': 'str', 'distribution': 'str', - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'sources_file': 'str', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { 'changes_file': 'changes_file', 'component': 'component', 'distribution': 'distribution', - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'sources_file': 'sources_file', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, changes_file=None, component='main', distribution=None, is_malware_detected=None, package_file=None, republish=None, sources_file=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, changes_file=None, component='main', distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 """DebPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -65,12 +61,10 @@ def __init__(self, changes_file=None, component='main', distribution=None, is_ma self._changes_file = None self._component = None self._distribution = None - self._is_malware_detected = None self._package_file = None self._republish = None self._sources_file = None self._tags = None - self._vulnerability_counts = None self.discriminator = None if changes_file is not None: @@ -78,8 +72,6 @@ def __init__(self, changes_file=None, component='main', distribution=None, is_ma if component is not None: self.component = component self.distribution = distribution - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -87,8 +79,6 @@ def __init__(self, changes_file=None, component='main', distribution=None, is_ma self.sources_file = sources_file if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def changes_file(self): @@ -176,29 +166,6 @@ def distribution(self, distribution): self._distribution = distribution - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DebPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DebPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DebPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DebPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def package_file(self): """Gets the package_file of this DebPackageUploadRequest. @@ -305,27 +272,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DebPackageUploadRequest. - - - :return: The vulnerability_counts of this DebPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DebPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this DebPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 34e3458b..9b60afa1 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py @@ -43,6 +43,7 @@ class DockerPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class DockerPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class DockerPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class DockerPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class DockerPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class DockerPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this DockerPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this DockerPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this DockerPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this DockerPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this DockerPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DockerPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DockerPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DockerPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DockerPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this DockerPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DockerPackageUpload. - - - :return: The vulnerability_counts of this DockerPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DockerPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this DockerPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this DockerPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py index f0664f73..07cb7fbd 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload_request.py @@ -33,66 +33,33 @@ class DockerPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """DockerPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this DockerPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this DockerPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this DockerPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this DockerPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this DockerPackageUploadRequest. - - - :return: The vulnerability_counts of this DockerPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this DockerPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this DockerPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 5ffc72f4..baa51a1b 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py @@ -43,6 +43,7 @@ class GenericPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class GenericPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class GenericPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class GenericPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class GenericPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class GenericPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this GenericPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this GenericPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this GenericPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this GenericPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this GenericPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this GenericPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this GenericPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this GenericPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this GenericPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this GenericPackageUpload. @@ -2473,27 +2471,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this GenericPackageUpload. - - - :return: The vulnerability_counts of this GenericPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this GenericPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this GenericPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this GenericPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py index 3a5eded2..e498fd66 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload_request.py @@ -34,45 +34,37 @@ class GenericPackageUploadRequest(object): """ swagger_types = { 'filepath': 'str', - 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'filepath': 'filepath', - 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, filepath=None, is_malware_detected=None, name=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, filepath=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """GenericPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._filepath = None - self._is_malware_detected = None self._name = None self._package_file = None self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None self.filepath = filepath - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if name is not None: self.name = name self.package_file = package_file @@ -82,8 +74,6 @@ def __init__(self, filepath=None, is_malware_detected=None, name=None, package_f self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def filepath(self): @@ -116,29 +106,6 @@ def filepath(self, filepath): self._filepath = filepath - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this GenericPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this GenericPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this GenericPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this GenericPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def name(self): """Gets the name of this GenericPackageUploadRequest. @@ -271,27 +238,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this GenericPackageUploadRequest. - - - :return: The vulnerability_counts of this GenericPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this GenericPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this GenericPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 016c1044..115b8dd6 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload.py @@ -43,6 +43,7 @@ class GoPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class GoPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class GoPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class GoPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class GoPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class GoPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this GoPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this GoPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this GoPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this GoPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this GoPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this GoPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this GoPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this GoPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this GoPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this GoPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this GoPackageUpload. - - - :return: The vulnerability_counts of this GoPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this GoPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this GoPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this GoPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py index 5f620d33..0cd8b1a1 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload_request.py @@ -33,66 +33,33 @@ class GoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """GoPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this GoPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this GoPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this GoPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this GoPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this GoPackageUploadRequest. - - - :return: The vulnerability_counts of this GoPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this GoPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this GoPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 459e7876..399c18a7 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py @@ -43,6 +43,7 @@ class HelmPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class HelmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class HelmPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class HelmPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class HelmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class HelmPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this HelmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this HelmPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this HelmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this HelmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this HelmPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HelmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HelmPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HelmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HelmPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this HelmPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HelmPackageUpload. - - - :return: The vulnerability_counts of this HelmPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HelmPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this HelmPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HelmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py index 92c5a290..59333389 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload_request.py @@ -33,39 +33,31 @@ class HelmPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'provenance_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'provenance_file': 'provenance_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, provenance_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, provenance_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """HelmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._provenance_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if provenance_file is not None: self.provenance_file = provenance_file @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, package_file=None, provenance_file= self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HelmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HelmPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HelmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HelmPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -205,27 +172,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HelmPackageUploadRequest. - - - :return: The vulnerability_counts of this HelmPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HelmPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this HelmPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 10b24be7..d9aa58f6 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py @@ -43,6 +43,7 @@ class HexPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class HexPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class HexPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class HexPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class HexPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class HexPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this HexPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this HexPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this HexPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this HexPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this HexPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HexPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HexPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HexPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HexPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this HexPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HexPackageUpload. - - - :return: The vulnerability_counts of this HexPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HexPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this HexPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HexPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py index ee455f25..6bab3bd5 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload_request.py @@ -33,66 +33,33 @@ class HexPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """HexPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HexPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HexPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HexPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HexPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HexPackageUploadRequest. - - - :return: The vulnerability_counts of this HexPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HexPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this HexPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 0edc9787..c0c7e67c 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py @@ -43,6 +43,7 @@ class HuggingfacePackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class HuggingfacePackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class HuggingfacePackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class HuggingfacePackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class HuggingfacePackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class HuggingfacePackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this HuggingfacePackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this HuggingfacePackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this HuggingfacePackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this HuggingfacePackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this HuggingfacePackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HuggingfacePackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HuggingfacePackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HuggingfacePackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HuggingfacePackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this HuggingfacePackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HuggingfacePackageUpload. - - - :return: The vulnerability_counts of this HuggingfacePackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HuggingfacePackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this HuggingfacePackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this HuggingfacePackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py index 44541f64..0a7a6c47 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload_request.py @@ -33,66 +33,33 @@ class HuggingfacePackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """HuggingfacePackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this HuggingfacePackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this HuggingfacePackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this HuggingfacePackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this HuggingfacePackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this HuggingfacePackageUploadRequest. - - - :return: The vulnerability_counts of this HuggingfacePackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this HuggingfacePackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this HuggingfacePackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 8e2d91a1..61941f35 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py @@ -43,6 +43,7 @@ class LuarocksPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class LuarocksPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class LuarocksPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class LuarocksPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class LuarocksPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class LuarocksPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this LuarocksPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this LuarocksPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this LuarocksPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this LuarocksPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this LuarocksPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this LuarocksPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this LuarocksPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this LuarocksPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this LuarocksPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this LuarocksPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this LuarocksPackageUpload. - - - :return: The vulnerability_counts of this LuarocksPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this LuarocksPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this LuarocksPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this LuarocksPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py index ab1c7889..ba63584e 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload_request.py @@ -33,66 +33,33 @@ class LuarocksPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """LuarocksPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this LuarocksPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this LuarocksPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this LuarocksPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this LuarocksPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this LuarocksPackageUploadRequest. - - - :return: The vulnerability_counts of this LuarocksPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this LuarocksPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this LuarocksPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 fecd3f91..6aa7f951 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -44,6 +44,7 @@ class MavenPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -64,7 +65,6 @@ class MavenPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -126,7 +126,6 @@ class MavenPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -142,6 +141,7 @@ class MavenPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -162,7 +162,6 @@ class MavenPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -224,11 +223,10 @@ class MavenPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -245,6 +243,7 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -265,7 +264,6 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -327,7 +325,6 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -353,6 +350,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -393,8 +392,6 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -517,8 +514,6 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -762,6 +757,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this MavenPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this MavenPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this MavenPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this MavenPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this MavenPackageUpload. @@ -1207,29 +1228,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this MavenPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this MavenPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this MavenPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this MavenPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this MavenPackageUpload. @@ -2621,27 +2619,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this MavenPackageUpload. - - - :return: The vulnerability_counts of this MavenPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this MavenPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this MavenPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this MavenPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py index 42174ee1..9f6369f7 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload_request.py @@ -36,7 +36,6 @@ class MavenPackageUploadRequest(object): 'artifact_id': 'str', 'extra_files': 'list[str]', 'group_id': 'str', - 'is_malware_detected': 'bool', 'ivy_file': 'str', 'javadoc_file': 'str', 'package_file': 'str', @@ -48,15 +47,13 @@ class MavenPackageUploadRequest(object): 'sources_file': 'str', 'tags': 'str', 'tests_file': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'artifact_id': 'artifact_id', 'extra_files': 'extra_files', 'group_id': 'group_id', - 'is_malware_detected': 'is_malware_detected', 'ivy_file': 'ivy_file', 'javadoc_file': 'javadoc_file', 'package_file': 'package_file', @@ -68,11 +65,10 @@ class MavenPackageUploadRequest(object): 'sources_file': 'sources_file', 'tags': 'tags', 'tests_file': 'tests_file', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware_detected=None, ivy_file=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sbt_version=None, scala_version=None, sources_file=None, tags=None, tests_file=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sbt_version=None, scala_version=None, sources_file=None, tags=None, tests_file=None, version=None, _configuration=None): # noqa: E501 """MavenPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -81,7 +77,6 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware self._artifact_id = None self._extra_files = None self._group_id = None - self._is_malware_detected = None self._ivy_file = None self._javadoc_file = None self._package_file = None @@ -94,7 +89,6 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware self._tags = None self._tests_file = None self._version = None - self._vulnerability_counts = None self.discriminator = None if artifact_id is not None: @@ -103,8 +97,6 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware self.extra_files = extra_files if group_id is not None: self.group_id = group_id - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if ivy_file is not None: self.ivy_file = ivy_file if javadoc_file is not None: @@ -128,8 +120,6 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, is_malware self.tests_file = tests_file if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def artifact_id(self): @@ -206,29 +196,6 @@ def group_id(self, group_id): self._group_id = group_id - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this MavenPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this MavenPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this MavenPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this MavenPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def ivy_file(self): """Gets the ivy_file of this MavenPackageUploadRequest. @@ -539,27 +506,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this MavenPackageUploadRequest. - - - :return: The vulnerability_counts of this MavenPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this MavenPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this MavenPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 d112c2df..ced7d80a 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py @@ -43,6 +43,7 @@ class McpPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class McpPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class McpPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class McpPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class McpPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class McpPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this McpPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this McpPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this McpPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this McpPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this McpPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this McpPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this McpPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this McpPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this McpPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this McpPackageUpload. @@ -2470,27 +2468,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this McpPackageUpload. - - - :return: The vulnerability_counts of this McpPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this McpPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this McpPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this McpPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py index 5796c407..2db8655f 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload_request.py @@ -33,39 +33,31 @@ class McpPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """McpPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, package_file=None, republish=None, self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this McpPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this McpPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this McpPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this McpPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -205,27 +172,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this McpPackageUploadRequest. - - - :return: The vulnerability_counts of this McpPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this McpPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this McpPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/nix_package_upload.py b/bindings/python/src/cloudsmith_api/models/nix_package_upload.py index b2046ff0..1deb8aaa 100644 --- a/bindings/python/src/cloudsmith_api/models/nix_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/nix_package_upload.py @@ -43,6 +43,7 @@ class NixPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class NixPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class NixPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class NixPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class NixPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class NixPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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 """NixPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this NixPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this NixPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this NixPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this NixPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this NixPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NixPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NixPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NixPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NixPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this NixPackageUpload. @@ -2470,27 +2468,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NixPackageUpload. - - - :return: The vulnerability_counts of this NixPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NixPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this NixPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this NixPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py index 88c02933..7faf4d71 100644 --- a/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/nix_package_upload_request.py @@ -33,42 +33,34 @@ class NixPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'narinfo_file': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'narinfo_file': 'narinfo_file', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, is_malware_detected=None, narinfo_file=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, narinfo_file=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """NixPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._narinfo_file = None self._package_file = None self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if narinfo_file is not None: self.narinfo_file = narinfo_file self.package_file = package_file @@ -78,31 +70,6 @@ def __init__(self, is_malware_detected=None, narinfo_file=None, package_file=Non self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NixPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NixPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NixPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NixPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def narinfo_file(self): @@ -236,27 +203,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NixPackageUploadRequest. - - - :return: The vulnerability_counts of this NixPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NixPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this NixPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 bda3c7e4..5c507cf6 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py @@ -43,6 +43,7 @@ class NpmPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class NpmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class NpmPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class NpmPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class NpmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class NpmPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this NpmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this NpmPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this NpmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this NpmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this NpmPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NpmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NpmPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NpmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NpmPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this NpmPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NpmPackageUpload. - - - :return: The vulnerability_counts of this NpmPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NpmPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this NpmPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this NpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py index 3dd80a8e..fe828c46 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload_request.py @@ -33,39 +33,31 @@ class NpmPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'npm_dist_tag': 'str', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'npm_dist_tag': 'npm_dist_tag', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, npm_dist_tag='latest', package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, npm_dist_tag='latest', package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """NpmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._npm_dist_tag = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if npm_dist_tag is not None: self.npm_dist_tag = npm_dist_tag self.package_file = package_file @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, npm_dist_tag='latest', package_file self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NpmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NpmPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NpmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NpmPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def npm_dist_tag(self): @@ -205,27 +172,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NpmPackageUploadRequest. - - - :return: The vulnerability_counts of this NpmPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NpmPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this NpmPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 8f9e0f32..49579b54 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py @@ -43,6 +43,7 @@ class NugetPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class NugetPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class NugetPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class NugetPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class NugetPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class NugetPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this NugetPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this NugetPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this NugetPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this NugetPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this NugetPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NugetPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NugetPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NugetPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NugetPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this NugetPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NugetPackageUpload. - - - :return: The vulnerability_counts of this NugetPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NugetPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this NugetPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this NugetPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py index 1896c7f5..220b2734 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload_request.py @@ -33,39 +33,31 @@ class NugetPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'symbols_file': 'str', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'symbols_file': 'symbols_file', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, symbols_file=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None, _configuration=None): # noqa: E501 """NugetPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._symbols_file = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, package_file=None, republish=None, self.symbols_file = symbols_file if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this NugetPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this NugetPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this NugetPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this NugetPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -205,27 +172,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this NugetPackageUploadRequest. - - - :return: The vulnerability_counts of this NugetPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this NugetPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this NugetPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/organization_api_key_rule.py b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule.py new file mode 100644 index 00000000..b55c178d --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule.py @@ -0,0 +1,372 @@ +# 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 OrganizationApiKeyRule(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', + 'enforce_refresh': 'bool', + 'is_enabled': 'bool', + 'last_applied_at': 'datetime', + 'max_age_hours': 'int', + 'rule_type': 'str', + 'slug': 'str', + 'slug_perm': 'str', + 'updated_at': 'datetime' + } + + attribute_map = { + 'created_at': 'created_at', + 'enforce_refresh': 'enforce_refresh', + 'is_enabled': 'is_enabled', + 'last_applied_at': 'last_applied_at', + 'max_age_hours': 'max_age_hours', + 'rule_type': 'rule_type', + 'slug': 'slug', + 'slug_perm': 'slug_perm', + 'updated_at': 'updated_at' + } + + def __init__(self, created_at=None, enforce_refresh=None, is_enabled=None, last_applied_at=None, max_age_hours=None, rule_type=None, slug=None, slug_perm=None, updated_at=None, _configuration=None): # noqa: E501 + """OrganizationApiKeyRule - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._created_at = None + self._enforce_refresh = None + self._is_enabled = None + self._last_applied_at = None + self._max_age_hours = None + self._rule_type = None + self._slug = None + self._slug_perm = None + self._updated_at = None + self.discriminator = None + + if created_at is not None: + self.created_at = created_at + if enforce_refresh is not None: + self.enforce_refresh = enforce_refresh + if is_enabled is not None: + self.is_enabled = is_enabled + if last_applied_at is not None: + self.last_applied_at = last_applied_at + if max_age_hours is not None: + self.max_age_hours = max_age_hours + self.rule_type = rule_type + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + if updated_at is not None: + self.updated_at = updated_at + + @property + def created_at(self): + """Gets the created_at of this OrganizationApiKeyRule. + + + :return: The created_at of this OrganizationApiKeyRule. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this OrganizationApiKeyRule. + + + :param created_at: The created_at of this OrganizationApiKeyRule. + :type: datetime + """ + + self._created_at = created_at + + @property + def enforce_refresh(self): + """Gets the enforce_refresh of this OrganizationApiKeyRule. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :return: The enforce_refresh of this OrganizationApiKeyRule. + :rtype: bool + """ + return self._enforce_refresh + + @enforce_refresh.setter + def enforce_refresh(self, enforce_refresh): + """Sets the enforce_refresh of this OrganizationApiKeyRule. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :param enforce_refresh: The enforce_refresh of this OrganizationApiKeyRule. + :type: bool + """ + + self._enforce_refresh = enforce_refresh + + @property + def is_enabled(self): + """Gets the is_enabled of this OrganizationApiKeyRule. + + Whether this rule is currently active and enforced. + + :return: The is_enabled of this OrganizationApiKeyRule. + :rtype: bool + """ + return self._is_enabled + + @is_enabled.setter + def is_enabled(self, is_enabled): + """Sets the is_enabled of this OrganizationApiKeyRule. + + Whether this rule is currently active and enforced. + + :param is_enabled: The is_enabled of this OrganizationApiKeyRule. + :type: bool + """ + + self._is_enabled = is_enabled + + @property + def last_applied_at(self): + """Gets the last_applied_at of this OrganizationApiKeyRule. + + The last time this rule was evaluated and applied by the expiry task. + + :return: The last_applied_at of this OrganizationApiKeyRule. + :rtype: datetime + """ + return self._last_applied_at + + @last_applied_at.setter + def last_applied_at(self, last_applied_at): + """Sets the last_applied_at of this OrganizationApiKeyRule. + + The last time this rule was evaluated and applied by the expiry task. + + :param last_applied_at: The last_applied_at of this OrganizationApiKeyRule. + :type: datetime + """ + + self._last_applied_at = last_applied_at + + @property + def max_age_hours(self): + """Gets the max_age_hours of this OrganizationApiKeyRule. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :return: The max_age_hours of this OrganizationApiKeyRule. + :rtype: int + """ + return self._max_age_hours + + @max_age_hours.setter + def max_age_hours(self, max_age_hours): + """Sets the max_age_hours of this OrganizationApiKeyRule. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :param max_age_hours: The max_age_hours of this OrganizationApiKeyRule. + :type: int + """ + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours > 2147483647): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value less than or equal to `2147483647`") # noqa: E501 + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours < 24): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value greater than or equal to `24`") # noqa: E501 + + self._max_age_hours = max_age_hours + + @property + def rule_type(self): + """Gets the rule_type of this OrganizationApiKeyRule. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :return: The rule_type of this OrganizationApiKeyRule. + :rtype: str + """ + return self._rule_type + + @rule_type.setter + def rule_type(self, rule_type): + """Sets the rule_type of this OrganizationApiKeyRule. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :param rule_type: The rule_type of this OrganizationApiKeyRule. + :type: str + """ + if self._configuration.client_side_validation and rule_type is None: + raise ValueError("Invalid value for `rule_type`, must not be `None`") # noqa: E501 + allowed_values = ["All Accounts", "Service Accounts", "User Accounts"] # noqa: E501 + if (self._configuration.client_side_validation and + rule_type not in allowed_values): + raise ValueError( + "Invalid value for `rule_type` ({0}), must be one of {1}" # noqa: E501 + .format(rule_type, allowed_values) + ) + + self._rule_type = rule_type + + @property + def slug(self): + """Gets the slug of this OrganizationApiKeyRule. + + Human-readable identifier for the rule type. Automatically generated based on the rule type. + + :return: The slug of this OrganizationApiKeyRule. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this OrganizationApiKeyRule. + + Human-readable identifier for the rule type. Automatically generated based on the rule type. + + :param slug: The slug of this OrganizationApiKeyRule. + :type: str + """ + if (self._configuration.client_side_validation and + slug is not None and len(slug) < 1): + raise ValueError("Invalid value for `slug`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug is not None and not re.search('^[-a-zA-Z0-9_]+$', slug)): # noqa: E501 + raise ValueError(r"Invalid value for `slug`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug = slug + + @property + def slug_perm(self): + """Gets the slug_perm of this OrganizationApiKeyRule. + + An auto-generated id that uniquely identifies the API key policy. + + :return: The slug_perm of this OrganizationApiKeyRule. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this OrganizationApiKeyRule. + + An auto-generated id that uniquely identifies the API key policy. + + :param slug_perm: The slug_perm of this OrganizationApiKeyRule. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def updated_at(self): + """Gets the updated_at of this OrganizationApiKeyRule. + + + :return: The updated_at of this OrganizationApiKeyRule. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this OrganizationApiKeyRule. + + + :param updated_at: The updated_at of this OrganizationApiKeyRule. + :type: datetime + """ + + self._updated_at = updated_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(OrganizationApiKeyRule, 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, OrganizationApiKeyRule): + 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, OrganizationApiKeyRule): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request.py b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request.py new file mode 100644 index 00000000..2636ed75 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request.py @@ -0,0 +1,252 @@ +# 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 OrganizationApiKeyRuleRequest(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 = { + 'enforce_refresh': 'bool', + 'is_enabled': 'bool', + 'max_age_hours': 'int', + 'refresh_immediately': 'bool', + 'rule_type': 'str' + } + + attribute_map = { + 'enforce_refresh': 'enforce_refresh', + 'is_enabled': 'is_enabled', + 'max_age_hours': 'max_age_hours', + 'refresh_immediately': 'refresh_immediately', + 'rule_type': 'rule_type' + } + + def __init__(self, enforce_refresh=None, is_enabled=None, max_age_hours=None, refresh_immediately=None, rule_type=None, _configuration=None): # noqa: E501 + """OrganizationApiKeyRuleRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._enforce_refresh = None + self._is_enabled = None + self._max_age_hours = None + self._refresh_immediately = None + self._rule_type = None + self.discriminator = None + + if enforce_refresh is not None: + self.enforce_refresh = enforce_refresh + if is_enabled is not None: + self.is_enabled = is_enabled + if max_age_hours is not None: + self.max_age_hours = max_age_hours + if refresh_immediately is not None: + self.refresh_immediately = refresh_immediately + self.rule_type = rule_type + + @property + def enforce_refresh(self): + """Gets the enforce_refresh of this OrganizationApiKeyRuleRequest. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :return: The enforce_refresh of this OrganizationApiKeyRuleRequest. + :rtype: bool + """ + return self._enforce_refresh + + @enforce_refresh.setter + def enforce_refresh(self, enforce_refresh): + """Sets the enforce_refresh of this OrganizationApiKeyRuleRequest. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :param enforce_refresh: The enforce_refresh of this OrganizationApiKeyRuleRequest. + :type: bool + """ + + self._enforce_refresh = enforce_refresh + + @property + def is_enabled(self): + """Gets the is_enabled of this OrganizationApiKeyRuleRequest. + + Whether this rule is currently active and enforced. + + :return: The is_enabled of this OrganizationApiKeyRuleRequest. + :rtype: bool + """ + return self._is_enabled + + @is_enabled.setter + def is_enabled(self, is_enabled): + """Sets the is_enabled of this OrganizationApiKeyRuleRequest. + + Whether this rule is currently active and enforced. + + :param is_enabled: The is_enabled of this OrganizationApiKeyRuleRequest. + :type: bool + """ + + self._is_enabled = is_enabled + + @property + def max_age_hours(self): + """Gets the max_age_hours of this OrganizationApiKeyRuleRequest. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :return: The max_age_hours of this OrganizationApiKeyRuleRequest. + :rtype: int + """ + return self._max_age_hours + + @max_age_hours.setter + def max_age_hours(self, max_age_hours): + """Sets the max_age_hours of this OrganizationApiKeyRuleRequest. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :param max_age_hours: The max_age_hours of this OrganizationApiKeyRuleRequest. + :type: int + """ + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours > 2147483647): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value less than or equal to `2147483647`") # noqa: E501 + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours < 24): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value greater than or equal to `24`") # noqa: E501 + + self._max_age_hours = max_age_hours + + @property + def refresh_immediately(self): + """Gets the refresh_immediately of this OrganizationApiKeyRuleRequest. + + If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + + :return: The refresh_immediately of this OrganizationApiKeyRuleRequest. + :rtype: bool + """ + return self._refresh_immediately + + @refresh_immediately.setter + def refresh_immediately(self, refresh_immediately): + """Sets the refresh_immediately of this OrganizationApiKeyRuleRequest. + + If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + + :param refresh_immediately: The refresh_immediately of this OrganizationApiKeyRuleRequest. + :type: bool + """ + + self._refresh_immediately = refresh_immediately + + @property + def rule_type(self): + """Gets the rule_type of this OrganizationApiKeyRuleRequest. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :return: The rule_type of this OrganizationApiKeyRuleRequest. + :rtype: str + """ + return self._rule_type + + @rule_type.setter + def rule_type(self, rule_type): + """Sets the rule_type of this OrganizationApiKeyRuleRequest. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :param rule_type: The rule_type of this OrganizationApiKeyRuleRequest. + :type: str + """ + if self._configuration.client_side_validation and rule_type is None: + raise ValueError("Invalid value for `rule_type`, must not be `None`") # noqa: E501 + allowed_values = ["All Accounts", "Service Accounts", "User Accounts"] # noqa: E501 + if (self._configuration.client_side_validation and + rule_type not in allowed_values): + raise ValueError( + "Invalid value for `rule_type` ({0}), must be one of {1}" # noqa: E501 + .format(rule_type, allowed_values) + ) + + self._rule_type = rule_type + + 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(OrganizationApiKeyRuleRequest, 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, OrganizationApiKeyRuleRequest): + 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, OrganizationApiKeyRuleRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request_patch.py b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request_patch.py new file mode 100644 index 00000000..72b1accb --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/organization_api_key_rule_request_patch.py @@ -0,0 +1,251 @@ +# 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 OrganizationApiKeyRuleRequestPatch(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 = { + 'enforce_refresh': 'bool', + 'is_enabled': 'bool', + 'max_age_hours': 'int', + 'refresh_immediately': 'bool', + 'rule_type': 'str' + } + + attribute_map = { + 'enforce_refresh': 'enforce_refresh', + 'is_enabled': 'is_enabled', + 'max_age_hours': 'max_age_hours', + 'refresh_immediately': 'refresh_immediately', + 'rule_type': 'rule_type' + } + + def __init__(self, enforce_refresh=None, is_enabled=None, max_age_hours=None, refresh_immediately=None, rule_type=None, _configuration=None): # noqa: E501 + """OrganizationApiKeyRuleRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._enforce_refresh = None + self._is_enabled = None + self._max_age_hours = None + self._refresh_immediately = None + self._rule_type = None + self.discriminator = None + + if enforce_refresh is not None: + self.enforce_refresh = enforce_refresh + if is_enabled is not None: + self.is_enabled = is_enabled + if max_age_hours is not None: + self.max_age_hours = max_age_hours + if refresh_immediately is not None: + self.refresh_immediately = refresh_immediately + if rule_type is not None: + self.rule_type = rule_type + + @property + def enforce_refresh(self): + """Gets the enforce_refresh of this OrganizationApiKeyRuleRequestPatch. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :return: The enforce_refresh of this OrganizationApiKeyRuleRequestPatch. + :rtype: bool + """ + return self._enforce_refresh + + @enforce_refresh.setter + def enforce_refresh(self, enforce_refresh): + """Sets the enforce_refresh of this OrganizationApiKeyRuleRequestPatch. + + When enabled, API keys that violate the organization's rule will be replaced automatically. + + :param enforce_refresh: The enforce_refresh of this OrganizationApiKeyRuleRequestPatch. + :type: bool + """ + + self._enforce_refresh = enforce_refresh + + @property + def is_enabled(self): + """Gets the is_enabled of this OrganizationApiKeyRuleRequestPatch. + + Whether this rule is currently active and enforced. + + :return: The is_enabled of this OrganizationApiKeyRuleRequestPatch. + :rtype: bool + """ + return self._is_enabled + + @is_enabled.setter + def is_enabled(self, is_enabled): + """Sets the is_enabled of this OrganizationApiKeyRuleRequestPatch. + + Whether this rule is currently active and enforced. + + :param is_enabled: The is_enabled of this OrganizationApiKeyRuleRequestPatch. + :type: bool + """ + + self._is_enabled = is_enabled + + @property + def max_age_hours(self): + """Gets the max_age_hours of this OrganizationApiKeyRuleRequestPatch. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :return: The max_age_hours of this OrganizationApiKeyRuleRequestPatch. + :rtype: int + """ + return self._max_age_hours + + @max_age_hours.setter + def max_age_hours(self, max_age_hours): + """Sets the max_age_hours of this OrganizationApiKeyRuleRequestPatch. + + The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + + :param max_age_hours: The max_age_hours of this OrganizationApiKeyRuleRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours > 2147483647): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value less than or equal to `2147483647`") # noqa: E501 + if (self._configuration.client_side_validation and + max_age_hours is not None and max_age_hours < 24): # noqa: E501 + raise ValueError("Invalid value for `max_age_hours`, must be a value greater than or equal to `24`") # noqa: E501 + + self._max_age_hours = max_age_hours + + @property + def refresh_immediately(self): + """Gets the refresh_immediately of this OrganizationApiKeyRuleRequestPatch. + + If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + + :return: The refresh_immediately of this OrganizationApiKeyRuleRequestPatch. + :rtype: bool + """ + return self._refresh_immediately + + @refresh_immediately.setter + def refresh_immediately(self, refresh_immediately): + """Sets the refresh_immediately of this OrganizationApiKeyRuleRequestPatch. + + If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + + :param refresh_immediately: The refresh_immediately of this OrganizationApiKeyRuleRequestPatch. + :type: bool + """ + + self._refresh_immediately = refresh_immediately + + @property + def rule_type(self): + """Gets the rule_type of this OrganizationApiKeyRuleRequestPatch. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :return: The rule_type of this OrganizationApiKeyRuleRequestPatch. + :rtype: str + """ + return self._rule_type + + @rule_type.setter + def rule_type(self, rule_type): + """Sets the rule_type of this OrganizationApiKeyRuleRequestPatch. + + Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + + :param rule_type: The rule_type of this OrganizationApiKeyRuleRequestPatch. + :type: str + """ + allowed_values = ["All Accounts", "Service Accounts", "User Accounts"] # noqa: E501 + if (self._configuration.client_side_validation and + rule_type not in allowed_values): + raise ValueError( + "Invalid value for `rule_type` ({0}), must be one of {1}" # noqa: E501 + .format(rule_type, allowed_values) + ) + + self._rule_type = rule_type + + 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(OrganizationApiKeyRuleRequestPatch, 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, OrganizationApiKeyRuleRequestPatch): + 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, OrganizationApiKeyRuleRequestPatch): + return True + + return self.to_dict() != other.to_dict() + 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 0ca1cd14..55cb0c81 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py @@ -43,6 +43,7 @@ class P2PackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class P2PackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class P2PackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class P2PackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class P2PackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class P2PackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this P2PackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this P2PackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this P2PackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this P2PackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this P2PackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this P2PackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this P2PackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this P2PackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this P2PackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this P2PackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this P2PackageUpload. - - - :return: The vulnerability_counts of this P2PackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this P2PackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this P2PackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this P2PackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py index 1ed26e0c..807fe5e7 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload_request.py @@ -33,66 +33,33 @@ class P2PackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """P2PackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this P2PackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this P2PackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this P2PackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this P2PackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this P2PackageUploadRequest. - - - :return: The vulnerability_counts of this P2PackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this P2PackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this P2PackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package.py b/bindings/python/src/cloudsmith_api/models/package.py index 3f6203f2..e88a0366 100644 --- a/bindings/python/src/cloudsmith_api/models/package.py +++ b/bindings/python/src/cloudsmith_api/models/package.py @@ -43,6 +43,7 @@ class Package(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -138,6 +139,7 @@ class Package(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -222,7 +224,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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """Package - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -238,6 +240,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -342,6 +345,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -721,6 +726,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this Package. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this Package. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this Package. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this Package. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro 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 eb4c9015..a18e7db2 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy.py @@ -43,6 +43,7 @@ class PackageCopy(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -63,7 +64,6 @@ class PackageCopy(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -123,7 +123,6 @@ class PackageCopy(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -138,6 +137,7 @@ class PackageCopy(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -158,7 +158,6 @@ class PackageCopy(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -218,11 +217,10 @@ class PackageCopy(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -238,6 +236,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -258,7 +257,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -318,7 +316,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -342,6 +339,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -382,8 +381,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -502,8 +499,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -721,6 +716,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageCopy. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageCopy. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageCopy. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageCopy. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageCopy. @@ -1166,29 +1187,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageCopy. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageCopy. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageCopy. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageCopy. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PackageCopy. @@ -2526,27 +2524,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageCopy. - - - :return: The vulnerability_counts of this PackageCopy. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageCopy. - - - :param vulnerability_counts: The vulnerability_counts of this PackageCopy. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageCopy. diff --git a/bindings/python/src/cloudsmith_api/models/package_copy_request.py b/bindings/python/src/cloudsmith_api/models/package_copy_request.py index 0305363e..0dbe90c0 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy_request.py @@ -34,37 +34,27 @@ class PackageCopyRequest(object): """ swagger_types = { 'destination': 'str', - 'is_malware_detected': 'bool', - 'republish': 'bool', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'republish': 'bool' } attribute_map = { 'destination': 'destination', - 'is_malware_detected': 'is_malware_detected', - 'republish': 'republish', - 'vulnerability_counts': 'vulnerability_counts' + 'republish': 'republish' } - def __init__(self, destination=None, is_malware_detected=None, republish=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, republish=None, _configuration=None): # noqa: E501 """PackageCopyRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._destination = None - self._is_malware_detected = None self._republish = None - self._vulnerability_counts = None self.discriminator = None self.destination = destination - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if republish is not None: self.republish = republish - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def destination(self): @@ -94,29 +84,6 @@ def destination(self, destination): self._destination = destination - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageCopyRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageCopyRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageCopyRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageCopyRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def republish(self): """Gets the republish of this PackageCopyRequest. @@ -140,27 +107,6 @@ def republish(self, republish): self._republish = republish - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageCopyRequest. - - - :return: The vulnerability_counts of this PackageCopyRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageCopyRequest. - - - :param vulnerability_counts: The vulnerability_counts of this PackageCopyRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_detail.py b/bindings/python/src/cloudsmith_api/models/package_detail.py index 3315c357..19b812a1 100644 --- a/bindings/python/src/cloudsmith_api/models/package_detail.py +++ b/bindings/python/src/cloudsmith_api/models/package_detail.py @@ -43,6 +43,7 @@ class PackageDetail(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -139,6 +140,7 @@ class PackageDetail(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -224,7 +226,7 @@ class PackageDetail(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, has_dependencies=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, has_dependencies=None, identifier_perm=None, identifiers=None, indexed=None, is_cancellable=None, is_copyable=None, is_deleteable=None, is_downloadable=None, is_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 """PackageDetail - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -240,6 +242,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -345,6 +348,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -726,6 +731,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageDetail. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageDetail. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageDetail. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageDetail. diff --git a/bindings/python/src/cloudsmith_api/models/package_license.py b/bindings/python/src/cloudsmith_api/models/package_license.py index 7394e081..15985161 100644 --- a/bindings/python/src/cloudsmith_api/models/package_license.py +++ b/bindings/python/src/cloudsmith_api/models/package_license.py @@ -33,39 +33,31 @@ class PackageLicense(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'license_notes': 'str', 'license_override': 'str', 'license_url': 'str', - 'spdx_license': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'spdx_license': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'license_notes': 'license_notes', 'license_override': 'license_override', 'license_url': 'license_url', - 'spdx_license': 'spdx_license', - 'vulnerability_counts': 'vulnerability_counts' + 'spdx_license': 'spdx_license' } - def __init__(self, is_malware_detected=None, license_notes=None, license_override='None', license_url=None, spdx_license=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 """PackageLicense - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._license_notes = None self._license_override = None self._license_url = None self._spdx_license = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if license_notes is not None: self.license_notes = license_notes if license_override is not None: @@ -73,31 +65,6 @@ def __init__(self, is_malware_detected=None, license_notes=None, license_overrid if license_url is not None: self.license_url = license_url self.spdx_license = spdx_license - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageLicense. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageLicense. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageLicense. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageLicense. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def license_notes(self): @@ -204,27 +171,6 @@ def spdx_license(self, spdx_license): self._spdx_license = spdx_license - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageLicense. - - - :return: The vulnerability_counts of this PackageLicense. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageLicense. - - - :param vulnerability_counts: The vulnerability_counts of this PackageLicense. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py b/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py index 803f7449..37e3712a 100644 --- a/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/package_license_request_patch.py @@ -34,43 +34,35 @@ class PackageLicenseRequestPatch(object): """ swagger_types = { 'action': 'str', - 'is_malware_detected': 'bool', 'license_notes': 'str', 'license_override': 'str', 'license_url': 'str', - 'spdx_license': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'spdx_license': 'str' } attribute_map = { 'action': 'action', - 'is_malware_detected': 'is_malware_detected', 'license_notes': 'license_notes', 'license_override': 'license_override', 'license_url': 'license_url', - 'spdx_license': 'spdx_license', - 'vulnerability_counts': 'vulnerability_counts' + 'spdx_license': 'spdx_license' } - def __init__(self, action='Update', is_malware_detected=None, license_notes=None, license_override='None', license_url=None, spdx_license=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, action='Update', license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 """PackageLicenseRequestPatch - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._action = None - self._is_malware_detected = None self._license_notes = None self._license_override = None self._license_url = None self._spdx_license = None - self._vulnerability_counts = None self.discriminator = None if action is not None: self.action = action - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if license_notes is not None: self.license_notes = license_notes if license_override is not None: @@ -78,8 +70,6 @@ def __init__(self, action='Update', is_malware_detected=None, license_notes=None if license_url is not None: self.license_url = license_url self.spdx_license = spdx_license - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def action(self): @@ -109,29 +99,6 @@ def action(self, action): self._action = action - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageLicenseRequestPatch. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageLicenseRequestPatch. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageLicenseRequestPatch. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageLicenseRequestPatch. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def license_notes(self): """Gets the license_notes of this PackageLicenseRequestPatch. @@ -237,27 +204,6 @@ def spdx_license(self, spdx_license): self._spdx_license = spdx_license - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageLicenseRequestPatch. - - - :return: The vulnerability_counts of this PackageLicenseRequestPatch. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageLicenseRequestPatch. - - - :param vulnerability_counts: The vulnerability_counts of this PackageLicenseRequestPatch. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_move.py b/bindings/python/src/cloudsmith_api/models/package_move.py index a609d672..71f1dc4a 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move.py +++ b/bindings/python/src/cloudsmith_api/models/package_move.py @@ -43,6 +43,7 @@ class PackageMove(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -63,7 +64,6 @@ class PackageMove(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -123,7 +123,6 @@ class PackageMove(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -138,6 +137,7 @@ class PackageMove(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -158,7 +158,6 @@ class PackageMove(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -218,11 +217,10 @@ class PackageMove(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -238,6 +236,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -258,7 +257,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -318,7 +316,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -342,6 +339,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -382,8 +381,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -502,8 +499,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -721,6 +716,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageMove. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageMove. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageMove. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageMove. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageMove. @@ -1166,29 +1187,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageMove. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageMove. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageMove. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageMove. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PackageMove. @@ -2526,27 +2524,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageMove. - - - :return: The vulnerability_counts of this PackageMove. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageMove. - - - :param vulnerability_counts: The vulnerability_counts of this PackageMove. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageMove. diff --git a/bindings/python/src/cloudsmith_api/models/package_move_request.py b/bindings/python/src/cloudsmith_api/models/package_move_request.py index c1a752ee..287049fa 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_move_request.py @@ -33,33 +33,23 @@ class PackageMoveRequest(object): and the value is json key in definition. """ swagger_types = { - 'destination': 'str', - 'is_malware_detected': 'bool', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'destination': 'str' } attribute_map = { - 'destination': 'destination', - 'is_malware_detected': 'is_malware_detected', - 'vulnerability_counts': 'vulnerability_counts' + 'destination': 'destination' } - def __init__(self, destination=None, is_malware_detected=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, _configuration=None): # noqa: E501 """PackageMoveRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._destination = None - self._is_malware_detected = None - self._vulnerability_counts = None self.discriminator = None self.destination = destination - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def destination(self): @@ -89,50 +79,6 @@ def destination(self, destination): self._destination = destination - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageMoveRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageMoveRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageMoveRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageMoveRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageMoveRequest. - - - :return: The vulnerability_counts of this PackageMoveRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageMoveRequest. - - - :param vulnerability_counts: The vulnerability_counts of this PackageMoveRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_quarantine.py b/bindings/python/src/cloudsmith_api/models/package_quarantine.py index 652bd598..5afd265b 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine.py @@ -43,6 +43,7 @@ class PackageQuarantine(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -63,7 +64,6 @@ class PackageQuarantine(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -122,7 +122,6 @@ class PackageQuarantine(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -137,6 +136,7 @@ class PackageQuarantine(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -157,7 +157,6 @@ class PackageQuarantine(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -216,11 +215,10 @@ class PackageQuarantine(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -236,6 +234,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -256,7 +255,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -315,7 +313,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -339,6 +336,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -379,8 +378,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -497,8 +494,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -716,6 +711,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageQuarantine. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageQuarantine. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageQuarantine. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageQuarantine. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageQuarantine. @@ -1161,29 +1182,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageQuarantine. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageQuarantine. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageQuarantine. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageQuarantine. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PackageQuarantine. @@ -2496,27 +2494,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageQuarantine. - - - :return: The vulnerability_counts of this PackageQuarantine. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageQuarantine. - - - :param vulnerability_counts: The vulnerability_counts of this PackageQuarantine. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageQuarantine. diff --git a/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py b/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py index 9676669d..fec151dd 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py @@ -33,62 +33,29 @@ class PackageQuarantineRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'release': 'bool', - 'restore': 'bool', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'restore': 'bool' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'release': 'release', - 'restore': 'restore', - 'vulnerability_counts': 'vulnerability_counts' + 'restore': 'restore' } - def __init__(self, is_malware_detected=None, release=None, restore=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, release=None, restore=None, _configuration=None): # noqa: E501 """PackageQuarantineRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._release = None self._restore = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if release is not None: self.release = release if restore is not None: self.restore = restore - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageQuarantineRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageQuarantineRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageQuarantineRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageQuarantineRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def release(self): @@ -136,27 +103,6 @@ def restore(self, restore): self._restore = restore - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageQuarantineRequest. - - - :return: The vulnerability_counts of this PackageQuarantineRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageQuarantineRequest. - - - :param vulnerability_counts: The vulnerability_counts of this PackageQuarantineRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_resync.py b/bindings/python/src/cloudsmith_api/models/package_resync.py index 9fd887f8..a8bc3026 100644 --- a/bindings/python/src/cloudsmith_api/models/package_resync.py +++ b/bindings/python/src/cloudsmith_api/models/package_resync.py @@ -43,6 +43,7 @@ class PackageResync(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -63,7 +64,6 @@ class PackageResync(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -123,7 +123,6 @@ class PackageResync(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -138,6 +137,7 @@ class PackageResync(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -158,7 +158,6 @@ class PackageResync(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -218,11 +217,10 @@ class PackageResync(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -238,6 +236,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -258,7 +257,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -318,7 +316,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -342,6 +339,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -382,8 +381,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -502,8 +499,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -721,6 +716,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageResync. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageResync. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageResync. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageResync. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageResync. @@ -1166,29 +1187,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageResync. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageResync. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageResync. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageResync. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PackageResync. @@ -2524,27 +2522,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageResync. - - - :return: The vulnerability_counts of this PackageResync. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageResync. - - - :param vulnerability_counts: The vulnerability_counts of this PackageResync. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageResync. diff --git a/bindings/python/src/cloudsmith_api/models/package_tag.py b/bindings/python/src/cloudsmith_api/models/package_tag.py index 28655c9b..95767404 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag.py @@ -43,6 +43,7 @@ class PackageTag(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -64,7 +65,6 @@ class PackageTag(object): 'is_downloadable': 'bool', 'is_hidden': 'bool', 'is_immutable': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -123,7 +123,6 @@ class PackageTag(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -138,6 +137,7 @@ class PackageTag(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -159,7 +159,6 @@ class PackageTag(object): 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', 'is_immutable': 'is_immutable', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -218,11 +217,10 @@ class PackageTag(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_immutable=False, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -238,6 +236,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -259,7 +258,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_downloadable = None self._is_hidden = None self._is_immutable = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -318,7 +316,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -342,6 +339,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -384,8 +383,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_hidden = is_hidden if is_immutable is not None: self.is_immutable = is_immutable - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -502,8 +499,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -721,6 +716,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PackageTag. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PackageTag. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PackageTag. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PackageTag. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PackageTag. @@ -1189,29 +1210,6 @@ def is_immutable(self, is_immutable): self._is_immutable = is_immutable - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageTag. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageTag. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageTag. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageTag. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PackageTag. @@ -2526,27 +2524,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageTag. - - - :return: The vulnerability_counts of this PackageTag. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageTag. - - - :param vulnerability_counts: The vulnerability_counts of this PackageTag. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PackageTag. diff --git a/bindings/python/src/cloudsmith_api/models/package_tag_request.py b/bindings/python/src/cloudsmith_api/models/package_tag_request.py index 705ed09f..63cdc649 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag_request.py @@ -35,20 +35,16 @@ class PackageTagRequest(object): swagger_types = { 'action': 'str', 'is_immutable': 'bool', - 'is_malware_detected': 'bool', - 'tags': 'list[str]', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'list[str]' } attribute_map = { 'action': 'action', 'is_immutable': 'is_immutable', - 'is_malware_detected': 'is_malware_detected', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, action='Add', is_immutable=False, is_malware_detected=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, action='Add', is_immutable=False, tags=None, _configuration=None): # noqa: E501 """PackageTagRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -56,21 +52,15 @@ def __init__(self, action='Add', is_immutable=False, is_malware_detected=None, t self._action = None self._is_immutable = None - self._is_malware_detected = None self._tags = None - self._vulnerability_counts = None self.discriminator = None if action is not None: self.action = action if is_immutable is not None: self.is_immutable = is_immutable - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def action(self): @@ -123,29 +113,6 @@ def is_immutable(self, is_immutable): self._is_immutable = is_immutable - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageTagRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageTagRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageTagRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageTagRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def tags(self): """Gets the tags of this PackageTagRequest. @@ -169,27 +136,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageTagRequest. - - - :return: The vulnerability_counts of this PackageTagRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageTagRequest. - - - :param vulnerability_counts: The vulnerability_counts of this PackageTagRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/cloudsmith_api/models/package_vulnerability.py b/bindings/python/src/cloudsmith_api/models/package_vulnerability.py index 88faf4d3..d814ac54 100644 --- a/bindings/python/src/cloudsmith_api/models/package_vulnerability.py +++ b/bindings/python/src/cloudsmith_api/models/package_vulnerability.py @@ -34,47 +34,37 @@ class PackageVulnerability(object): """ swagger_types = { 'identifier': 'str', - 'is_malware_detected': 'bool', 'name': 'str', 'url': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'identifier': 'identifier', - 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'url': 'url', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, identifier=None, is_malware_detected=None, name=None, url=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, identifier=None, name=None, url=None, version=None, _configuration=None): # noqa: E501 """PackageVulnerability - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._identifier = None - self._is_malware_detected = None self._name = None self._url = None self._version = None - self._vulnerability_counts = None self.discriminator = None self.identifier = identifier - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if name is not None: self.name = name if url is not None: self.url = url if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def identifier(self): @@ -102,29 +92,6 @@ def identifier(self, identifier): self._identifier = identifier - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PackageVulnerability. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PackageVulnerability. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PackageVulnerability. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PackageVulnerability. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def name(self): """Gets the name of this PackageVulnerability. @@ -192,27 +159,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PackageVulnerability. - - - :return: The vulnerability_counts of this PackageVulnerability. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PackageVulnerability. - - - :param vulnerability_counts: The vulnerability_counts of this PackageVulnerability. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 bfdc93f0..201bf64f 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload.py @@ -43,6 +43,7 @@ class PythonPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class PythonPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class PythonPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class PythonPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class PythonPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class PythonPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this PythonPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this PythonPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this PythonPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this PythonPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this PythonPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PythonPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PythonPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PythonPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PythonPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this PythonPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PythonPackageUpload. - - - :return: The vulnerability_counts of this PythonPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PythonPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this PythonPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this PythonPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py index 45a75242..9fd386ff 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload_request.py @@ -33,66 +33,33 @@ class PythonPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """PythonPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this PythonPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this PythonPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this PythonPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this PythonPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this PythonPackageUploadRequest. - - - :return: The vulnerability_counts of this PythonPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this PythonPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this PythonPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 e4b96f48..580d8838 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -43,6 +43,7 @@ class RawPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class RawPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class RawPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class RawPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class RawPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class RawPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -714,6 +709,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this RawPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this RawPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this RawPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this RawPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this RawPackageUpload. @@ -1133,29 +1154,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RawPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RawPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RawPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RawPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this RawPackageUpload. @@ -2479,27 +2477,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RawPackageUpload. - - - :return: The vulnerability_counts of this RawPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RawPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this RawPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RawPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py index 2195b0a6..6db64e5f 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload_request.py @@ -35,30 +35,26 @@ class RawPackageUploadRequest(object): swagger_types = { 'content_type': 'str', 'description': 'str', - 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'summary': 'str', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'content_type': 'content_type', 'description': 'description', - 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'summary': 'summary', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, content_type=None, description=None, is_malware_detected=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, _configuration=None): # noqa: E501 """RawPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -66,22 +62,18 @@ def __init__(self, content_type=None, description=None, is_malware_detected=None self._content_type = None self._description = None - self._is_malware_detected = None self._name = None self._package_file = None self._republish = None self._summary = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None if content_type is not None: self.content_type = content_type if description is not None: self.description = description - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if name is not None: self.name = name self.package_file = package_file @@ -93,8 +85,6 @@ def __init__(self, content_type=None, description=None, is_malware_detected=None self.tags = tags if version is not None: self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def content_type(self): @@ -151,29 +141,6 @@ def description(self, description): self._description = description - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RawPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RawPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RawPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RawPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def name(self): """Gets the name of this RawPackageUploadRequest. @@ -332,27 +299,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RawPackageUploadRequest. - - - :return: The vulnerability_counts of this RawPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RawPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this RawPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 c0538938..51dffbb3 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py @@ -43,6 +43,7 @@ class RpmPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class RpmPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class RpmPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class RpmPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class RpmPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class RpmPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this RpmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this RpmPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this RpmPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this RpmPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this RpmPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RpmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RpmPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RpmPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RpmPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this RpmPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RpmPackageUpload. - - - :return: The vulnerability_counts of this RpmPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RpmPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this RpmPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RpmPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py index e935c911..5099752f 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload_request.py @@ -34,46 +34,36 @@ class RpmPackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { 'distribution': 'distribution', - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """RpmPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._distribution = None - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None self.distribution = distribution - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def distribution(self): @@ -103,29 +93,6 @@ def distribution(self, distribution): self._distribution = distribution - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RpmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RpmPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RpmPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RpmPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def package_file(self): """Gets the package_file of this RpmPackageUploadRequest. @@ -206,27 +173,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RpmPackageUploadRequest. - - - :return: The vulnerability_counts of this RpmPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RpmPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this RpmPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 97a1862f..29bcf1d2 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py @@ -43,6 +43,7 @@ class RubyPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class RubyPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class RubyPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class RubyPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class RubyPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class RubyPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this RubyPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this RubyPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this RubyPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this RubyPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this RubyPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RubyPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RubyPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RubyPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RubyPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this RubyPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RubyPackageUpload. - - - :return: The vulnerability_counts of this RubyPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RubyPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this RubyPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this RubyPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py index 9de94e2f..61ff70ce 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload_request.py @@ -33,66 +33,33 @@ class RubyPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """RubyPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this RubyPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this RubyPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this RubyPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this RubyPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this RubyPackageUploadRequest. - - - :return: The vulnerability_counts of this RubyPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this RubyPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this RubyPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 d7573e23..aaf2817b 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py @@ -45,6 +45,7 @@ class SwiftPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -64,7 +65,6 @@ class SwiftPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -126,7 +126,6 @@ class SwiftPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -143,6 +142,7 @@ class SwiftPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -162,7 +162,6 @@ class SwiftPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -224,11 +223,10 @@ class SwiftPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -246,6 +244,7 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -265,7 +264,6 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -327,7 +325,6 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -355,6 +352,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -393,8 +392,6 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -514,8 +511,6 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -785,6 +780,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this SwiftPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this SwiftPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this SwiftPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this SwiftPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this SwiftPackageUpload. @@ -1204,29 +1225,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this SwiftPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this SwiftPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this SwiftPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this SwiftPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this SwiftPackageUpload. @@ -2639,27 +2637,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this SwiftPackageUpload. - - - :return: The vulnerability_counts of this SwiftPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this SwiftPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this SwiftPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this SwiftPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py index fb43009c..d5f14ff3 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload_request.py @@ -35,7 +35,6 @@ class SwiftPackageUploadRequest(object): swagger_types = { 'author_name': 'str', 'author_org': 'str', - 'is_malware_detected': 'bool', 'license_url': 'str', 'name': 'str', 'package_file': 'str', @@ -44,14 +43,12 @@ class SwiftPackageUploadRequest(object): 'republish': 'bool', 'scope': 'str', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { 'author_name': 'author_name', 'author_org': 'author_org', - 'is_malware_detected': 'is_malware_detected', 'license_url': 'license_url', 'name': 'name', 'package_file': 'package_file', @@ -60,11 +57,10 @@ class SwiftPackageUploadRequest(object): 'republish': 'republish', 'scope': 'scope', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, author_name=None, author_org=None, is_malware_detected=None, license_url=None, name=None, package_file=None, readme_url=None, repository_url=None, republish=None, scope=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, author_name=None, author_org=None, license_url=None, name=None, package_file=None, readme_url=None, repository_url=None, republish=None, scope=None, tags=None, version=None, _configuration=None): # noqa: E501 """SwiftPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -72,7 +68,6 @@ def __init__(self, author_name=None, author_org=None, is_malware_detected=None, self._author_name = None self._author_org = None - self._is_malware_detected = None self._license_url = None self._name = None self._package_file = None @@ -82,15 +77,12 @@ def __init__(self, author_name=None, author_org=None, is_malware_detected=None, self._scope = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None if author_name is not None: self.author_name = author_name if author_org is not None: self.author_org = author_org - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if license_url is not None: self.license_url = license_url self.name = name @@ -105,8 +97,6 @@ def __init__(self, author_name=None, author_org=None, is_malware_detected=None, if tags is not None: self.tags = tags self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts @property def author_name(self): @@ -160,29 +150,6 @@ def author_org(self, author_org): self._author_org = author_org - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this SwiftPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this SwiftPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this SwiftPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this SwiftPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def license_url(self): """Gets the license_url of this SwiftPackageUploadRequest. @@ -428,27 +395,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this SwiftPackageUploadRequest. - - - :return: The vulnerability_counts of this SwiftPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this SwiftPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this SwiftPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 cad9603b..a368cd10 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py @@ -43,6 +43,7 @@ class TerraformPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class TerraformPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class TerraformPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class TerraformPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class TerraformPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class TerraformPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this TerraformPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this TerraformPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this TerraformPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this TerraformPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this TerraformPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this TerraformPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this TerraformPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this TerraformPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this TerraformPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this TerraformPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this TerraformPackageUpload. - - - :return: The vulnerability_counts of this TerraformPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this TerraformPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this TerraformPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this TerraformPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py index 0c9892de..030f5659 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload_request.py @@ -33,66 +33,33 @@ class TerraformPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """TerraformPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this TerraformPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this TerraformPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this TerraformPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this TerraformPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this TerraformPackageUploadRequest. - - - :return: The vulnerability_counts of this TerraformPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this TerraformPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this TerraformPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 4f7b4e15..1756f185 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -43,6 +43,7 @@ class VagrantPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class VagrantPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -122,7 +122,6 @@ class VagrantPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -137,6 +136,7 @@ class VagrantPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -156,7 +156,6 @@ class VagrantPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -216,11 +215,10 @@ class VagrantPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -236,6 +234,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -255,7 +254,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -315,7 +313,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -339,6 +336,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -377,8 +376,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -494,8 +491,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -713,6 +708,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this VagrantPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this VagrantPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this VagrantPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this VagrantPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this VagrantPackageUpload. @@ -1132,29 +1153,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this VagrantPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this VagrantPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this VagrantPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this VagrantPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this VagrantPackageUpload. @@ -2507,27 +2505,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this VagrantPackageUpload. - - - :return: The vulnerability_counts of this VagrantPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this VagrantPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this VagrantPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this VagrantPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py index 0ba08964..9f10044e 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload_request.py @@ -33,45 +33,37 @@ class VagrantPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'provider': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'version': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'provider': 'provider', 'republish': 'republish', 'tags': 'tags', - 'version': 'version', - 'vulnerability_counts': 'vulnerability_counts' + 'version': 'version' } - def __init__(self, is_malware_detected=None, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 """VagrantPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._name = None self._package_file = None self._provider = None self._republish = None self._tags = None self._version = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.name = name self.package_file = package_file self.provider = provider @@ -80,31 +72,6 @@ def __init__(self, is_malware_detected=None, name=None, package_file=None, provi if tags is not None: self.tags = tags self.version = version - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this VagrantPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this VagrantPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this VagrantPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this VagrantPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def name(self): @@ -270,27 +237,6 @@ def version(self, version): self._version = version - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this VagrantPackageUploadRequest. - - - :return: The vulnerability_counts of this VagrantPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this VagrantPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this VagrantPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} 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 3ee25901..0d791bb7 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py @@ -43,6 +43,7 @@ class VsxPackageUpload(object): 'dependencies_url': 'str', 'description': 'str', 'display_name': 'str', + 'display_source': 'str', 'distro': 'Distribution', 'distro_version': 'DistributionVersion', 'downloads': 'int', @@ -62,7 +63,6 @@ class VsxPackageUpload(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', - 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -121,7 +121,6 @@ class VsxPackageUpload(object): 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -136,6 +135,7 @@ class VsxPackageUpload(object): 'dependencies_url': 'dependencies_url', 'description': 'description', 'display_name': 'display_name', + 'display_source': 'display_source', 'distro': 'distro', 'distro_version': 'distro_version', 'downloads': 'downloads', @@ -155,7 +155,6 @@ class VsxPackageUpload(object): 'is_deleteable': 'is_deleteable', 'is_downloadable': 'is_downloadable', 'is_hidden': 'is_hidden', - 'is_malware_detected': 'is_malware_detected', 'is_moveable': 'is_moveable', 'is_quarantinable': 'is_quarantinable', 'is_quarantined': 'is_quarantined', @@ -214,11 +213,10 @@ class VsxPackageUpload(object): 'uploader_url': 'uploader_url', 'version': 'version', 'version_orig': 'version_orig', - 'vulnerability_counts': 'vulnerability_counts', '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_hidden=None, is_malware_detected=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_counts=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, display_source=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, store_path=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, tags_static=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() @@ -234,6 +232,7 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._dependencies_url = None self._description = None self._display_name = None + self._display_source = None self._distro = None self._distro_version = None self._downloads = None @@ -253,7 +252,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._is_deleteable = None self._is_downloadable = None self._is_hidden = None - self._is_malware_detected = None self._is_moveable = None self._is_quarantinable = None self._is_quarantined = None @@ -312,7 +310,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._uploader_url = None self._version = None self._version_orig = None - self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -336,6 +333,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.description = description if display_name is not None: self.display_name = display_name + if display_source is not None: + self.display_source = display_source if distro is not None: self.distro = distro if distro_version is not None: @@ -374,8 +373,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.is_downloadable = is_downloadable if is_hidden is not None: self.is_hidden = is_hidden - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected if is_moveable is not None: self.is_moveable = is_moveable if is_quarantinable is not None: @@ -492,8 +489,6 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.version = version if version_orig is not None: self.version_orig = version_orig - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts if vulnerability_scan_results_url is not None: self.vulnerability_scan_results_url = vulnerability_scan_results_url @@ -711,6 +706,32 @@ def display_name(self, display_name): self._display_name = display_name + @property + def display_source(self): + """Gets the display_source of this VsxPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :return: The display_source of this VsxPackageUpload. + :rtype: str + """ + return self._display_source + + @display_source.setter + def display_source(self, display_source): + """Sets the display_source of this VsxPackageUpload. + + Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + + :param display_source: The display_source of this VsxPackageUpload. + :type: str + """ + if (self._configuration.client_side_validation and + display_source is not None and len(display_source) < 1): + raise ValueError("Invalid value for `display_source`, length must be greater than or equal to `1`") # noqa: E501 + + self._display_source = display_source + @property def distro(self): """Gets the distro of this VsxPackageUpload. @@ -1130,29 +1151,6 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this VsxPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this VsxPackageUpload. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this VsxPackageUpload. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this VsxPackageUpload. - :type: bool - """ - - self._is_malware_detected = is_malware_detected - @property def is_moveable(self): """Gets the is_moveable of this VsxPackageUpload. @@ -2467,27 +2465,6 @@ def version_orig(self, version_orig): self._version_orig = version_orig - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this VsxPackageUpload. - - - :return: The vulnerability_counts of this VsxPackageUpload. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this VsxPackageUpload. - - - :param vulnerability_counts: The vulnerability_counts of this VsxPackageUpload. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url of this VsxPackageUpload. diff --git a/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py index 2b54b606..d610fbec 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload_request.py @@ -33,66 +33,33 @@ class VsxPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { - 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str', - 'vulnerability_counts': 'WebOSVSeverityCounts' + 'tags': 'str' } attribute_map = { - 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags', - 'vulnerability_counts': 'vulnerability_counts' + 'tags': 'tags' } - def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 """VsxPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration - self._is_malware_detected = None self._package_file = None self._republish = None self._tags = None - self._vulnerability_counts = None self.discriminator = None - if is_malware_detected is not None: - self.is_malware_detected = is_malware_detected self.package_file = package_file if republish is not None: self.republish = republish if tags is not None: self.tags = tags - if vulnerability_counts is not None: - self.vulnerability_counts = vulnerability_counts - - @property - def is_malware_detected(self): - """Gets the is_malware_detected of this VsxPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :return: The is_malware_detected of this VsxPackageUploadRequest. - :rtype: bool - """ - return self._is_malware_detected - - @is_malware_detected.setter - def is_malware_detected(self, is_malware_detected): - """Sets the is_malware_detected of this VsxPackageUploadRequest. - - Whether the package has been detected as containing malware. Requires Ultra plan. - - :param is_malware_detected: The is_malware_detected of this VsxPackageUploadRequest. - :type: bool - """ - - self._is_malware_detected = is_malware_detected @property def package_file(self): @@ -174,27 +141,6 @@ def tags(self, tags): self._tags = tags - @property - def vulnerability_counts(self): - """Gets the vulnerability_counts of this VsxPackageUploadRequest. - - - :return: The vulnerability_counts of this VsxPackageUploadRequest. - :rtype: WebOSVSeverityCounts - """ - return self._vulnerability_counts - - @vulnerability_counts.setter - def vulnerability_counts(self, vulnerability_counts): - """Sets the vulnerability_counts of this VsxPackageUploadRequest. - - - :param vulnerability_counts: The vulnerability_counts of this VsxPackageUploadRequest. - :type: WebOSVSeverityCounts - """ - - self._vulnerability_counts = vulnerability_counts - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/bindings/python/src/docs/AlpinePackageUpload.md b/bindings/python/src/docs/AlpinePackageUpload.md index bdaa2921..361bfd5b 100644 --- a/bindings/python/src/docs/AlpinePackageUpload.md +++ b/bindings/python/src/docs/AlpinePackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/AlpinePackageUploadRequest.md b/bindings/python/src/docs/AlpinePackageUploadRequest.md index b16a5906..73671a11 100644 --- a/bindings/python/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/python/src/docs/AlpinePackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **str** | The distribution to store the package for. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CargoPackageUpload.md b/bindings/python/src/docs/CargoPackageUpload.md index b0ec0cd9..1e8e5f89 100644 --- a/bindings/python/src/docs/CargoPackageUpload.md +++ b/bindings/python/src/docs/CargoPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CargoPackageUploadRequest.md b/bindings/python/src/docs/CargoPackageUploadRequest.md index 01dab240..16652d00 100644 --- a/bindings/python/src/docs/CargoPackageUploadRequest.md +++ b/bindings/python/src/docs/CargoPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CocoapodsPackageUpload.md b/bindings/python/src/docs/CocoapodsPackageUpload.md index 215ff04f..db9a167c 100644 --- a/bindings/python/src/docs/CocoapodsPackageUpload.md +++ b/bindings/python/src/docs/CocoapodsPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CocoapodsPackageUploadRequest.md b/bindings/python/src/docs/CocoapodsPackageUploadRequest.md index c260e24a..84ff23fb 100644 --- a/bindings/python/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/python/src/docs/CocoapodsPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ComposerPackageUpload.md b/bindings/python/src/docs/ComposerPackageUpload.md index f814e313..89f29a76 100644 --- a/bindings/python/src/docs/ComposerPackageUpload.md +++ b/bindings/python/src/docs/ComposerPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ComposerPackageUploadRequest.md b/bindings/python/src/docs/ComposerPackageUploadRequest.md index d6f5a80c..3d0197e2 100644 --- a/bindings/python/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/python/src/docs/ComposerPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConanPackageUpload.md b/bindings/python/src/docs/ConanPackageUpload.md index b16947ee..c34101f5 100644 --- a/bindings/python/src/docs/ConanPackageUpload.md +++ b/bindings/python/src/docs/ConanPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConanPackageUploadRequest.md b/bindings/python/src/docs/ConanPackageUploadRequest.md index 3b85121f..9177ddf4 100644 --- a/bindings/python/src/docs/ConanPackageUploadRequest.md +++ b/bindings/python/src/docs/ConanPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **conan_channel** | **str** | Conan channel. | [optional] **conan_prefix** | **str** | Conan prefix (User). | [optional] **info_file** | **str** | The info file is an python file containing the package metadata. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifest_file** | **str** | The info file is an python file containing the package metadata. | **metadata_file** | **str** | The conan file is an python file containing the package metadata. | **name** | **str** | The name of this package. | [optional] @@ -14,7 +13,6 @@ Name | Type | Description | Notes **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CondaPackageUpload.md b/bindings/python/src/docs/CondaPackageUpload.md index 50ce2af1..d81d9921 100644 --- a/bindings/python/src/docs/CondaPackageUpload.md +++ b/bindings/python/src/docs/CondaPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CondaPackageUploadRequest.md b/bindings/python/src/docs/CondaPackageUploadRequest.md index 39c44b2f..e837c937 100644 --- a/bindings/python/src/docs/CondaPackageUploadRequest.md +++ b/bindings/python/src/docs/CondaPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConnectedRepository.md b/bindings/python/src/docs/ConnectedRepository.md index 8b4703ea..eff946d2 100644 --- a/bindings/python/src/docs/ConnectedRepository.md +++ b/bindings/python/src/docs/ConnectedRepository.md @@ -3,6 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**can_view_target_repository_settings** | **bool** | Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. | [optional] +**configured_upstreams** | [**list[ConnectedRepositoryUpstream]**](ConnectedRepositoryUpstream.md) | The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. | [optional] **created_at** | **datetime** | The date and time when the connection was created. | [optional] **disable_reason** | **str** | | [optional] [default to 'N/A'] **disable_reason_text** | **str** | Human-readable explanation of why this connection is disabled. | [optional] @@ -10,6 +12,7 @@ Name | Type | Description | Notes **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. | +**target_repository_summary** | [**ConnectedRepositoryTargetSummary**](ConnectedRepositoryTargetSummary.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/ConnectedRepositoryTargetSummary.md b/bindings/python/src/docs/ConnectedRepositoryTargetSummary.md new file mode 100644 index 00000000..ca61505c --- /dev/null +++ b/bindings/python/src/docs/ConnectedRepositoryTargetSummary.md @@ -0,0 +1,13 @@ +# ConnectedRepositoryTargetSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_private** | **bool** | | [optional] +**is_public** | **bool** | | [optional] +**package_count** | **int** | | [optional] +**size** | **int** | | [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/ConnectedRepositoryUpstream.md b/bindings/python/src/docs/ConnectedRepositoryUpstream.md new file mode 100644 index 00000000..5d9c7d08 --- /dev/null +++ b/bindings/python/src/docs/ConnectedRepositoryUpstream.md @@ -0,0 +1,11 @@ +# ConnectedRepositoryUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | The format/backend slug of the upstream (e.g. 'npm'). | [optional] +**upstream_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/CranPackageUpload.md b/bindings/python/src/docs/CranPackageUpload.md index 7231f3ff..46e87390 100644 --- a/bindings/python/src/docs/CranPackageUpload.md +++ b/bindings/python/src/docs/CranPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/CranPackageUploadRequest.md b/bindings/python/src/docs/CranPackageUploadRequest.md index a05d6f39..adf7fe71 100644 --- a/bindings/python/src/docs/CranPackageUploadRequest.md +++ b/bindings/python/src/docs/CranPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **str** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **r_version** | **str** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DartPackageUpload.md b/bindings/python/src/docs/DartPackageUpload.md index 14c16618..e5acaf37 100644 --- a/bindings/python/src/docs/DartPackageUpload.md +++ b/bindings/python/src/docs/DartPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DartPackageUploadRequest.md b/bindings/python/src/docs/DartPackageUploadRequest.md index a01c0d7e..670cd6f4 100644 --- a/bindings/python/src/docs/DartPackageUploadRequest.md +++ b/bindings/python/src/docs/DartPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DebPackageUpload.md b/bindings/python/src/docs/DebPackageUpload.md index dd47d1eb..025592e5 100644 --- a/bindings/python/src/docs/DebPackageUpload.md +++ b/bindings/python/src/docs/DebPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DebPackageUploadRequest.md b/bindings/python/src/docs/DebPackageUploadRequest.md index aa451afb..8fddc1a6 100644 --- a/bindings/python/src/docs/DebPackageUploadRequest.md +++ b/bindings/python/src/docs/DebPackageUploadRequest.md @@ -6,12 +6,10 @@ Name | Type | Description | Notes **changes_file** | **str** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **str** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **str** | The distribution to store the package for. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sources_file** | **str** | The sources archive containing the source code for the binary | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DockerPackageUpload.md b/bindings/python/src/docs/DockerPackageUpload.md index ea4aed9f..0fb1a139 100644 --- a/bindings/python/src/docs/DockerPackageUpload.md +++ b/bindings/python/src/docs/DockerPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/DockerPackageUploadRequest.md b/bindings/python/src/docs/DockerPackageUploadRequest.md index 78ad18b4..791c5621 100644 --- a/bindings/python/src/docs/DockerPackageUploadRequest.md +++ b/bindings/python/src/docs/DockerPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GenericPackageUpload.md b/bindings/python/src/docs/GenericPackageUpload.md index 9ab7a371..f5b95e96 100644 --- a/bindings/python/src/docs/GenericPackageUpload.md +++ b/bindings/python/src/docs/GenericPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GenericPackageUploadRequest.md b/bindings/python/src/docs/GenericPackageUploadRequest.md index cdcf7591..0acaf22a 100644 --- a/bindings/python/src/docs/GenericPackageUploadRequest.md +++ b/bindings/python/src/docs/GenericPackageUploadRequest.md @@ -4,13 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **str** | The full filepath of the package including filename. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GoPackageUpload.md b/bindings/python/src/docs/GoPackageUpload.md index b0e3b2a4..714ad752 100644 --- a/bindings/python/src/docs/GoPackageUpload.md +++ b/bindings/python/src/docs/GoPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/GoPackageUploadRequest.md b/bindings/python/src/docs/GoPackageUploadRequest.md index aa8d8ab8..383c6c45 100644 --- a/bindings/python/src/docs/GoPackageUploadRequest.md +++ b/bindings/python/src/docs/GoPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HelmPackageUpload.md b/bindings/python/src/docs/HelmPackageUpload.md index a00d6bd2..784e5b20 100644 --- a/bindings/python/src/docs/HelmPackageUpload.md +++ b/bindings/python/src/docs/HelmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HelmPackageUploadRequest.md b/bindings/python/src/docs/HelmPackageUploadRequest.md index 05eb678a..40a0e1d0 100644 --- a/bindings/python/src/docs/HelmPackageUploadRequest.md +++ b/bindings/python/src/docs/HelmPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **provenance_file** | **str** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HexPackageUpload.md b/bindings/python/src/docs/HexPackageUpload.md index 9bcb85c2..e4a4c310 100644 --- a/bindings/python/src/docs/HexPackageUpload.md +++ b/bindings/python/src/docs/HexPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HexPackageUploadRequest.md b/bindings/python/src/docs/HexPackageUploadRequest.md index 992d9fc0..5439c3a8 100644 --- a/bindings/python/src/docs/HexPackageUploadRequest.md +++ b/bindings/python/src/docs/HexPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HuggingfacePackageUpload.md b/bindings/python/src/docs/HuggingfacePackageUpload.md index 949781fe..0b51a49d 100644 --- a/bindings/python/src/docs/HuggingfacePackageUpload.md +++ b/bindings/python/src/docs/HuggingfacePackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/HuggingfacePackageUploadRequest.md b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md index 3f82ff33..5d66d307 100644 --- a/bindings/python/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/LuarocksPackageUpload.md b/bindings/python/src/docs/LuarocksPackageUpload.md index 3bd4d51c..0eb4d242 100644 --- a/bindings/python/src/docs/LuarocksPackageUpload.md +++ b/bindings/python/src/docs/LuarocksPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/LuarocksPackageUploadRequest.md b/bindings/python/src/docs/LuarocksPackageUploadRequest.md index 7876a076..f29819cb 100644 --- a/bindings/python/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/python/src/docs/LuarocksPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/MavenPackageUpload.md b/bindings/python/src/docs/MavenPackageUpload.md index fef09f65..2abdb0ed 100644 --- a/bindings/python/src/docs/MavenPackageUpload.md +++ b/bindings/python/src/docs/MavenPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -96,7 +96,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/MavenPackageUploadRequest.md b/bindings/python/src/docs/MavenPackageUploadRequest.md index fbcbbba5..e7e3da78 100644 --- a/bindings/python/src/docs/MavenPackageUploadRequest.md +++ b/bindings/python/src/docs/MavenPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **artifact_id** | **str** | The ID of the artifact. | [optional] **extra_files** | **list[str]** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **group_id** | **str** | Artifact's group ID. | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivy_file** | **str** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadoc_file** | **str** | Adds bundled Java documentation to the Maven package | [optional] **package_file** | **str** | The primary file for the package. | @@ -19,7 +18,6 @@ Name | Type | Description | Notes **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **tests_file** | **str** | Adds bundled Java tests to the Maven package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/McpPackageUpload.md b/bindings/python/src/docs/McpPackageUpload.md index 1ec257b8..7b6c3a77 100644 --- a/bindings/python/src/docs/McpPackageUpload.md +++ b/bindings/python/src/docs/McpPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/McpPackageUploadRequest.md b/bindings/python/src/docs/McpPackageUploadRequest.md index f708877d..a88c529d 100644 --- a/bindings/python/src/docs/McpPackageUploadRequest.md +++ b/bindings/python/src/docs/McpPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NixPackageUpload.md b/bindings/python/src/docs/NixPackageUpload.md index f2d551f5..0ce7e8c1 100644 --- a/bindings/python/src/docs/NixPackageUpload.md +++ b/bindings/python/src/docs/NixPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NixPackageUploadRequest.md b/bindings/python/src/docs/NixPackageUploadRequest.md index ec195ac1..8144047e 100644 --- a/bindings/python/src/docs/NixPackageUploadRequest.md +++ b/bindings/python/src/docs/NixPackageUploadRequest.md @@ -3,13 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **narinfo_file** | **str** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NpmPackageUpload.md b/bindings/python/src/docs/NpmPackageUpload.md index 981c83b5..fb2b3b0a 100644 --- a/bindings/python/src/docs/NpmPackageUpload.md +++ b/bindings/python/src/docs/NpmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NpmPackageUploadRequest.md b/bindings/python/src/docs/NpmPackageUploadRequest.md index ea2fb9e2..a85c2083 100644 --- a/bindings/python/src/docs/NpmPackageUploadRequest.md +++ b/bindings/python/src/docs/NpmPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npm_dist_tag** | **str** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to 'latest'] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NugetPackageUpload.md b/bindings/python/src/docs/NugetPackageUpload.md index 220e4bf4..e87b444e 100644 --- a/bindings/python/src/docs/NugetPackageUpload.md +++ b/bindings/python/src/docs/NugetPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/NugetPackageUploadRequest.md b/bindings/python/src/docs/NugetPackageUploadRequest.md index 26eeb817..c4994474 100644 --- a/bindings/python/src/docs/NugetPackageUploadRequest.md +++ b/bindings/python/src/docs/NugetPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbols_file** | **str** | Uploads a symbols file as a separate package | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/OrganizationApiKeyRule.md b/bindings/python/src/docs/OrganizationApiKeyRule.md new file mode 100644 index 00000000..f75a7f84 --- /dev/null +++ b/bindings/python/src/docs/OrganizationApiKeyRule.md @@ -0,0 +1,18 @@ +# OrganizationApiKeyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **datetime** | | [optional] +**enforce_refresh** | **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **bool** | Whether this rule is currently active and enforced. | [optional] +**last_applied_at** | **datetime** | The last time this rule was evaluated and applied by the expiry task. | [optional] +**max_age_hours** | **int** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**rule_type** | **str** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | +**slug** | **str** | Human-readable identifier for the rule type. Automatically generated based on the rule type. | [optional] +**slug_perm** | **str** | An auto-generated id that uniquely identifies the API key policy. | [optional] +**updated_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/OrganizationApiKeyRuleRequest.md b/bindings/python/src/docs/OrganizationApiKeyRuleRequest.md new file mode 100644 index 00000000..3849af33 --- /dev/null +++ b/bindings/python/src/docs/OrganizationApiKeyRuleRequest.md @@ -0,0 +1,14 @@ +# OrganizationApiKeyRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforce_refresh** | **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **bool** | Whether this rule is currently active and enforced. | [optional] +**max_age_hours** | **int** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refresh_immediately** | **bool** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**rule_type** | **str** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | + +[[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/OrganizationApiKeyRuleRequestPatch.md b/bindings/python/src/docs/OrganizationApiKeyRuleRequestPatch.md new file mode 100644 index 00000000..be514974 --- /dev/null +++ b/bindings/python/src/docs/OrganizationApiKeyRuleRequestPatch.md @@ -0,0 +1,14 @@ +# OrganizationApiKeyRuleRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforce_refresh** | **bool** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **bool** | Whether this rule is currently active and enforced. | [optional] +**max_age_hours** | **int** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refresh_immediately** | **bool** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**rule_type** | **str** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index fcf6054b..22fdedf8 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgs_api_key_rules_create**](OrgsApi.md#orgs_api_key_rules_create) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +[**orgs_api_key_rules_delete**](OrgsApi.md#orgs_api_key_rules_delete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +[**orgs_api_key_rules_list**](OrgsApi.md#orgs_api_key_rules_list) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +[**orgs_api_key_rules_partial_update**](OrgsApi.md#orgs_api_key_rules_partial_update) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +[**orgs_api_key_rules_read**](OrgsApi.md#orgs_api_key_rules_read) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +[**orgs_api_key_rules_update**](OrgsApi.md#orgs_api_key_rules_update) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. [**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. @@ -82,6 +88,367 @@ 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_api_key_rules_create** +> OrganizationApiKeyRule orgs_api_key_rules_create(org, data=data) + +Create an API key rule. + +Create an API key rule. + +### 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 | +data = cloudsmith_api.OrganizationApiKeyRuleRequest() # OrganizationApiKeyRuleRequest | (optional) + +try: + # Create an API key rule. + api_response = api_instance.orgs_api_key_rules_create(org, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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_api_key_rules_delete** +> orgs_api_key_rules_delete(org, slug_perm) + +Delete an API key rule. + +Delete an API key rule. + +### 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 | +slug_perm = 'slug_perm_example' # str | + +try: + # Delete an API key rule. + api_instance.orgs_api_key_rules_delete(org, slug_perm) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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) + +# **orgs_api_key_rules_list** +> list[OrganizationApiKeyRule] orgs_api_key_rules_list(org) + +List all API key rules for the organization. + +List all API key rules for the organization. + +### 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 | + +try: + # List all API key rules for the organization. + api_response = api_instance.orgs_api_key_rules_list(org) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + +### Return type + +[**list[OrganizationApiKeyRule]**](OrganizationApiKeyRule.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_api_key_rules_partial_update** +> OrganizationApiKeyRule orgs_api_key_rules_partial_update(org, slug_perm, data=data) + +Update an API key rule. + +Update an API key rule. + +### 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 | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.OrganizationApiKeyRuleRequestPatch() # OrganizationApiKeyRuleRequestPatch | (optional) + +try: + # Update an API key rule. + api_response = api_instance.orgs_api_key_rules_partial_update(org, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_partial_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **slug_perm** | **str**| | + **data** | [**OrganizationApiKeyRuleRequestPatch**](OrganizationApiKeyRuleRequestPatch.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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_api_key_rules_read** +> OrganizationApiKeyRule orgs_api_key_rules_read(org, slug_perm) + +Retrieve an API key rule. + +Retrieve an API key rule. + +### 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 | +slug_perm = 'slug_perm_example' # str | + +try: + # Retrieve an API key rule. + api_response = api_instance.orgs_api_key_rules_read(org, slug_perm) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **slug_perm** | **str**| | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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_api_key_rules_update** +> OrganizationApiKeyRule orgs_api_key_rules_update(org, slug_perm, data=data) + +Full update of an API key rule. + +Full update of an API key rule. + +### 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 | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.OrganizationApiKeyRuleRequest() # OrganizationApiKeyRuleRequest | (optional) + +try: + # Full update of an API key rule. + api_response = api_instance.orgs_api_key_rules_update(org, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling OrgsApi->orgs_api_key_rules_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **str**| | + **slug_perm** | **str**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.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_custom_domains_list** > list[OrganizationCustomDomains] orgs_custom_domains_list(org, page=page, page_size=page_size) diff --git a/bindings/python/src/docs/P2PackageUpload.md b/bindings/python/src/docs/P2PackageUpload.md index 921ae688..8e41b70f 100644 --- a/bindings/python/src/docs/P2PackageUpload.md +++ b/bindings/python/src/docs/P2PackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/P2PackageUploadRequest.md b/bindings/python/src/docs/P2PackageUploadRequest.md index 79f7dd96..41b60cc3 100644 --- a/bindings/python/src/docs/P2PackageUploadRequest.md +++ b/bindings/python/src/docs/P2PackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/Package.md b/bindings/python/src/docs/Package.md index 25f93d41..a629b4ec 100644 --- a/bindings/python/src/docs/Package.md +++ b/bindings/python/src/docs/Package.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] diff --git a/bindings/python/src/docs/PackageCopy.md b/bindings/python/src/docs/PackageCopy.md index 9f8564d8..1367b289 100644 --- a/bindings/python/src/docs/PackageCopy.md +++ b/bindings/python/src/docs/PackageCopy.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageCopyRequest.md b/bindings/python/src/docs/PackageCopyRequest.md index 59cc9c55..43238c76 100644 --- a/bindings/python/src/docs/PackageCopyRequest.md +++ b/bindings/python/src/docs/PackageCopyRequest.md @@ -4,9 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **str** | The name of the destination repository without the namespace. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **bool** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageDetail.md b/bindings/python/src/docs/PackageDetail.md index 29ee9d3e..802ba61c 100644 --- a/bindings/python/src/docs/PackageDetail.md +++ b/bindings/python/src/docs/PackageDetail.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] diff --git a/bindings/python/src/docs/PackageLicense.md b/bindings/python/src/docs/PackageLicense.md index 64c79c8c..b3b76af8 100644 --- a/bindings/python/src/docs/PackageLicense.md +++ b/bindings/python/src/docs/PackageLicense.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **str** | | [optional] **license_override** | **str** | | [optional] [default to 'None'] **license_url** | **str** | | [optional] **spdx_license** | **str** | | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageLicenseRequestPatch.md b/bindings/python/src/docs/PackageLicenseRequestPatch.md index c6a3ddc2..6b694ca7 100644 --- a/bindings/python/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/python/src/docs/PackageLicenseRequestPatch.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | | [optional] [default to 'Update'] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **str** | | [optional] **license_override** | **str** | | [optional] [default to 'None'] **license_url** | **str** | | [optional] **spdx_license** | **str** | | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageMove.md b/bindings/python/src/docs/PackageMove.md index 093964a2..ee4ea8fa 100644 --- a/bindings/python/src/docs/PackageMove.md +++ b/bindings/python/src/docs/PackageMove.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageMoveRequest.md b/bindings/python/src/docs/PackageMoveRequest.md index 23f28739..6965de8d 100644 --- a/bindings/python/src/docs/PackageMoveRequest.md +++ b/bindings/python/src/docs/PackageMoveRequest.md @@ -4,8 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **str** | The name of the destination repository without the namespace. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageQuarantine.md b/bindings/python/src/docs/PackageQuarantine.md index 01ef7718..d4ac6766 100644 --- a/bindings/python/src/docs/PackageQuarantine.md +++ b/bindings/python/src/docs/PackageQuarantine.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageQuarantineRequest.md b/bindings/python/src/docs/PackageQuarantineRequest.md index 5665d280..e15a3e1a 100644 --- a/bindings/python/src/docs/PackageQuarantineRequest.md +++ b/bindings/python/src/docs/PackageQuarantineRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **bool** | If true, the package is released from quarantine. | [optional] **restore** | **bool** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageResync.md b/bindings/python/src/docs/PackageResync.md index bd2f3e4a..d7ce6ebd 100644 --- a/bindings/python/src/docs/PackageResync.md +++ b/bindings/python/src/docs/PackageResync.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageTag.md b/bindings/python/src/docs/PackageTag.md index 64fcf526..b61311cb 100644 --- a/bindings/python/src/docs/PackageTag.md +++ b/bindings/python/src/docs/PackageTag.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **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_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageTagRequest.md b/bindings/python/src/docs/PackageTagRequest.md index 6d4a75ba..40720fa8 100644 --- a/bindings/python/src/docs/PackageTagRequest.md +++ b/bindings/python/src/docs/PackageTagRequest.md @@ -5,9 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | | [optional] [default to 'Add'] **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_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **list[str]** | A list of tags to apply the action to. Not required for clears. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackageVulnerability.md b/bindings/python/src/docs/PackageVulnerability.md index c47b5f0f..be865d5c 100644 --- a/bindings/python/src/docs/PackageVulnerability.md +++ b/bindings/python/src/docs/PackageVulnerability.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **str** | | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index 56f20acf..1f9aecc7 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -374,7 +374,7 @@ repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) include_connected_repositories = false # bool | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (optional) (default to false) -query = '' # str | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional) (default to ) +query = '' # str | A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (optional) (default to ) sort = '-date' # str | A field for sorting objects in ascending or descending order. (optional) (default to -date) try: @@ -394,7 +394,7 @@ Name | Type | Description | Notes **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] **include_connected_repositories** | **bool**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] - **query** | **str**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] + **query** | **str**| A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. | [optional] [default to ] **sort** | **str**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] ### Return type diff --git a/bindings/python/src/docs/PythonPackageUpload.md b/bindings/python/src/docs/PythonPackageUpload.md index 9f433a47..d70b75ea 100644 --- a/bindings/python/src/docs/PythonPackageUpload.md +++ b/bindings/python/src/docs/PythonPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/PythonPackageUploadRequest.md b/bindings/python/src/docs/PythonPackageUploadRequest.md index 7012c360..d49294b0 100644 --- a/bindings/python/src/docs/PythonPackageUploadRequest.md +++ b/bindings/python/src/docs/PythonPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RawPackageUpload.md b/bindings/python/src/docs/RawPackageUpload.md index 82ef8a90..0f38fc83 100644 --- a/bindings/python/src/docs/RawPackageUpload.md +++ b/bindings/python/src/docs/RawPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RawPackageUploadRequest.md b/bindings/python/src/docs/RawPackageUploadRequest.md index fc4afb4b..9af8ab1c 100644 --- a/bindings/python/src/docs/RawPackageUploadRequest.md +++ b/bindings/python/src/docs/RawPackageUploadRequest.md @@ -5,14 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **str** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **str** | A textual description of this package. | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **str** | A one-liner synopsis of this package. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RpmPackageUpload.md b/bindings/python/src/docs/RpmPackageUpload.md index e813bcd0..c3c4a8d5 100644 --- a/bindings/python/src/docs/RpmPackageUpload.md +++ b/bindings/python/src/docs/RpmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RpmPackageUploadRequest.md b/bindings/python/src/docs/RpmPackageUploadRequest.md index b5f7dbd3..925ab077 100644 --- a/bindings/python/src/docs/RpmPackageUploadRequest.md +++ b/bindings/python/src/docs/RpmPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **str** | The distribution to store the package for. | -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RubyPackageUpload.md b/bindings/python/src/docs/RubyPackageUpload.md index 335e7109..0a8a69ac 100644 --- a/bindings/python/src/docs/RubyPackageUpload.md +++ b/bindings/python/src/docs/RubyPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/RubyPackageUploadRequest.md b/bindings/python/src/docs/RubyPackageUploadRequest.md index fc849980..b39bcb08 100644 --- a/bindings/python/src/docs/RubyPackageUploadRequest.md +++ b/bindings/python/src/docs/RubyPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/SwiftPackageUpload.md b/bindings/python/src/docs/SwiftPackageUpload.md index a533a069..d3729ae4 100644 --- a/bindings/python/src/docs/SwiftPackageUpload.md +++ b/bindings/python/src/docs/SwiftPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -96,7 +96,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/SwiftPackageUploadRequest.md b/bindings/python/src/docs/SwiftPackageUploadRequest.md index 43d3bf42..64bd4f51 100644 --- a/bindings/python/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/python/src/docs/SwiftPackageUploadRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **author_name** | **str** | The name of the author of the package. | [optional] **author_org** | **str** | The organization of the author. | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_url** | **str** | The license URL of this package. | [optional] **name** | **str** | The name of this package. | **package_file** | **str** | The primary file for the package. | @@ -15,7 +14,6 @@ Name | Type | Description | Notes **scope** | **str** | A scope provides a namespace for related packages within the package registry. | **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/TerraformPackageUpload.md b/bindings/python/src/docs/TerraformPackageUpload.md index d8b9f85c..004df9a3 100644 --- a/bindings/python/src/docs/TerraformPackageUpload.md +++ b/bindings/python/src/docs/TerraformPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/TerraformPackageUploadRequest.md b/bindings/python/src/docs/TerraformPackageUploadRequest.md index 4b20f65b..fd22eb76 100644 --- a/bindings/python/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/python/src/docs/TerraformPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VagrantPackageUpload.md b/bindings/python/src/docs/VagrantPackageUpload.md index 3317aa85..dec38498 100644 --- a/bindings/python/src/docs/VagrantPackageUpload.md +++ b/bindings/python/src/docs/VagrantPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VagrantPackageUploadRequest.md b/bindings/python/src/docs/VagrantPackageUploadRequest.md index d227bc37..b987c1fb 100644 --- a/bindings/python/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/python/src/docs/VagrantPackageUploadRequest.md @@ -3,14 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **str** | The name of this package. | **package_file** | **str** | The primary file for the package. | **provider** | **str** | The virtual machine provider for the box. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] **version** | **str** | The raw version for this package. | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VsxPackageUpload.md b/bindings/python/src/docs/VsxPackageUpload.md index e41fb873..5c7c1a4d 100644 --- a/bindings/python/src/docs/VsxPackageUpload.md +++ b/bindings/python/src/docs/VsxPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **str** | | [optional] **description** | **str** | A textual description of this package. | [optional] **display_name** | **str** | | [optional] +**display_source** | **str** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **int** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **bool** | | [optional] **is_downloadable** | **bool** | | [optional] **is_hidden** | **bool** | | [optional] -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **bool** | | [optional] **is_quarantinable** | **bool** | | [optional] **is_quarantined** | **bool** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/docs/VsxPackageUploadRequest.md b/bindings/python/src/docs/VsxPackageUploadRequest.md index 35a052a7..ee68e701 100644 --- a/bindings/python/src/docs/VsxPackageUploadRequest.md +++ b/bindings/python/src/docs/VsxPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **str** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index 8a6f61aa..5576acf2 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import find_packages, setup # noqa: H301 NAME = "cloudsmith_api" -VERSION = "2.0.32" +VERSION = "2.0.33" # To install the library, run the following # # python setup.py install diff --git a/bindings/python/src/test/test_connected_repository_target_summary.py b/bindings/python/src/test/test_connected_repository_target_summary.py new file mode 100644 index 00000000..37faa069 --- /dev/null +++ b/bindings/python/src/test/test_connected_repository_target_summary.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_target_summary import ConnectedRepositoryTargetSummary # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestConnectedRepositoryTargetSummary(unittest.TestCase): + """ConnectedRepositoryTargetSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectedRepositoryTargetSummary(self): + """Test ConnectedRepositoryTargetSummary""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.connected_repository_target_summary.ConnectedRepositoryTargetSummary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_connected_repository_upstream.py b/bindings/python/src/test/test_connected_repository_upstream.py new file mode 100644 index 00000000..2ec5663a --- /dev/null +++ b/bindings/python/src/test/test_connected_repository_upstream.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.connected_repository_upstream import ConnectedRepositoryUpstream # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestConnectedRepositoryUpstream(unittest.TestCase): + """ConnectedRepositoryUpstream unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectedRepositoryUpstream(self): + """Test ConnectedRepositoryUpstream""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.connected_repository_upstream.ConnectedRepositoryUpstream() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_api_key_rule.py b/bindings/python/src/test/test_organization_api_key_rule.py new file mode 100644 index 00000000..130d13a0 --- /dev/null +++ b/bindings/python/src/test/test_organization_api_key_rule.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_api_key_rule import OrganizationApiKeyRule # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationApiKeyRule(unittest.TestCase): + """OrganizationApiKeyRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationApiKeyRule(self): + """Test OrganizationApiKeyRule""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_api_key_rule.OrganizationApiKeyRule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_api_key_rule_request.py b/bindings/python/src/test/test_organization_api_key_rule_request.py new file mode 100644 index 00000000..5091b8a4 --- /dev/null +++ b/bindings/python/src/test/test_organization_api_key_rule_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.organization_api_key_rule_request import OrganizationApiKeyRuleRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationApiKeyRuleRequest(unittest.TestCase): + """OrganizationApiKeyRuleRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationApiKeyRuleRequest(self): + """Test OrganizationApiKeyRuleRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_api_key_rule_request.OrganizationApiKeyRuleRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_organization_api_key_rule_request_patch.py b/bindings/python/src/test/test_organization_api_key_rule_request_patch.py new file mode 100644 index 00000000..5df9873f --- /dev/null +++ b/bindings/python/src/test/test_organization_api_key_rule_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.organization_api_key_rule_request_patch import OrganizationApiKeyRuleRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestOrganizationApiKeyRuleRequestPatch(unittest.TestCase): + """OrganizationApiKeyRuleRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrganizationApiKeyRuleRequestPatch(self): + """Test OrganizationApiKeyRuleRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.organization_api_key_rule_request_patch.OrganizationApiKeyRuleRequestPatch() # 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 d9d8c19a..231f3905 100644 --- a/bindings/python/src/test/test_orgs_api.py +++ b/bindings/python/src/test/test_orgs_api.py @@ -29,6 +29,48 @@ def setUp(self): def tearDown(self): pass + def test_orgs_api_key_rules_create(self): + """Test case for orgs_api_key_rules_create + + Create an API key rule. # noqa: E501 + """ + pass + + def test_orgs_api_key_rules_delete(self): + """Test case for orgs_api_key_rules_delete + + Delete an API key rule. # noqa: E501 + """ + pass + + def test_orgs_api_key_rules_list(self): + """Test case for orgs_api_key_rules_list + + List all API key rules for the organization. # noqa: E501 + """ + pass + + def test_orgs_api_key_rules_partial_update(self): + """Test case for orgs_api_key_rules_partial_update + + Update an API key rule. # noqa: E501 + """ + pass + + def test_orgs_api_key_rules_read(self): + """Test case for orgs_api_key_rules_read + + Retrieve an API key rule. # noqa: E501 + """ + pass + + def test_orgs_api_key_rules_update(self): + """Test case for orgs_api_key_rules_update + + Full update of an API key rule. # noqa: E501 + """ + pass + def test_orgs_custom_domains_list(self): """Test case for orgs_custom_domains_list diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 2861a6e5..5904a24e 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.32 +- Package version: 2.0.33 - 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.32.gem +gem install ./cloudsmith-api-2.0.33.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.32.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.33.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.32' + gem 'cloudsmith-api', '~> 2.0.33' ### Install from Git @@ -124,6 +124,12 @@ Class | Method | HTTP request | Description *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::OpenidApi* | [**openid_create**](docs/OpenidApi.md#openid_create) | **POST** /openid/{owner}/ | Get a JWT token for a configured service account belonging to the requesting org. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_create**](docs/OrgsApi.md#orgs_api_key_rules_create) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_delete**](docs/OrgsApi.md#orgs_api_key_rules_delete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_list**](docs/OrgsApi.md#orgs_api_key_rules_list) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_partial_update**](docs/OrgsApi.md#orgs_api_key_rules_partial_update) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_read**](docs/OrgsApi.md#orgs_api_key_rules_read) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +*CloudsmithApi::OrgsApi* | [**orgs_api_key_rules_update**](docs/OrgsApi.md#orgs_api_key_rules_update) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. *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. @@ -504,6 +510,8 @@ Class | Method | HTTP request | Description - [CloudsmithApi::ConnectedRepository](docs/ConnectedRepository.md) - [CloudsmithApi::ConnectedRepositoryRequest](docs/ConnectedRepositoryRequest.md) - [CloudsmithApi::ConnectedRepositoryRequestPatch](docs/ConnectedRepositoryRequestPatch.md) + - [CloudsmithApi::ConnectedRepositoryTargetSummary](docs/ConnectedRepositoryTargetSummary.md) + - [CloudsmithApi::ConnectedRepositoryUpstream](docs/ConnectedRepositoryUpstream.md) - [CloudsmithApi::CranPackageUpload](docs/CranPackageUpload.md) - [CloudsmithApi::CranPackageUploadRequest](docs/CranPackageUploadRequest.md) - [CloudsmithApi::CranUpstream](docs/CranUpstream.md) @@ -602,6 +610,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::Oidc1](docs/Oidc1.md) - [CloudsmithApi::OidcRequest](docs/OidcRequest.md) - [CloudsmithApi::Organization](docs/Organization.md) + - [CloudsmithApi::OrganizationApiKeyRule](docs/OrganizationApiKeyRule.md) + - [CloudsmithApi::OrganizationApiKeyRuleRequest](docs/OrganizationApiKeyRuleRequest.md) + - [CloudsmithApi::OrganizationApiKeyRuleRequestPatch](docs/OrganizationApiKeyRuleRequestPatch.md) - [CloudsmithApi::OrganizationCustomDomainNestedRepo](docs/OrganizationCustomDomainNestedRepo.md) - [CloudsmithApi::OrganizationCustomDomains](docs/OrganizationCustomDomains.md) - [CloudsmithApi::OrganizationGroupSync](docs/OrganizationGroupSync.md) diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index e87af028..d16d7440 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.32", + "gemVersion": "2.0.33", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/AlpinePackageUpload.md b/bindings/ruby/src/docs/AlpinePackageUpload.md index 48b6f9df..1d5631f7 100644 --- a/bindings/ruby/src/docs/AlpinePackageUpload.md +++ b/bindings/ruby/src/docs/AlpinePackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/AlpinePackageUploadRequest.md b/bindings/ruby/src/docs/AlpinePackageUploadRequest.md index 8bc5f429..02ac5af7 100644 --- a/bindings/ruby/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/ruby/src/docs/AlpinePackageUploadRequest.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CargoPackageUpload.md b/bindings/ruby/src/docs/CargoPackageUpload.md index b5d43e01..3ba30af2 100644 --- a/bindings/ruby/src/docs/CargoPackageUpload.md +++ b/bindings/ruby/src/docs/CargoPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CargoPackageUploadRequest.md b/bindings/ruby/src/docs/CargoPackageUploadRequest.md index ca0ab2a0..49ffb8b8 100644 --- a/bindings/ruby/src/docs/CargoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CargoPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CocoapodsPackageUpload.md b/bindings/ruby/src/docs/CocoapodsPackageUpload.md index ac34ec28..44148b3b 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUpload.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md b/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md index 98299cf0..0543d164 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ComposerPackageUpload.md b/bindings/ruby/src/docs/ComposerPackageUpload.md index b81fe1fb..71441d1f 100644 --- a/bindings/ruby/src/docs/ComposerPackageUpload.md +++ b/bindings/ruby/src/docs/ComposerPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/ComposerPackageUploadRequest.md b/bindings/ruby/src/docs/ComposerPackageUploadRequest.md index cb870c55..148267ed 100644 --- a/bindings/ruby/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ComposerPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ConanPackageUpload.md b/bindings/ruby/src/docs/ConanPackageUpload.md index ae7ef2e6..5377f4fb 100644 --- a/bindings/ruby/src/docs/ConanPackageUpload.md +++ b/bindings/ruby/src/docs/ConanPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/ConanPackageUploadRequest.md b/bindings/ruby/src/docs/ConanPackageUploadRequest.md index 6b819f13..3be765bb 100644 --- a/bindings/ruby/src/docs/ConanPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ConanPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **conan_channel** | **String** | Conan channel. | [optional] **conan_prefix** | **String** | Conan prefix (User). | [optional] **info_file** | **String** | The info file is an python file containing the package metadata. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **manifest_file** | **String** | The info file is an python file containing the package metadata. | **metadata_file** | **String** | The conan file is an python file containing the package metadata. | **name** | **String** | The name of this package. | [optional] @@ -14,6 +13,5 @@ Name | Type | Description | Notes **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUpload.md b/bindings/ruby/src/docs/CondaPackageUpload.md index 52da76f1..bd898981 100644 --- a/bindings/ruby/src/docs/CondaPackageUpload.md +++ b/bindings/ruby/src/docs/CondaPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUploadRequest.md b/bindings/ruby/src/docs/CondaPackageUploadRequest.md index f1ad328c..bde344a5 100644 --- a/bindings/ruby/src/docs/CondaPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CondaPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/ConnectedRepository.md b/bindings/ruby/src/docs/ConnectedRepository.md index ec256078..5911347d 100644 --- a/bindings/ruby/src/docs/ConnectedRepository.md +++ b/bindings/ruby/src/docs/ConnectedRepository.md @@ -3,6 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**can_view_target_repository_settings** | **BOOLEAN** | Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. | [optional] +**configured_upstreams** | [**Array<ConnectedRepositoryUpstream>**](ConnectedRepositoryUpstream.md) | The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. | [optional] **created_at** | **DateTime** | The date and time when the connection was created. | [optional] **disable_reason** | **String** | | [optional] [default to 'N/A'] **disable_reason_text** | **String** | Human-readable explanation of why this connection is disabled. | [optional] @@ -10,5 +12,6 @@ Name | Type | Description | Notes **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. | +**target_repository_summary** | [**ConnectedRepositoryTargetSummary**](ConnectedRepositoryTargetSummary.md) | | [optional] diff --git a/bindings/ruby/src/docs/ConnectedRepositoryTargetSummary.md b/bindings/ruby/src/docs/ConnectedRepositoryTargetSummary.md new file mode 100644 index 00000000..8ce779d4 --- /dev/null +++ b/bindings/ruby/src/docs/ConnectedRepositoryTargetSummary.md @@ -0,0 +1,11 @@ +# CloudsmithApi::ConnectedRepositoryTargetSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_private** | **BOOLEAN** | | [optional] +**is_public** | **BOOLEAN** | | [optional] +**package_count** | **Integer** | | [optional] +**size** | **Integer** | | [optional] + + diff --git a/bindings/ruby/src/docs/ConnectedRepositoryUpstream.md b/bindings/ruby/src/docs/ConnectedRepositoryUpstream.md new file mode 100644 index 00000000..3616abb7 --- /dev/null +++ b/bindings/ruby/src/docs/ConnectedRepositoryUpstream.md @@ -0,0 +1,9 @@ +# CloudsmithApi::ConnectedRepositoryUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | The format/backend slug of the upstream (e.g. 'npm'). | [optional] +**upstream_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/CranPackageUpload.md b/bindings/ruby/src/docs/CranPackageUpload.md index 6980a638..9c2243c5 100644 --- a/bindings/ruby/src/docs/CranPackageUpload.md +++ b/bindings/ruby/src/docs/CranPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/CranPackageUploadRequest.md b/bindings/ruby/src/docs/CranPackageUploadRequest.md index 9e2e31e8..88171cb6 100644 --- a/bindings/ruby/src/docs/CranPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CranPackageUploadRequest.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **String** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **r_version** | **String** | Binary package uploads should specify the version of R they were built for. | [optional] **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DartPackageUpload.md b/bindings/ruby/src/docs/DartPackageUpload.md index 8422c847..22166f1f 100644 --- a/bindings/ruby/src/docs/DartPackageUpload.md +++ b/bindings/ruby/src/docs/DartPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DartPackageUploadRequest.md b/bindings/ruby/src/docs/DartPackageUploadRequest.md index 4e16d319..09e0075d 100644 --- a/bindings/ruby/src/docs/DartPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DartPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DebPackageUpload.md b/bindings/ruby/src/docs/DebPackageUpload.md index 8ede3ed1..2e17a9ff 100644 --- a/bindings/ruby/src/docs/DebPackageUpload.md +++ b/bindings/ruby/src/docs/DebPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DebPackageUploadRequest.md b/bindings/ruby/src/docs/DebPackageUploadRequest.md index c14b7581..1b1b13b0 100644 --- a/bindings/ruby/src/docs/DebPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DebPackageUploadRequest.md @@ -6,11 +6,9 @@ Name | Type | Description | Notes **changes_file** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] **component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **String** | The distribution to store the package for. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **sources_file** | **String** | The sources archive containing the source code for the binary | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/DockerPackageUpload.md b/bindings/ruby/src/docs/DockerPackageUpload.md index e2f7cc7a..a658e588 100644 --- a/bindings/ruby/src/docs/DockerPackageUpload.md +++ b/bindings/ruby/src/docs/DockerPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/DockerPackageUploadRequest.md b/bindings/ruby/src/docs/DockerPackageUploadRequest.md index 86b184ce..600ba9ed 100644 --- a/bindings/ruby/src/docs/DockerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DockerPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/GenericPackageUpload.md b/bindings/ruby/src/docs/GenericPackageUpload.md index 16c6f2ce..699fd513 100644 --- a/bindings/ruby/src/docs/GenericPackageUpload.md +++ b/bindings/ruby/src/docs/GenericPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/GenericPackageUploadRequest.md b/bindings/ruby/src/docs/GenericPackageUploadRequest.md index fabf220d..021d86df 100644 --- a/bindings/ruby/src/docs/GenericPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GenericPackageUploadRequest.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filepath** | **String** | The full filepath of the package including filename. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/GoPackageUpload.md b/bindings/ruby/src/docs/GoPackageUpload.md index c3fc66d8..aff1e86a 100644 --- a/bindings/ruby/src/docs/GoPackageUpload.md +++ b/bindings/ruby/src/docs/GoPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/GoPackageUploadRequest.md b/bindings/ruby/src/docs/GoPackageUploadRequest.md index 6007e35f..4cd65974 100644 --- a/bindings/ruby/src/docs/GoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GoPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HelmPackageUpload.md b/bindings/ruby/src/docs/HelmPackageUpload.md index 3124f6d2..13283a7b 100644 --- a/bindings/ruby/src/docs/HelmPackageUpload.md +++ b/bindings/ruby/src/docs/HelmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HelmPackageUploadRequest.md b/bindings/ruby/src/docs/HelmPackageUploadRequest.md index 5e29c272..a37db62a 100644 --- a/bindings/ruby/src/docs/HelmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HelmPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **provenance_file** | **String** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HexPackageUpload.md b/bindings/ruby/src/docs/HexPackageUpload.md index e0b1f02d..006e2956 100644 --- a/bindings/ruby/src/docs/HexPackageUpload.md +++ b/bindings/ruby/src/docs/HexPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HexPackageUploadRequest.md b/bindings/ruby/src/docs/HexPackageUploadRequest.md index 407f2612..2398d935 100644 --- a/bindings/ruby/src/docs/HexPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HexPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/HuggingfacePackageUpload.md b/bindings/ruby/src/docs/HuggingfacePackageUpload.md index f9c8c60f..6e3bc9e4 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUpload.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md index db479d97..746e0fc7 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/LuarocksPackageUpload.md b/bindings/ruby/src/docs/LuarocksPackageUpload.md index e053a8ef..d5dcef3d 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUpload.md +++ b/bindings/ruby/src/docs/LuarocksPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md b/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md index 5b96921f..3caec220 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/MavenPackageUpload.md b/bindings/ruby/src/docs/MavenPackageUpload.md index 505f2f6d..c3ca3300 100644 --- a/bindings/ruby/src/docs/MavenPackageUpload.md +++ b/bindings/ruby/src/docs/MavenPackageUpload.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -96,7 +96,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/MavenPackageUploadRequest.md b/bindings/ruby/src/docs/MavenPackageUploadRequest.md index fddc8a56..1d07db6e 100644 --- a/bindings/ruby/src/docs/MavenPackageUploadRequest.md +++ b/bindings/ruby/src/docs/MavenPackageUploadRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes **artifact_id** | **String** | The ID of the artifact. | [optional] **extra_files** | **Array<String>** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **group_id** | **String** | Artifact's group ID. | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **ivy_file** | **String** | The ivy file is an XML file describing the dependencies of the project. | [optional] **javadoc_file** | **String** | Adds bundled Java documentation to the Maven package | [optional] **package_file** | **String** | The primary file for the package. | @@ -19,6 +18,5 @@ Name | Type | Description | Notes **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **tests_file** | **String** | Adds bundled Java tests to the Maven package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/McpPackageUpload.md b/bindings/ruby/src/docs/McpPackageUpload.md index 0bd12898..f1f0cfa5 100644 --- a/bindings/ruby/src/docs/McpPackageUpload.md +++ b/bindings/ruby/src/docs/McpPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/McpPackageUploadRequest.md b/bindings/ruby/src/docs/McpPackageUploadRequest.md index ba573f82..c8b43974 100644 --- a/bindings/ruby/src/docs/McpPackageUploadRequest.md +++ b/bindings/ruby/src/docs/McpPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/NixPackageUpload.md b/bindings/ruby/src/docs/NixPackageUpload.md index 0db35e73..89cebe86 100644 --- a/bindings/ruby/src/docs/NixPackageUpload.md +++ b/bindings/ruby/src/docs/NixPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/NixPackageUploadRequest.md b/bindings/ruby/src/docs/NixPackageUploadRequest.md index ed75516e..61eb9761 100644 --- a/bindings/ruby/src/docs/NixPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NixPackageUploadRequest.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **narinfo_file** | **String** | The narinfo sidecar metadata file (<storeHash>.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/NpmPackageUpload.md b/bindings/ruby/src/docs/NpmPackageUpload.md index a32ffc8b..2b945196 100644 --- a/bindings/ruby/src/docs/NpmPackageUpload.md +++ b/bindings/ruby/src/docs/NpmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/NpmPackageUploadRequest.md b/bindings/ruby/src/docs/NpmPackageUploadRequest.md index 1662ac9d..de4d85aa 100644 --- a/bindings/ruby/src/docs/NpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NpmPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **npm_dist_tag** | **String** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to 'latest'] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/NugetPackageUpload.md b/bindings/ruby/src/docs/NugetPackageUpload.md index 5680cad6..d4769a09 100644 --- a/bindings/ruby/src/docs/NugetPackageUpload.md +++ b/bindings/ruby/src/docs/NugetPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/NugetPackageUploadRequest.md b/bindings/ruby/src/docs/NugetPackageUploadRequest.md index e2c041c8..222a52ea 100644 --- a/bindings/ruby/src/docs/NugetPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NugetPackageUploadRequest.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **symbols_file** | **String** | Uploads a symbols file as a separate package | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/OrganizationApiKeyRule.md b/bindings/ruby/src/docs/OrganizationApiKeyRule.md new file mode 100644 index 00000000..b0809280 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationApiKeyRule.md @@ -0,0 +1,16 @@ +# CloudsmithApi::OrganizationApiKeyRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **DateTime** | | [optional] +**enforce_refresh** | **BOOLEAN** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **BOOLEAN** | Whether this rule is currently active and enforced. | [optional] +**last_applied_at** | **DateTime** | The last time this rule was evaluated and applied by the expiry task. | [optional] +**max_age_hours** | **Integer** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**rule_type** | **String** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | +**slug** | **String** | Human-readable identifier for the rule type. Automatically generated based on the rule type. | [optional] +**slug_perm** | **String** | An auto-generated id that uniquely identifies the API key policy. | [optional] +**updated_at** | **DateTime** | | [optional] + + diff --git a/bindings/ruby/src/docs/OrganizationApiKeyRuleRequest.md b/bindings/ruby/src/docs/OrganizationApiKeyRuleRequest.md new file mode 100644 index 00000000..d2751376 --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationApiKeyRuleRequest.md @@ -0,0 +1,12 @@ +# CloudsmithApi::OrganizationApiKeyRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforce_refresh** | **BOOLEAN** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **BOOLEAN** | Whether this rule is currently active and enforced. | [optional] +**max_age_hours** | **Integer** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refresh_immediately** | **BOOLEAN** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**rule_type** | **String** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | + + diff --git a/bindings/ruby/src/docs/OrganizationApiKeyRuleRequestPatch.md b/bindings/ruby/src/docs/OrganizationApiKeyRuleRequestPatch.md new file mode 100644 index 00000000..d30613ed --- /dev/null +++ b/bindings/ruby/src/docs/OrganizationApiKeyRuleRequestPatch.md @@ -0,0 +1,12 @@ +# CloudsmithApi::OrganizationApiKeyRuleRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enforce_refresh** | **BOOLEAN** | When enabled, API keys that violate the organization's rule will be replaced automatically. | [optional] +**is_enabled** | **BOOLEAN** | Whether this rule is currently active and enforced. | [optional] +**max_age_hours** | **Integer** | The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. | [optional] +**refresh_immediately** | **BOOLEAN** | If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. | [optional] +**rule_type** | **String** | Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. | [optional] + + diff --git a/bindings/ruby/src/docs/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index ea9023c9..f6dd18ea 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**orgs_api_key_rules_create**](OrgsApi.md#orgs_api_key_rules_create) | **POST** /orgs/{org}/api-key-rules/ | Create an API key rule. +[**orgs_api_key_rules_delete**](OrgsApi.md#orgs_api_key_rules_delete) | **DELETE** /orgs/{org}/api-key-rules/{slug_perm}/ | Delete an API key rule. +[**orgs_api_key_rules_list**](OrgsApi.md#orgs_api_key_rules_list) | **GET** /orgs/{org}/api-key-rules/ | List all API key rules for the organization. +[**orgs_api_key_rules_partial_update**](OrgsApi.md#orgs_api_key_rules_partial_update) | **PATCH** /orgs/{org}/api-key-rules/{slug_perm}/ | Update an API key rule. +[**orgs_api_key_rules_read**](OrgsApi.md#orgs_api_key_rules_read) | **GET** /orgs/{org}/api-key-rules/{slug_perm}/ | Retrieve an API key rule. +[**orgs_api_key_rules_update**](OrgsApi.md#orgs_api_key_rules_update) | **PUT** /orgs/{org}/api-key-rules/{slug_perm}/ | Full update of an API key rule. [**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. @@ -82,6 +88,377 @@ 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_api_key_rules_create** +> OrganizationApiKeyRule orgs_api_key_rules_create(org, opts) + +Create an API key rule. + +Create an API key rule. + +### 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 = { + data: CloudsmithApi::OrganizationApiKeyRuleRequest.new # OrganizationApiKeyRuleRequest | +} + +begin + #Create an API key rule. + result = api_instance.orgs_api_key_rules_create(org, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **orgs_api_key_rules_delete** +> orgs_api_key_rules_delete(org, slug_perm) + +Delete an API key rule. + +Delete an API key rule. + +### 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 | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Delete an API key rule. + api_instance.orgs_api_key_rules_delete(org, slug_perm) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_delete: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **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 + + + +# **orgs_api_key_rules_list** +> Array<OrganizationApiKeyRule> orgs_api_key_rules_list(org) + +List all API key rules for the organization. + +List all API key rules for the organization. + +### 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 | + + +begin + #List all API key rules for the organization. + result = api_instance.orgs_api_key_rules_list(org) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + +### Return type + +[**Array<OrganizationApiKeyRule>**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **orgs_api_key_rules_partial_update** +> OrganizationApiKeyRule orgs_api_key_rules_partial_update(org, slug_perm, opts) + +Update an API key rule. + +Update an API key rule. + +### 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 | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::OrganizationApiKeyRuleRequestPatch.new # OrganizationApiKeyRuleRequestPatch | +} + +begin + #Update an API key rule. + result = api_instance.orgs_api_key_rules_partial_update(org, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_partial_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slug_perm** | **String**| | + **data** | [**OrganizationApiKeyRuleRequestPatch**](OrganizationApiKeyRuleRequestPatch.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **orgs_api_key_rules_read** +> OrganizationApiKeyRule orgs_api_key_rules_read(org, slug_perm) + +Retrieve an API key rule. + +Retrieve an API key rule. + +### 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 | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Retrieve an API key rule. + result = api_instance.orgs_api_key_rules_read(org, slug_perm) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slug_perm** | **String**| | + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **orgs_api_key_rules_update** +> OrganizationApiKeyRule orgs_api_key_rules_update(org, slug_perm, opts) + +Full update of an API key rule. + +Full update of an API key rule. + +### 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 | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::OrganizationApiKeyRuleRequest.new # OrganizationApiKeyRuleRequest | +} + +begin + #Full update of an API key rule. + result = api_instance.orgs_api_key_rules_update(org, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling OrgsApi->orgs_api_key_rules_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| | + **slug_perm** | **String**| | + **data** | [**OrganizationApiKeyRuleRequest**](OrganizationApiKeyRuleRequest.md)| | [optional] + +### Return type + +[**OrganizationApiKeyRule**](OrganizationApiKeyRule.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **orgs_custom_domains_list** > Array<OrganizationCustomDomains> orgs_custom_domains_list(org, opts) diff --git a/bindings/ruby/src/docs/P2PackageUpload.md b/bindings/ruby/src/docs/P2PackageUpload.md index 75602d6c..f206e48c 100644 --- a/bindings/ruby/src/docs/P2PackageUpload.md +++ b/bindings/ruby/src/docs/P2PackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/P2PackageUploadRequest.md b/bindings/ruby/src/docs/P2PackageUploadRequest.md index a34a0ec0..312ee4af 100644 --- a/bindings/ruby/src/docs/P2PackageUploadRequest.md +++ b/bindings/ruby/src/docs/P2PackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/Package.md b/bindings/ruby/src/docs/Package.md index 246319ba..4fe3cc56 100644 --- a/bindings/ruby/src/docs/Package.md +++ b/bindings/ruby/src/docs/Package.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] diff --git a/bindings/ruby/src/docs/PackageCopy.md b/bindings/ruby/src/docs/PackageCopy.md index 4f120c7a..f8ccc248 100644 --- a/bindings/ruby/src/docs/PackageCopy.md +++ b/bindings/ruby/src/docs/PackageCopy.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageCopyRequest.md b/bindings/ruby/src/docs/PackageCopyRequest.md index 7de64b9b..a63fe6cb 100644 --- a/bindings/ruby/src/docs/PackageCopyRequest.md +++ b/bindings/ruby/src/docs/PackageCopyRequest.md @@ -4,8 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **republish** | **BOOLEAN** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageDetail.md b/bindings/ruby/src/docs/PackageDetail.md index 37b7fdc8..330518df 100644 --- a/bindings/ruby/src/docs/PackageDetail.md +++ b/bindings/ruby/src/docs/PackageDetail.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] diff --git a/bindings/ruby/src/docs/PackageLicense.md b/bindings/ruby/src/docs/PackageLicense.md index 2be9c951..ff49c85c 100644 --- a/bindings/ruby/src/docs/PackageLicense.md +++ b/bindings/ruby/src/docs/PackageLicense.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **String** | | [optional] **license_override** | **String** | | [optional] [default to 'None'] **license_url** | **String** | | [optional] **spdx_license** | **String** | | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageLicenseRequestPatch.md b/bindings/ruby/src/docs/PackageLicenseRequestPatch.md index 17409381..49dc46dd 100644 --- a/bindings/ruby/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/ruby/src/docs/PackageLicenseRequestPatch.md @@ -4,11 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | | [optional] [default to 'Update'] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_notes** | **String** | | [optional] **license_override** | **String** | | [optional] [default to 'None'] **license_url** | **String** | | [optional] **spdx_license** | **String** | | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageMove.md b/bindings/ruby/src/docs/PackageMove.md index 923b4cec..06e1420b 100644 --- a/bindings/ruby/src/docs/PackageMove.md +++ b/bindings/ruby/src/docs/PackageMove.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageMoveRequest.md b/bindings/ruby/src/docs/PackageMoveRequest.md index e9da22be..47e829f0 100644 --- a/bindings/ruby/src/docs/PackageMoveRequest.md +++ b/bindings/ruby/src/docs/PackageMoveRequest.md @@ -4,7 +4,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **destination** | **String** | The name of the destination repository without the namespace. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageQuarantine.md b/bindings/ruby/src/docs/PackageQuarantine.md index 4ece37a0..66720229 100644 --- a/bindings/ruby/src/docs/PackageQuarantine.md +++ b/bindings/ruby/src/docs/PackageQuarantine.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageQuarantineRequest.md b/bindings/ruby/src/docs/PackageQuarantineRequest.md index bc5efd91..5392352c 100644 --- a/bindings/ruby/src/docs/PackageQuarantineRequest.md +++ b/bindings/ruby/src/docs/PackageQuarantineRequest.md @@ -3,9 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **release** | **BOOLEAN** | If true, the package is released from quarantine. | [optional] **restore** | **BOOLEAN** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageResync.md b/bindings/ruby/src/docs/PackageResync.md index e8f447fe..16ee559e 100644 --- a/bindings/ruby/src/docs/PackageResync.md +++ b/bindings/ruby/src/docs/PackageResync.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -33,7 +34,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageTag.md b/bindings/ruby/src/docs/PackageTag.md index 88a408dd..65d55b07 100644 --- a/bindings/ruby/src/docs/PackageTag.md +++ b/bindings/ruby/src/docs/PackageTag.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **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_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -93,7 +93,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageTagRequest.md b/bindings/ruby/src/docs/PackageTagRequest.md index bea90d98..a360cfe9 100644 --- a/bindings/ruby/src/docs/PackageTagRequest.md +++ b/bindings/ruby/src/docs/PackageTagRequest.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | | [optional] [default to 'Add'] **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_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **tags** | **Array<String>** | A list of tags to apply the action to. Not required for clears. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackageVulnerability.md b/bindings/ruby/src/docs/PackageVulnerability.md index 372b9bfa..56d4ae15 100644 --- a/bindings/ruby/src/docs/PackageVulnerability.md +++ b/bindings/ruby/src/docs/PackageVulnerability.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | **String** | | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index 803253bc..453ec623 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -388,7 +388,7 @@ opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. include_connected_repositories: false, # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. sort: '-date' # String | A field for sorting objects in ascending or descending order. } @@ -410,7 +410,7 @@ Name | Type | Description | Notes **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false] - **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ] + **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. | [optional] [default to ] **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -date] ### Return type diff --git a/bindings/ruby/src/docs/PythonPackageUpload.md b/bindings/ruby/src/docs/PythonPackageUpload.md index 8b04f649..ef8fd5d9 100644 --- a/bindings/ruby/src/docs/PythonPackageUpload.md +++ b/bindings/ruby/src/docs/PythonPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PythonPackageUploadRequest.md b/bindings/ruby/src/docs/PythonPackageUploadRequest.md index 33dc13ac..784b1ad6 100644 --- a/bindings/ruby/src/docs/PythonPackageUploadRequest.md +++ b/bindings/ruby/src/docs/PythonPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RawPackageUpload.md b/bindings/ruby/src/docs/RawPackageUpload.md index 4ccec8b1..8dabc6be 100644 --- a/bindings/ruby/src/docs/RawPackageUpload.md +++ b/bindings/ruby/src/docs/RawPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RawPackageUploadRequest.md b/bindings/ruby/src/docs/RawPackageUploadRequest.md index 5382da04..ac191af1 100644 --- a/bindings/ruby/src/docs/RawPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RawPackageUploadRequest.md @@ -5,13 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content_type** | **String** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **description** | **String** | A textual description of this package. | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **summary** | **String** | A one-liner synopsis of this package. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RpmPackageUpload.md b/bindings/ruby/src/docs/RpmPackageUpload.md index 49ecb33e..d98ecd56 100644 --- a/bindings/ruby/src/docs/RpmPackageUpload.md +++ b/bindings/ruby/src/docs/RpmPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RpmPackageUploadRequest.md b/bindings/ruby/src/docs/RpmPackageUploadRequest.md index c1ad6e5d..07dfaf8d 100644 --- a/bindings/ruby/src/docs/RpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RpmPackageUploadRequest.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **distribution** | **String** | The distribution to store the package for. | -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/RubyPackageUpload.md b/bindings/ruby/src/docs/RubyPackageUpload.md index 37d45f5a..9398cbd3 100644 --- a/bindings/ruby/src/docs/RubyPackageUpload.md +++ b/bindings/ruby/src/docs/RubyPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/RubyPackageUploadRequest.md b/bindings/ruby/src/docs/RubyPackageUploadRequest.md index 962381a9..bdf89e50 100644 --- a/bindings/ruby/src/docs/RubyPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RubyPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/SwiftPackageUpload.md b/bindings/ruby/src/docs/SwiftPackageUpload.md index 2bd73726..0982151d 100644 --- a/bindings/ruby/src/docs/SwiftPackageUpload.md +++ b/bindings/ruby/src/docs/SwiftPackageUpload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -34,7 +35,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -96,7 +96,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/SwiftPackageUploadRequest.md b/bindings/ruby/src/docs/SwiftPackageUploadRequest.md index d5744106..3961ef1b 100644 --- a/bindings/ruby/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/ruby/src/docs/SwiftPackageUploadRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **author_name** | **String** | The name of the author of the package. | [optional] **author_org** | **String** | The organization of the author. | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **license_url** | **String** | The license URL of this package. | [optional] **name** | **String** | The name of this package. | **package_file** | **String** | The primary file for the package. | @@ -15,6 +14,5 @@ Name | Type | Description | Notes **scope** | **String** | A scope provides a namespace for related packages within the package registry. | **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUpload.md b/bindings/ruby/src/docs/TerraformPackageUpload.md index ff1b7e0e..e81a971c 100644 --- a/bindings/ruby/src/docs/TerraformPackageUpload.md +++ b/bindings/ruby/src/docs/TerraformPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUploadRequest.md b/bindings/ruby/src/docs/TerraformPackageUploadRequest.md index d0e3478b..19f4c087 100644 --- a/bindings/ruby/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/ruby/src/docs/TerraformPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/VagrantPackageUpload.md b/bindings/ruby/src/docs/VagrantPackageUpload.md index d843c898..429d1f31 100644 --- a/bindings/ruby/src/docs/VagrantPackageUpload.md +++ b/bindings/ruby/src/docs/VagrantPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -92,7 +92,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/VagrantPackageUploadRequest.md b/bindings/ruby/src/docs/VagrantPackageUploadRequest.md index cf0665b9..5e93a431 100644 --- a/bindings/ruby/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VagrantPackageUploadRequest.md @@ -3,13 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **name** | **String** | The name of this package. | **package_file** | **String** | The primary file for the package. | **provider** | **String** | The virtual machine provider for the box. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] **version** | **String** | The raw version for this package. | -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/VsxPackageUpload.md b/bindings/ruby/src/docs/VsxPackageUpload.md index e9fbf250..0e28e206 100644 --- a/bindings/ruby/src/docs/VsxPackageUpload.md +++ b/bindings/ruby/src/docs/VsxPackageUpload.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **dependencies_url** | **String** | | [optional] **description** | **String** | A textual description of this package. | [optional] **display_name** | **String** | | [optional] +**display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional] **distro** | [**Distribution**](Distribution.md) | | [optional] **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] **downloads** | **Integer** | | [optional] @@ -32,7 +33,6 @@ Name | Type | Description | Notes **is_deleteable** | **BOOLEAN** | | [optional] **is_downloadable** | **BOOLEAN** | | [optional] **is_hidden** | **BOOLEAN** | | [optional] -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_moveable** | **BOOLEAN** | | [optional] **is_quarantinable** | **BOOLEAN** | | [optional] **is_quarantined** | **BOOLEAN** | | [optional] @@ -91,7 +91,6 @@ Name | Type | Description | Notes **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/VsxPackageUploadRequest.md b/bindings/ruby/src/docs/VsxPackageUploadRequest.md index 00baca8f..dcfab844 100644 --- a/bindings/ruby/src/docs/VsxPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VsxPackageUploadRequest.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional] -**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 274c02a8..7f50c6e0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -54,6 +54,8 @@ 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/connected_repository_target_summary' +require 'cloudsmith-api/models/connected_repository_upstream' require 'cloudsmith-api/models/cran_package_upload' require 'cloudsmith-api/models/cran_package_upload_request' require 'cloudsmith-api/models/cran_upstream' @@ -152,6 +154,9 @@ require 'cloudsmith-api/models/oidc_1' require 'cloudsmith-api/models/oidc_request' require 'cloudsmith-api/models/organization' +require 'cloudsmith-api/models/organization_api_key_rule' +require 'cloudsmith-api/models/organization_api_key_rule_request' +require 'cloudsmith-api/models/organization_api_key_rule_request_patch' require 'cloudsmith-api/models/organization_custom_domain_nested_repo' require 'cloudsmith-api/models/organization_custom_domains' require 'cloudsmith-api/models/organization_group_sync' 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 d446448b..67af9076 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,359 @@ class OrgsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Create an API key rule. + # Create an API key rule. + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [OrganizationApiKeyRule] + def orgs_api_key_rules_create(org, opts = {}) + data, _status_code, _headers = orgs_api_key_rules_create_with_http_info(org, opts) + data + end + + # Create an API key rule. + # Create an API key rule. + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [Array<(OrganizationApiKeyRule, Fixnum, Hash)>] OrganizationApiKeyRule data, response status code and response headers + def orgs_api_key_rules_create_with_http_info(org, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_create ...' + 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_api_key_rules_create" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/'.sub('{' + 'org' + '}', org.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 => 'OrganizationApiKeyRule') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_api_key_rules_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Delete an API key rule. + # Delete an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + def orgs_api_key_rules_delete(org, slug_perm, opts = {}) + orgs_api_key_rules_delete_with_http_info(org, slug_perm, opts) + nil + end + + # Delete an API key rule. + # Delete an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def orgs_api_key_rules_delete_with_http_info(org, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_delete ...' + 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_api_key_rules_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 OrgsApi.orgs_api_key_rules_delete" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/{slug_perm}/'.sub('{' + 'org' + '}', org.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: OrgsApi#orgs_api_key_rules_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List all API key rules for the organization. + # List all API key rules for the organization. + # @param org + # @param [Hash] opts the optional parameters + # @return [Array] + def orgs_api_key_rules_list(org, opts = {}) + data, _status_code, _headers = orgs_api_key_rules_list_with_http_info(org, opts) + data + end + + # List all API key rules for the organization. + # List all API key rules for the organization. + # @param org + # @param [Hash] opts the optional parameters + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def orgs_api_key_rules_list_with_http_info(org, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_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_api_key_rules_list" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/'.sub('{' + 'org' + '}', org.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 => 'Array') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_api_key_rules_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update an API key rule. + # Update an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequestPatch] :data + # @return [OrganizationApiKeyRule] + def orgs_api_key_rules_partial_update(org, slug_perm, opts = {}) + data, _status_code, _headers = orgs_api_key_rules_partial_update_with_http_info(org, slug_perm, opts) + data + end + + # Update an API key rule. + # Update an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequestPatch] :data + # @return [Array<(OrganizationApiKeyRule, Fixnum, Hash)>] OrganizationApiKeyRule data, response status code and response headers + def orgs_api_key_rules_partial_update_with_http_info(org, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_partial_update ...' + 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_api_key_rules_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 OrgsApi.orgs_api_key_rules_partial_update" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/{slug_perm}/'.sub('{' + 'org' + '}', org.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 => 'OrganizationApiKeyRule') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_api_key_rules_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve an API key rule. + # Retrieve an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [OrganizationApiKeyRule] + def orgs_api_key_rules_read(org, slug_perm, opts = {}) + data, _status_code, _headers = orgs_api_key_rules_read_with_http_info(org, slug_perm, opts) + data + end + + # Retrieve an API key rule. + # Retrieve an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(OrganizationApiKeyRule, Fixnum, Hash)>] OrganizationApiKeyRule data, response status code and response headers + def orgs_api_key_rules_read_with_http_info(org, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_read ...' + end + # verify the required parameter 'org' is set + if @api_client.config.client_side_validation && org.nil? + fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_api_key_rules_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 OrgsApi.orgs_api_key_rules_read" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/{slug_perm}/'.sub('{' + 'org' + '}', org.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 => 'OrganizationApiKeyRule') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_api_key_rules_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Full update of an API key rule. + # Full update of an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [OrganizationApiKeyRule] + def orgs_api_key_rules_update(org, slug_perm, opts = {}) + data, _status_code, _headers = orgs_api_key_rules_update_with_http_info(org, slug_perm, opts) + data + end + + # Full update of an API key rule. + # Full update of an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [Array<(OrganizationApiKeyRule, Fixnum, Hash)>] OrganizationApiKeyRule data, response status code and response headers + def orgs_api_key_rules_update_with_http_info(org, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_api_key_rules_update ...' + 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_api_key_rules_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 OrgsApi.orgs_api_key_rules_update" + end + # resource path + local_var_path = '/orgs/{org}/api-key-rules/{slug_perm}/'.sub('{' + 'org' + '}', org.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 => 'OrganizationApiKeyRule') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrgsApi#orgs_api_key_rules_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Get the details for all custom domains. # Get the details for all custom domains. # @param org diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb index 80287665..a838f637 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -310,7 +310,7 @@ def packages_groups_list_with_http_info(owner, repo, opts = {}) # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false) - # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (default to ) + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. (default to ) # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -date) # @return [Array] def packages_list(owner, repo, opts = {}) @@ -326,7 +326,7 @@ def packages_list(owner, repo, opts = {}) # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def packages_list_with_http_info(owner, repo, opts = {}) 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 737f22ae..93f72143 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 @@ -36,6 +36,9 @@ class AlpinePackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class AlpinePackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class AlpinePackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/alpine_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb index c21de2e1..67c25135 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload_request.rb @@ -17,9 +17,6 @@ class AlpinePackageUploadRequest # The distribution to store the package for. attr_accessor :distribution - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,17 +26,13 @@ class AlpinePackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'distribution' => :'distribution', - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end @@ -47,11 +40,9 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -67,10 +58,6 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -117,11 +100,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && distribution == o.distribution && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -133,7 +114,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [distribution, package_file, republish, tags].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 fe20a9ca..19ca336d 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 @@ -36,6 +36,9 @@ class CargoPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class CargoPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class CargoPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb index a6b7cd1b..94b1712b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class CargoPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class CargoPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 63ec11ab..f8db89d2 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 @@ -36,6 +36,9 @@ class CocoapodsPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class CocoapodsPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class CocoapodsPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb index f85c2827..6402fcf8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class CocoapodsPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class CocoapodsPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 2e72f709..cb61f273 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 @@ -36,6 +36,9 @@ class ComposerPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class ComposerPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class ComposerPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb index 3cd91a51..0e20133f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/composer_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class ComposerPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,29 +26,23 @@ class ComposerPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -63,10 +54,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -111,12 +94,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -128,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].hash + [package_file, republish, tags, version].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 5449391e..18c519fb 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 @@ -42,6 +42,9 @@ class ConanPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -84,9 +87,6 @@ class ConanPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -228,8 +228,6 @@ class ConanPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +267,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -288,7 +287,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -347,7 +345,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -367,6 +364,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -386,7 +384,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -445,7 +442,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -508,6 +504,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -588,10 +588,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -828,10 +824,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -879,6 +871,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -898,7 +891,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -957,7 +949,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -970,7 +961,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, 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, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb index 813ece12..fb50c78b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload_request.rb @@ -23,9 +23,6 @@ class ConanPackageUploadRequest # The info file is an python file containing the package metadata. attr_accessor :info_file - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The info file is an python file containing the package metadata. attr_accessor :manifest_file @@ -47,23 +44,19 @@ class ConanPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'conan_channel' => :'conan_channel', :'conan_prefix' => :'conan_prefix', :'info_file' => :'info_file', - :'is_malware_detected' => :'is_malware_detected', :'manifest_file' => :'manifest_file', :'metadata_file' => :'metadata_file', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -73,15 +66,13 @@ def self.swagger_types :'conan_channel' => :'String', :'conan_prefix' => :'String', :'info_file' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'manifest_file' => :'String', :'metadata_file' => :'String', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -105,10 +96,6 @@ def initialize(attributes = {}) self.info_file = attributes[:'info_file'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'manifest_file') self.manifest_file = attributes[:'manifest_file'] end @@ -136,10 +123,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -183,15 +166,13 @@ def ==(o) conan_channel == o.conan_channel && conan_prefix == o.conan_prefix && info_file == o.info_file && - is_malware_detected == o.is_malware_detected && manifest_file == o.manifest_file && metadata_file == o.metadata_file && name == o.name && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -203,7 +184,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [conan_channel, conan_prefix, info_file, is_malware_detected, manifest_file, metadata_file, name, package_file, republish, tags, version, vulnerability_counts].hash + [conan_channel, conan_prefix, info_file, manifest_file, metadata_file, name, package_file, republish, tags, version].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 a5f417e9..88d2ae44 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 @@ -36,6 +36,9 @@ class CondaPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class CondaPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class CondaPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb index 6b9e3a8c..583cbedb 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conda_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class CondaPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class CondaPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 index c0a59a7c..6e1e8ae7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository.rb @@ -14,6 +14,12 @@ module CloudsmithApi class ConnectedRepository + # Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured. + attr_accessor :can_view_target_repository_settings + + # The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes. + attr_accessor :configured_upstreams + # The date and time when the connection was created. attr_accessor :created_at @@ -32,6 +38,8 @@ class ConnectedRepository # The slug of the target repository to connect to. attr_accessor :target_repository + attr_accessor :target_repository_summary + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -57,26 +65,32 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'can_view_target_repository_settings' => :'can_view_target_repository_settings', + :'configured_upstreams' => :'configured_upstreams', :'created_at' => :'created_at', :'disable_reason' => :'disable_reason', :'disable_reason_text' => :'disable_reason_text', :'is_active' => :'is_active', :'priority' => :'priority', :'slug_perm' => :'slug_perm', - :'target_repository' => :'target_repository' + :'target_repository' => :'target_repository', + :'target_repository_summary' => :'target_repository_summary' } end # Attribute type mapping. def self.swagger_types { + :'can_view_target_repository_settings' => :'BOOLEAN', + :'configured_upstreams' => :'Array', :'created_at' => :'DateTime', :'disable_reason' => :'String', :'disable_reason_text' => :'String', :'is_active' => :'BOOLEAN', :'priority' => :'Integer', :'slug_perm' => :'String', - :'target_repository' => :'String' + :'target_repository' => :'String', + :'target_repository_summary' => :'ConnectedRepositoryTargetSummary' } end @@ -88,6 +102,16 @@ 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?(:'can_view_target_repository_settings') + self.can_view_target_repository_settings = attributes[:'can_view_target_repository_settings'] + end + + if attributes.has_key?(:'configured_upstreams') + if (value = attributes[:'configured_upstreams']).is_a?(Array) + self.configured_upstreams = value + end + end + if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] end @@ -119,6 +143,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'target_repository') self.target_repository = attributes[:'target_repository'] end + + if attributes.has_key?(:'target_repository_summary') + self.target_repository_summary = attributes[:'target_repository_summary'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -156,13 +184,16 @@ def disable_reason=(disable_reason) def ==(o) return true if self.equal?(o) self.class == o.class && + can_view_target_repository_settings == o.can_view_target_repository_settings && + configured_upstreams == o.configured_upstreams && created_at == o.created_at && disable_reason == o.disable_reason && disable_reason_text == o.disable_reason_text && is_active == o.is_active && priority == o.priority && slug_perm == o.slug_perm && - target_repository == o.target_repository + target_repository == o.target_repository && + target_repository_summary == o.target_repository_summary end # @see the `==` method @@ -174,7 +205,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [created_at, disable_reason, disable_reason_text, is_active, priority, slug_perm, target_repository].hash + [can_view_target_repository_settings, configured_upstreams, created_at, disable_reason, disable_reason_text, is_active, priority, slug_perm, target_repository, target_repository_summary].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_target_summary.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_target_summary.rb new file mode 100644 index 00000000..1ffdbb27 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_target_summary.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 ConnectedRepositoryTargetSummary + attr_accessor :is_private + + attr_accessor :is_public + + attr_accessor :package_count + + attr_accessor :size + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'is_private' => :'is_private', + :'is_public' => :'is_public', + :'package_count' => :'package_count', + :'size' => :'size' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'is_private' => :'BOOLEAN', + :'is_public' => :'BOOLEAN', + :'package_count' => :'Integer', + :'size' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'is_private') + self.is_private = attributes[:'is_private'] + end + + if attributes.has_key?(:'is_public') + self.is_public = attributes[:'is_public'] + end + + if attributes.has_key?(:'package_count') + self.package_count = attributes[:'package_count'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + 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_private == o.is_private && + is_public == o.is_public && + package_count == o.package_count && + size == o.size + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [is_private, is_public, package_count, size].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_upstream.rb new file mode 100644 index 00000000..fec3275d --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/connected_repository_upstream.rb @@ -0,0 +1,194 @@ +=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 ConnectedRepositoryUpstream + # The format/backend slug of the upstream (e.g. 'npm'). + attr_accessor :type + + attr_accessor :upstream_url + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'upstream_url' => :'upstream_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'type' => :'String', + :'upstream_url' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + 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 && + type == o.type && + upstream_url == o.upstream_url + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [type, upstream_url].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload.rb index a3266a03..696a3ce4 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 @@ -36,6 +36,9 @@ class CranPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class CranPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -225,8 +225,6 @@ class CranPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -264,6 +262,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -283,7 +282,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -343,7 +341,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +358,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -380,7 +378,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -440,7 +437,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -495,6 +491,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -575,10 +575,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -819,10 +815,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -868,6 +860,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -887,7 +880,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -947,7 +939,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -960,7 +951,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/cran_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb index f6f03ef2..473a0af8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cran_package_upload_request.rb @@ -17,9 +17,6 @@ class CranPackageUploadRequest # Binary package uploads for macOS should specify the architecture they were built for. attr_accessor :architecture - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -32,18 +29,14 @@ class CranPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'architecture' => :'architecture', - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'r_version' => :'r_version', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end @@ -51,12 +44,10 @@ def self.attribute_map def self.swagger_types { :'architecture' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'r_version' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -72,10 +63,6 @@ def initialize(attributes = {}) self.architecture = attributes[:'architecture'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -91,10 +78,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -121,12 +104,10 @@ def ==(o) return true if self.equal?(o) self.class == o.class && architecture == o.architecture && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && r_version == o.r_version && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -138,7 +119,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architecture, is_malware_detected, package_file, r_version, republish, tags, vulnerability_counts].hash + [architecture, package_file, r_version, republish, tags].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 36434b9c..ccef6801 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 @@ -36,6 +36,9 @@ class DartPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class DartPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class DartPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb index 3aa60a57..43332f46 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/dart_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class DartPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class DartPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 7a0ce694..06a88718 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 @@ -36,6 +36,9 @@ class DebPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class DebPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class DebPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb index fb1c986a..cc5ba04a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb @@ -23,9 +23,6 @@ class DebPackageUploadRequest # The distribution to store the package for. attr_accessor :distribution - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -38,20 +35,16 @@ class DebPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'changes_file' => :'changes_file', :'component' => :'component', :'distribution' => :'distribution', - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'sources_file' => :'sources_file', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end @@ -61,12 +54,10 @@ def self.swagger_types :'changes_file' => :'String', :'component' => :'String', :'distribution' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'sources_file' => :'String', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -92,10 +83,6 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -111,10 +98,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -148,12 +131,10 @@ def ==(o) changes_file == o.changes_file && component == o.component && distribution == o.distribution && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && sources_file == o.sources_file && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -165,7 +146,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [changes_file, component, distribution, is_malware_detected, package_file, republish, sources_file, tags, vulnerability_counts].hash + [changes_file, component, distribution, package_file, republish, sources_file, tags].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 502c9cfa..3f2d81fa 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 @@ -36,6 +36,9 @@ class DockerPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class DockerPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class DockerPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb index a86bd7a0..8f86a6a7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/docker_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class DockerPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class DockerPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 8daa77d9..ed0fc742 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 @@ -36,6 +36,9 @@ class GenericPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class GenericPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class GenericPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb index bb934e9c..0c2929f4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/generic_package_upload_request.rb @@ -17,9 +17,6 @@ class GenericPackageUploadRequest # The full filepath of the package including filename. attr_accessor :filepath - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The name of this package. attr_accessor :name @@ -35,19 +32,15 @@ class GenericPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'filepath' => :'filepath', - :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -55,13 +48,11 @@ def self.attribute_map def self.swagger_types { :'filepath' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -77,10 +68,6 @@ def initialize(attributes = {}) self.filepath = attributes[:'filepath'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -100,10 +87,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -135,13 +118,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && filepath == o.filepath && - is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -153,7 +134,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [filepath, is_malware_detected, name, package_file, republish, tags, version, vulnerability_counts].hash + [filepath, name, package_file, republish, tags, version].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 99b69784..baa4ee32 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 @@ -36,6 +36,9 @@ class GoPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class GoPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class GoPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb index 6ae5718a..1fa593fb 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class GoPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class GoPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 85a35ac5..2fc84319 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 @@ -36,6 +36,9 @@ class HelmPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class HelmPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class HelmPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb index 0076deb6..9c5ab9c6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/helm_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class HelmPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,29 +26,23 @@ class HelmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'provenance_file' => :'provenance_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'provenance_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -63,10 +54,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -111,12 +94,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && provenance_file == o.provenance_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -128,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, provenance_file, republish, tags, vulnerability_counts].hash + [package_file, provenance_file, republish, tags].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 6acd90c0..5e3c2edd 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 @@ -36,6 +36,9 @@ class HexPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class HexPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class HexPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb index 8904d139..eafbbe6f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/hex_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class HexPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class HexPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 a89b7edd..48bc4504 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 @@ -36,6 +36,9 @@ class HuggingfacePackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class HuggingfacePackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class HuggingfacePackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb index 39e4d138..46ebe25c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/huggingface_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class HuggingfacePackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class HuggingfacePackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].hash end # Builds the object from hash 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 a36fd126..fbc50082 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 @@ -36,6 +36,9 @@ class LuarocksPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class LuarocksPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class LuarocksPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/luarocks_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb index b522fee8..3af112f6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/luarocks_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class LuarocksPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class LuarocksPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 3dea1ed5..bd1bca11 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 @@ -39,6 +39,9 @@ class MavenPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -84,9 +87,6 @@ class MavenPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -235,8 +235,6 @@ class MavenPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -275,6 +273,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -295,7 +294,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -357,7 +355,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -376,6 +373,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -396,7 +394,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -458,7 +455,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -517,6 +513,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -601,10 +601,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -853,10 +849,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -903,6 +895,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -923,7 +916,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -985,7 +977,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -998,7 +989,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, 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, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb index 7e08c2bf..cdc25493 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload_request.rb @@ -23,9 +23,6 @@ class MavenPackageUploadRequest # Artifact's group ID. attr_accessor :group_id - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The ivy file is an XML file describing the dependencies of the project. attr_accessor :ivy_file @@ -60,15 +57,12 @@ class MavenPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'artifact_id' => :'artifact_id', :'extra_files' => :'extra_files', :'group_id' => :'group_id', - :'is_malware_detected' => :'is_malware_detected', :'ivy_file' => :'ivy_file', :'javadoc_file' => :'javadoc_file', :'package_file' => :'package_file', @@ -80,8 +74,7 @@ def self.attribute_map :'sources_file' => :'sources_file', :'tags' => :'tags', :'tests_file' => :'tests_file', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -91,7 +84,6 @@ def self.swagger_types :'artifact_id' => :'String', :'extra_files' => :'Array', :'group_id' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'ivy_file' => :'String', :'javadoc_file' => :'String', :'package_file' => :'String', @@ -103,8 +95,7 @@ def self.swagger_types :'sources_file' => :'String', :'tags' => :'String', :'tests_file' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -130,10 +121,6 @@ def initialize(attributes = {}) self.group_id = attributes[:'group_id'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'ivy_file') self.ivy_file = attributes[:'ivy_file'] end @@ -181,10 +168,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -213,7 +196,6 @@ def ==(o) artifact_id == o.artifact_id && extra_files == o.extra_files && group_id == o.group_id && - is_malware_detected == o.is_malware_detected && ivy_file == o.ivy_file && javadoc_file == o.javadoc_file && package_file == o.package_file && @@ -225,8 +207,7 @@ def ==(o) sources_file == o.sources_file && tags == o.tags && tests_file == o.tests_file && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -238,7 +219,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [artifact_id, extra_files, group_id, is_malware_detected, ivy_file, javadoc_file, package_file, packaging, pom_file, republish, sbt_version, scala_version, sources_file, tags, tests_file, version, vulnerability_counts].hash + [artifact_id, extra_files, group_id, ivy_file, javadoc_file, package_file, packaging, pom_file, republish, sbt_version, scala_version, sources_file, tags, tests_file, version].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 35678e23..943b4ee4 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 @@ -36,6 +36,9 @@ class McpPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class McpPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class McpPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb index 22f8454d..3fceb8d5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/mcp_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class McpPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,29 +26,23 @@ class McpPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -63,10 +54,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -111,12 +94,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -128,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].hash + [package_file, republish, tags, version].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb index cc52aa91..e342b376 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload.rb @@ -36,6 +36,9 @@ class NixPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class NixPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class NixPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/nix_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb index 9628b52e..ecdb6a63 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nix_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class NixPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The narinfo sidecar metadata file (.narinfo). Optional — the package can be completed later by publishing the matching narinfo via the native HTTP PUT path. attr_accessor :narinfo_file @@ -32,31 +29,25 @@ class NixPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'narinfo_file' => :'narinfo_file', :'package_file' => :'package_file', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'narinfo_file' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -68,10 +59,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'narinfo_file') self.narinfo_file = attributes[:'narinfo_file'] end @@ -91,10 +78,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -120,13 +103,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && narinfo_file == o.narinfo_file && package_file == o.package_file && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -138,7 +119,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, narinfo_file, package_file, republish, tags, version, vulnerability_counts].hash + [narinfo_file, package_file, republish, tags, version].hash end # Builds the object from hash 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 4f671a59..0a5088bc 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 @@ -36,6 +36,9 @@ class NpmPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class NpmPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class NpmPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/npm_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb index 9db52e38..cc7c9362 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/npm_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class NpmPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. attr_accessor :npm_dist_tag @@ -29,29 +26,23 @@ class NpmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'npm_dist_tag' => :'npm_dist_tag', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'npm_dist_tag' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -63,10 +54,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'npm_dist_tag') self.npm_dist_tag = attributes[:'npm_dist_tag'] else @@ -84,10 +71,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -113,12 +96,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && npm_dist_tag == o.npm_dist_tag && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -130,7 +111,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, npm_dist_tag, package_file, republish, tags, vulnerability_counts].hash + [npm_dist_tag, package_file, republish, tags].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 61cdf1c4..fd4da9d1 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 @@ -36,6 +36,9 @@ class NugetPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class NugetPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class NugetPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb index 3ac2a574..ed1f8939 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/nuget_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class NugetPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,29 +26,23 @@ class NugetPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', :'symbols_file' => :'symbols_file', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'symbols_file' => :'String', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -63,10 +54,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -111,12 +94,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && symbols_file == o.symbols_file && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -128,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, symbols_file, tags, vulnerability_counts].hash + [package_file, republish, symbols_file, tags].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule.rb new file mode 100644 index 00000000..7fd72c60 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule.rb @@ -0,0 +1,302 @@ +=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 OrganizationApiKeyRule + attr_accessor :created_at + + # When enabled, API keys that violate the organization's rule will be replaced automatically. + attr_accessor :enforce_refresh + + # Whether this rule is currently active and enforced. + attr_accessor :is_enabled + + # The last time this rule was evaluated and applied by the expiry task. + attr_accessor :last_applied_at + + # The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + attr_accessor :max_age_hours + + # Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + attr_accessor :rule_type + + # Human-readable identifier for the rule type. Automatically generated based on the rule type. + attr_accessor :slug + + # An auto-generated id that uniquely identifies the API key policy. + attr_accessor :slug_perm + + attr_accessor :updated_at + + 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 + { + :'created_at' => :'created_at', + :'enforce_refresh' => :'enforce_refresh', + :'is_enabled' => :'is_enabled', + :'last_applied_at' => :'last_applied_at', + :'max_age_hours' => :'max_age_hours', + :'rule_type' => :'rule_type', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm', + :'updated_at' => :'updated_at' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'created_at' => :'DateTime', + :'enforce_refresh' => :'BOOLEAN', + :'is_enabled' => :'BOOLEAN', + :'last_applied_at' => :'DateTime', + :'max_age_hours' => :'Integer', + :'rule_type' => :'String', + :'slug' => :'String', + :'slug_perm' => :'String', + :'updated_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?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'enforce_refresh') + self.enforce_refresh = attributes[:'enforce_refresh'] + end + + if attributes.has_key?(:'is_enabled') + self.is_enabled = attributes[:'is_enabled'] + end + + if attributes.has_key?(:'last_applied_at') + self.last_applied_at = attributes[:'last_applied_at'] + end + + if attributes.has_key?(:'max_age_hours') + self.max_age_hours = attributes[:'max_age_hours'] + end + + if attributes.has_key?(:'rule_type') + self.rule_type = attributes[:'rule_type'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'updated_at') + self.updated_at = attributes[:'updated_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 @rule_type.nil? + invalid_properties.push('invalid value for "rule_type", rule_type 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 @rule_type.nil? + rule_type_validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + return false unless rule_type_validator.valid?(@rule_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] rule_type Object to be assigned + def rule_type=(rule_type) + validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + unless validator.valid?(rule_type) + fail ArgumentError, 'invalid value for "rule_type", must be one of #{validator.allowable_values}.' + end + @rule_type = rule_type + 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 && + enforce_refresh == o.enforce_refresh && + is_enabled == o.is_enabled && + last_applied_at == o.last_applied_at && + max_age_hours == o.max_age_hours && + rule_type == o.rule_type && + slug == o.slug && + slug_perm == o.slug_perm && + updated_at == o.updated_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 + [created_at, enforce_refresh, is_enabled, last_applied_at, max_age_hours, rule_type, slug, slug_perm, updated_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_api_key_rule_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule_request.rb new file mode 100644 index 00000000..585404bc --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule_request.rb @@ -0,0 +1,264 @@ +=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 OrganizationApiKeyRuleRequest + # When enabled, API keys that violate the organization's rule will be replaced automatically. + attr_accessor :enforce_refresh + + # Whether this rule is currently active and enforced. + attr_accessor :is_enabled + + # The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + attr_accessor :max_age_hours + + # If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + attr_accessor :refresh_immediately + + # Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + attr_accessor :rule_type + + 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 + { + :'enforce_refresh' => :'enforce_refresh', + :'is_enabled' => :'is_enabled', + :'max_age_hours' => :'max_age_hours', + :'refresh_immediately' => :'refresh_immediately', + :'rule_type' => :'rule_type' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'enforce_refresh' => :'BOOLEAN', + :'is_enabled' => :'BOOLEAN', + :'max_age_hours' => :'Integer', + :'refresh_immediately' => :'BOOLEAN', + :'rule_type' => :'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?(:'enforce_refresh') + self.enforce_refresh = attributes[:'enforce_refresh'] + end + + if attributes.has_key?(:'is_enabled') + self.is_enabled = attributes[:'is_enabled'] + end + + if attributes.has_key?(:'max_age_hours') + self.max_age_hours = attributes[:'max_age_hours'] + end + + if attributes.has_key?(:'refresh_immediately') + self.refresh_immediately = attributes[:'refresh_immediately'] + end + + if attributes.has_key?(:'rule_type') + self.rule_type = attributes[:'rule_type'] + 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 @rule_type.nil? + invalid_properties.push('invalid value for "rule_type", rule_type 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 @rule_type.nil? + rule_type_validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + return false unless rule_type_validator.valid?(@rule_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] rule_type Object to be assigned + def rule_type=(rule_type) + validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + unless validator.valid?(rule_type) + fail ArgumentError, 'invalid value for "rule_type", must be one of #{validator.allowable_values}.' + end + @rule_type = rule_type + 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 && + enforce_refresh == o.enforce_refresh && + is_enabled == o.is_enabled && + max_age_hours == o.max_age_hours && + refresh_immediately == o.refresh_immediately && + rule_type == o.rule_type + 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 + [enforce_refresh, is_enabled, max_age_hours, refresh_immediately, rule_type].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_api_key_rule_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule_request_patch.rb new file mode 100644 index 00000000..0b01df44 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_api_key_rule_request_patch.rb @@ -0,0 +1,259 @@ +=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 OrganizationApiKeyRuleRequestPatch + # When enabled, API keys that violate the organization's rule will be replaced automatically. + attr_accessor :enforce_refresh + + # Whether this rule is currently active and enforced. + attr_accessor :is_enabled + + # The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value. + attr_accessor :max_age_hours + + # If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this. + attr_accessor :refresh_immediately + + # Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only. + attr_accessor :rule_type + + 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 + { + :'enforce_refresh' => :'enforce_refresh', + :'is_enabled' => :'is_enabled', + :'max_age_hours' => :'max_age_hours', + :'refresh_immediately' => :'refresh_immediately', + :'rule_type' => :'rule_type' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'enforce_refresh' => :'BOOLEAN', + :'is_enabled' => :'BOOLEAN', + :'max_age_hours' => :'Integer', + :'refresh_immediately' => :'BOOLEAN', + :'rule_type' => :'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?(:'enforce_refresh') + self.enforce_refresh = attributes[:'enforce_refresh'] + end + + if attributes.has_key?(:'is_enabled') + self.is_enabled = attributes[:'is_enabled'] + end + + if attributes.has_key?(:'max_age_hours') + self.max_age_hours = attributes[:'max_age_hours'] + end + + if attributes.has_key?(:'refresh_immediately') + self.refresh_immediately = attributes[:'refresh_immediately'] + end + + if attributes.has_key?(:'rule_type') + self.rule_type = attributes[:'rule_type'] + 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? + rule_type_validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + return false unless rule_type_validator.valid?(@rule_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] rule_type Object to be assigned + def rule_type=(rule_type) + validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts']) + unless validator.valid?(rule_type) + fail ArgumentError, 'invalid value for "rule_type", must be one of #{validator.allowable_values}.' + end + @rule_type = rule_type + 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 && + enforce_refresh == o.enforce_refresh && + is_enabled == o.is_enabled && + max_age_hours == o.max_age_hours && + refresh_immediately == o.refresh_immediately && + rule_type == o.rule_type + 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 + [enforce_refresh, is_enabled, max_age_hours, refresh_immediately, rule_type].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/p2_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb index 8c7f407c..9089ffd2 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 @@ -36,6 +36,9 @@ class P2PackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class P2PackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class P2PackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/p2_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb index 287d4599..1a02d8d3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class P2PackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class P2PackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 7b01cd53..afb5ac33 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb @@ -36,6 +36,9 @@ class Package attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -266,6 +269,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -364,6 +368,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -499,6 +504,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -876,6 +885,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -969,7 +979,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, 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 d1541ce1..b01c3677 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb @@ -36,6 +36,9 @@ class PackageCopy attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -81,9 +84,6 @@ class PackageCopy attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -228,8 +228,6 @@ class PackageCopy attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -267,6 +265,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -287,7 +286,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -347,7 +345,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +362,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -385,7 +383,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -445,7 +442,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -500,6 +496,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -584,10 +584,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -828,10 +824,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -877,6 +869,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -897,7 +890,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -957,7 +949,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -970,7 +961,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb index 2a1a4d5d..bfbd9757 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb @@ -17,21 +17,14 @@ class PackageCopyRequest # The name of the destination repository without the namespace. attr_accessor :destination - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. attr_accessor :republish - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'destination' => :'destination', - :'is_malware_detected' => :'is_malware_detected', - :'republish' => :'republish', - :'vulnerability_counts' => :'vulnerability_counts' + :'republish' => :'republish' } end @@ -39,9 +32,7 @@ def self.attribute_map def self.swagger_types { :'destination' => :'String', - :'is_malware_detected' => :'BOOLEAN', - :'republish' => :'BOOLEAN', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'republish' => :'BOOLEAN' } end @@ -57,17 +48,9 @@ def initialize(attributes = {}) self.destination = attributes[:'destination'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'republish') self.republish = attributes[:'republish'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -94,9 +77,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && destination == o.destination && - is_malware_detected == o.is_malware_detected && - republish == o.republish && - vulnerability_counts == o.vulnerability_counts + republish == o.republish end # @see the `==` method @@ -108,7 +89,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination, is_malware_detected, republish, vulnerability_counts].hash + [destination, republish].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb index 3df2247e..db7c4bc0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb @@ -36,6 +36,9 @@ class PackageDetail attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -269,6 +272,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -368,6 +372,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -504,6 +509,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -885,6 +894,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -979,7 +989,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, has_dependencies, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, has_dependencies, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb index fee05201..23fd45e3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb @@ -14,9 +14,6 @@ module CloudsmithApi class PackageLicense - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :license_notes attr_accessor :license_override @@ -25,8 +22,6 @@ class PackageLicense attr_accessor :spdx_license - attr_accessor :vulnerability_counts - class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -52,24 +47,20 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'license_notes' => :'license_notes', :'license_override' => :'license_override', :'license_url' => :'license_url', - :'spdx_license' => :'spdx_license', - :'vulnerability_counts' => :'vulnerability_counts' + :'spdx_license' => :'spdx_license' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'license_notes' => :'String', :'license_override' => :'String', :'license_url' => :'String', - :'spdx_license' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'spdx_license' => :'String' } end @@ -81,10 +72,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'license_notes') self.license_notes = attributes[:'license_notes'] end @@ -102,10 +89,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'spdx_license') self.spdx_license = attributes[:'spdx_license'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -143,12 +126,10 @@ def license_override=(license_override) def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && license_notes == o.license_notes && license_override == o.license_override && license_url == o.license_url && - spdx_license == o.spdx_license && - vulnerability_counts == o.vulnerability_counts + spdx_license == o.spdx_license end # @see the `==` method @@ -160,7 +141,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].hash + [license_notes, license_override, license_url, spdx_license].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb index 0462ee91..53b433e3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_license_request_patch.rb @@ -16,9 +16,6 @@ module CloudsmithApi class PackageLicenseRequestPatch attr_accessor :action - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :license_notes attr_accessor :license_override @@ -27,8 +24,6 @@ class PackageLicenseRequestPatch attr_accessor :spdx_license - attr_accessor :vulnerability_counts - class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -55,12 +50,10 @@ def valid?(value) def self.attribute_map { :'action' => :'action', - :'is_malware_detected' => :'is_malware_detected', :'license_notes' => :'license_notes', :'license_override' => :'license_override', :'license_url' => :'license_url', - :'spdx_license' => :'spdx_license', - :'vulnerability_counts' => :'vulnerability_counts' + :'spdx_license' => :'spdx_license' } end @@ -68,12 +61,10 @@ def self.attribute_map def self.swagger_types { :'action' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'license_notes' => :'String', :'license_override' => :'String', :'license_url' => :'String', - :'spdx_license' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'spdx_license' => :'String' } end @@ -91,10 +82,6 @@ def initialize(attributes = {}) self.action = 'Update' end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'license_notes') self.license_notes = attributes[:'license_notes'] end @@ -112,10 +99,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'spdx_license') self.spdx_license = attributes[:'spdx_license'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -166,12 +149,10 @@ def ==(o) return true if self.equal?(o) self.class == o.class && action == o.action && - is_malware_detected == o.is_malware_detected && license_notes == o.license_notes && license_override == o.license_override && license_url == o.license_url && - spdx_license == o.spdx_license && - vulnerability_counts == o.vulnerability_counts + spdx_license == o.spdx_license end # @see the `==` method @@ -183,7 +164,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].hash + [action, license_notes, license_override, license_url, spdx_license].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 29c40365..af0eb25f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb @@ -36,6 +36,9 @@ class PackageMove attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -81,9 +84,6 @@ class PackageMove attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -228,8 +228,6 @@ class PackageMove attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -267,6 +265,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -287,7 +286,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -347,7 +345,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +362,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -385,7 +383,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -445,7 +442,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -500,6 +496,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -584,10 +584,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -828,10 +824,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -877,6 +869,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -897,7 +890,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -957,7 +949,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -970,7 +961,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb index d751540b..25c41edc 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb @@ -17,26 +17,17 @@ class PackageMoveRequest # The name of the destination repository without the namespace. attr_accessor :destination - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'destination' => :'destination', - :'is_malware_detected' => :'is_malware_detected', - :'vulnerability_counts' => :'vulnerability_counts' + :'destination' => :'destination' } end # Attribute type mapping. def self.swagger_types { - :'destination' => :'String', - :'is_malware_detected' => :'BOOLEAN', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'destination' => :'String' } end @@ -51,14 +42,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'destination') self.destination = attributes[:'destination'] end - - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -84,9 +67,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - destination == o.destination && - is_malware_detected == o.is_malware_detected && - vulnerability_counts == o.vulnerability_counts + destination == o.destination end # @see the `==` method @@ -98,7 +79,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination, is_malware_detected, vulnerability_counts].hash + [destination].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 37fa7cee..96b0dd06 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb @@ -36,6 +36,9 @@ class PackageQuarantine attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -81,9 +84,6 @@ class PackageQuarantine attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -224,8 +224,6 @@ class PackageQuarantine attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -263,6 +261,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -283,7 +282,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -342,7 +340,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -360,6 +357,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -380,7 +378,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -439,7 +436,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -494,6 +490,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -578,10 +578,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -818,10 +814,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -867,6 +859,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -887,7 +880,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -946,7 +938,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -959,7 +950,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb index 74e4fc0e..d6c853e7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb @@ -14,34 +14,25 @@ module CloudsmithApi class PackageQuarantineRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # If true, the package is released from quarantine. attr_accessor :release # If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. attr_accessor :restore - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'release' => :'release', - :'restore' => :'restore', - :'vulnerability_counts' => :'vulnerability_counts' + :'restore' => :'restore' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'release' => :'BOOLEAN', - :'restore' => :'BOOLEAN', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'restore' => :'BOOLEAN' } end @@ -53,10 +44,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'release') self.release = attributes[:'release'] end @@ -64,10 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'restore') self.restore = attributes[:'restore'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -88,10 +71,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && release == o.release && - restore == o.restore && - vulnerability_counts == o.vulnerability_counts + restore == o.restore end # @see the `==` method @@ -103,7 +84,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, release, restore, vulnerability_counts].hash + [release, restore].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 b9449aab..edb8cb42 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb @@ -36,6 +36,9 @@ class PackageResync attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -81,9 +84,6 @@ class PackageResync attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -227,8 +227,6 @@ class PackageResync attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -266,6 +264,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -286,7 +285,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -346,7 +344,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -364,6 +361,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -384,7 +382,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -444,7 +441,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -499,6 +495,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -583,10 +583,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -827,10 +823,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -876,6 +868,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -896,7 +889,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -956,7 +948,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -969,7 +960,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, 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_tag.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb index 0f518639..2dbadb51 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb @@ -36,6 +36,9 @@ class PackageTag attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -84,9 +87,6 @@ class PackageTag # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. attr_accessor :is_immutable - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -228,8 +228,6 @@ class PackageTag attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -267,6 +265,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -288,7 +287,6 @@ def self.attribute_map :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', :'is_immutable' => :'is_immutable', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -347,7 +345,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -365,6 +362,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -386,7 +384,6 @@ def self.swagger_types :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', :'is_immutable' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -445,7 +442,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -500,6 +496,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -590,10 +590,6 @@ def initialize(attributes = {}) self.is_immutable = false end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -830,10 +826,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -879,6 +871,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -900,7 +893,6 @@ def ==(o) is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && is_immutable == o.is_immutable && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -959,7 +951,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -972,7 +963,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_hidden, is_immutable, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_tag_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb index e3187586..a561a14b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag_request.rb @@ -19,14 +19,9 @@ class PackageTagRequest # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. attr_accessor :is_immutable - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # A list of tags to apply the action to. Not required for clears. attr_accessor :tags - attr_accessor :vulnerability_counts - class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -54,9 +49,7 @@ def self.attribute_map { :'action' => :'action', :'is_immutable' => :'is_immutable', - :'is_malware_detected' => :'is_malware_detected', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end @@ -65,9 +58,7 @@ def self.swagger_types { :'action' => :'String', :'is_immutable' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', - :'tags' => :'Array', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'Array' } end @@ -91,19 +82,11 @@ def initialize(attributes = {}) self.is_immutable = false end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self.tags = value end end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -138,9 +121,7 @@ def ==(o) self.class == o.class && action == o.action && is_immutable == o.is_immutable && - is_malware_detected == o.is_malware_detected && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -152,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, is_immutable, is_malware_detected, tags, vulnerability_counts].hash + [action, is_immutable, tags].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb index a6ed93e6..6151ebde 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb @@ -16,9 +16,6 @@ module CloudsmithApi class PackageVulnerability attr_accessor :identifier - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The name of this package. attr_accessor :name @@ -27,17 +24,13 @@ class PackageVulnerability # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'identifier' => :'identifier', - :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'url' => :'url', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -45,11 +38,9 @@ def self.attribute_map def self.swagger_types { :'identifier' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'url' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -65,10 +56,6 @@ def initialize(attributes = {}) self.identifier = attributes[:'identifier'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -80,10 +67,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -110,11 +93,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && identifier == o.identifier && - is_malware_detected == o.is_malware_detected && name == o.name && url == o.url && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -126,7 +107,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [identifier, is_malware_detected, name, url, version, vulnerability_counts].hash + [identifier, name, url, version].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 75e5221d..e98157f5 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 @@ -36,6 +36,9 @@ class PythonPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class PythonPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class PythonPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb index 36cd9561..dc1bcf91 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/python_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class PythonPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class PythonPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 39107546..2e69f788 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 @@ -36,6 +36,9 @@ class RawPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class RawPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class RawPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb index bc7aa494..d3031305 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload_request.rb @@ -20,9 +20,6 @@ class RawPackageUploadRequest # A textual description of this package. attr_accessor :description - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The name of this package. attr_accessor :name @@ -41,21 +38,17 @@ class RawPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'content_type' => :'content_type', :'description' => :'description', - :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'republish' => :'republish', :'summary' => :'summary', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -64,14 +57,12 @@ def self.swagger_types { :'content_type' => :'String', :'description' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'summary' => :'String', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -91,10 +82,6 @@ def initialize(attributes = {}) self.description = attributes[:'description'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -118,10 +105,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -149,14 +132,12 @@ def ==(o) self.class == o.class && content_type == o.content_type && description == o.description && - is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && republish == o.republish && summary == o.summary && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -168,7 +149,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [content_type, description, is_malware_detected, name, package_file, republish, summary, tags, version, vulnerability_counts].hash + [content_type, description, name, package_file, republish, summary, tags, version].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 1a2a66fe..b31b3f35 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 @@ -36,6 +36,9 @@ class RpmPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class RpmPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class RpmPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/rpm_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb index 8681cc1a..eb3f6961 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/rpm_package_upload_request.rb @@ -17,9 +17,6 @@ class RpmPackageUploadRequest # The distribution to store the package for. attr_accessor :distribution - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -29,17 +26,13 @@ class RpmPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'distribution' => :'distribution', - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end @@ -47,11 +40,9 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -67,10 +58,6 @@ def initialize(attributes = {}) self.distribution = attributes[:'distribution'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -82,10 +69,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -117,11 +100,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && distribution == o.distribution && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -133,7 +114,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [distribution, package_file, republish, tags].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 85bad6ff..df8d17cc 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 @@ -36,6 +36,9 @@ class RubyPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class RubyPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class RubyPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb index 58728218..e178976d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/ruby_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class RubyPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class RubyPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 677d3371..3c65eeff 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 @@ -42,6 +42,9 @@ class SwiftPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -84,9 +87,6 @@ class SwiftPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -238,8 +238,6 @@ class SwiftPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -279,6 +277,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -298,7 +297,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -360,7 +358,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -380,6 +377,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -399,7 +397,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -461,7 +458,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -524,6 +520,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -604,10 +604,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -856,10 +852,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -922,6 +914,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -941,7 +934,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -1003,7 +995,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -1016,7 +1007,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, 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, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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/swift_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb index 6a262e96..efe5d770 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/swift_package_upload_request.rb @@ -20,9 +20,6 @@ class SwiftPackageUploadRequest # The organization of the author. attr_accessor :author_org - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The license URL of this package. attr_accessor :license_url @@ -50,14 +47,11 @@ class SwiftPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'author_name' => :'author_name', :'author_org' => :'author_org', - :'is_malware_detected' => :'is_malware_detected', :'license_url' => :'license_url', :'name' => :'name', :'package_file' => :'package_file', @@ -66,8 +60,7 @@ def self.attribute_map :'republish' => :'republish', :'scope' => :'scope', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end @@ -76,7 +69,6 @@ def self.swagger_types { :'author_name' => :'String', :'author_org' => :'String', - :'is_malware_detected' => :'BOOLEAN', :'license_url' => :'String', :'name' => :'String', :'package_file' => :'String', @@ -85,8 +77,7 @@ def self.swagger_types :'republish' => :'BOOLEAN', :'scope' => :'String', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -106,10 +97,6 @@ def initialize(attributes = {}) self.author_org = attributes[:'author_org'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'license_url') self.license_url = attributes[:'license_url'] end @@ -145,10 +132,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -191,7 +174,6 @@ def ==(o) self.class == o.class && author_name == o.author_name && author_org == o.author_org && - is_malware_detected == o.is_malware_detected && license_url == o.license_url && name == o.name && package_file == o.package_file && @@ -200,8 +182,7 @@ def ==(o) republish == o.republish && scope == o.scope && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -213,7 +194,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [author_name, author_org, is_malware_detected, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version, vulnerability_counts].hash + [author_name, author_org, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version].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 c7856fea..a656c182 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 @@ -36,6 +36,9 @@ class TerraformPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class TerraformPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class TerraformPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb index 780a52d9..ebb83bb7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/terraform_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class TerraformPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class TerraformPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 052d2052..5d8fb882 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 @@ -36,6 +36,9 @@ class VagrantPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class VagrantPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -225,8 +225,6 @@ class VagrantPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -264,6 +262,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -283,7 +282,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -343,7 +341,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -361,6 +358,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -380,7 +378,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -440,7 +437,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -495,6 +491,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -575,10 +575,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -819,10 +815,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -883,6 +875,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -902,7 +895,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -962,7 +954,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -975,7 +966,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb index ff52aa5d..e9b8e5b5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class VagrantPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The name of this package. attr_accessor :name @@ -35,33 +32,27 @@ class VagrantPackageUploadRequest # The raw version for this package. attr_accessor :version - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'name' => :'name', :'package_file' => :'package_file', :'provider' => :'provider', :'republish' => :'republish', :'tags' => :'tags', - :'version' => :'version', - :'vulnerability_counts' => :'vulnerability_counts' + :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'package_file' => :'String', :'provider' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'version' => :'String' } end @@ -73,10 +64,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -100,10 +87,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -144,14 +127,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && name == o.name && package_file == o.package_file && provider == o.provider && republish == o.republish && tags == o.tags && - version == o.version && - vulnerability_counts == o.vulnerability_counts + version == o.version end # @see the `==` method @@ -163,7 +144,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, name, package_file, provider, republish, tags, version, vulnerability_counts].hash + [name, package_file, provider, republish, tags, version].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 0d05a747..02df7fe5 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 @@ -36,6 +36,9 @@ class VsxPackageUpload attr_accessor :display_name + # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). + attr_accessor :display_source + attr_accessor :distro attr_accessor :distro_version @@ -78,9 +81,6 @@ class VsxPackageUpload attr_accessor :is_hidden - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - attr_accessor :is_moveable attr_accessor :is_quarantinable @@ -222,8 +222,6 @@ class VsxPackageUpload attr_accessor :version_orig - attr_accessor :vulnerability_counts - attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -261,6 +259,7 @@ def self.attribute_map :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', + :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', @@ -280,7 +279,6 @@ def self.attribute_map :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', - :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', @@ -339,7 +337,6 @@ def self.attribute_map :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', - :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -357,6 +354,7 @@ def self.swagger_types :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', + :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', @@ -376,7 +374,6 @@ def self.swagger_types :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', - :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', @@ -435,7 +432,6 @@ def self.swagger_types :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -490,6 +486,10 @@ def initialize(attributes = {}) self.display_name = attributes[:'display_name'] end + if attributes.has_key?(:'display_source') + self.display_source = attributes[:'display_source'] + end + if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end @@ -570,10 +570,6 @@ def initialize(attributes = {}) self.is_hidden = attributes[:'is_hidden'] end - if attributes.has_key?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end @@ -810,10 +806,6 @@ def initialize(attributes = {}) self.version_orig = attributes[:'version_orig'] end - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end - if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end @@ -859,6 +851,7 @@ def ==(o) dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && + display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && @@ -878,7 +871,6 @@ def ==(o) is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && - is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && @@ -937,7 +929,6 @@ def ==(o) uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && - vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -950,7 +941,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_hidden, is_malware_detected, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, 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, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb index 2586804f..09f7c9ce 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vsx_package_upload_request.rb @@ -14,9 +14,6 @@ module CloudsmithApi class VsxPackageUploadRequest - # Whether the package has been detected as containing malware. Requires Ultra plan. - attr_accessor :is_malware_detected - # The primary file for the package. attr_accessor :package_file @@ -26,27 +23,21 @@ class VsxPackageUploadRequest # A comma-separated values list of tags to add to the package. attr_accessor :tags - attr_accessor :vulnerability_counts - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_malware_detected' => :'is_malware_detected', :'package_file' => :'package_file', :'republish' => :'republish', - :'tags' => :'tags', - :'vulnerability_counts' => :'vulnerability_counts' + :'tags' => :'tags' } end # Attribute type mapping. def self.swagger_types { - :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String', - :'vulnerability_counts' => :'WebOSVSeverityCounts' + :'tags' => :'String' } end @@ -58,10 +49,6 @@ 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?(:'is_malware_detected') - self.is_malware_detected = attributes[:'is_malware_detected'] - end - if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] end @@ -73,10 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - - if attributes.has_key?(:'vulnerability_counts') - self.vulnerability_counts = attributes[:'vulnerability_counts'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -102,11 +85,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_malware_detected == o.is_malware_detected && package_file == o.package_file && republish == o.republish && - tags == o.tags && - vulnerability_counts == o.vulnerability_counts + tags == o.tags end # @see the `==` method @@ -118,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash + [package_file, republish, tags].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 05a05956..db46321f 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.32' + VERSION = '2.0.33' end diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index ca0bcf74..430bd99d 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -32,6 +32,85 @@ end end + # unit tests for orgs_api_key_rules_create + # Create an API key rule. + # Create an API key rule. + # @param org + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [OrganizationApiKeyRule] + describe 'orgs_api_key_rules_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 orgs_api_key_rules_delete + # Delete an API key rule. + # Delete an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'orgs_api_key_rules_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 orgs_api_key_rules_list + # List all API key rules for the organization. + # List all API key rules for the organization. + # @param org + # @param [Hash] opts the optional parameters + # @return [Array] + describe 'orgs_api_key_rules_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_api_key_rules_partial_update + # Update an API key rule. + # Update an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequestPatch] :data + # @return [OrganizationApiKeyRule] + describe 'orgs_api_key_rules_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 orgs_api_key_rules_read + # Retrieve an API key rule. + # Retrieve an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [OrganizationApiKeyRule] + describe 'orgs_api_key_rules_read test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for orgs_api_key_rules_update + # Full update of an API key rule. + # Full update of an API key rule. + # @param org + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [OrganizationApiKeyRuleRequest] :data + # @return [OrganizationApiKeyRule] + describe 'orgs_api_key_rules_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 orgs_custom_domains_list # Get the details for all custom domains. # Get the details for all custom domains. diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index f4f7701a..ecd85c4a 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -105,7 +105,7 @@ # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. - # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, statuses or display sources (display_source:upstream, display_source:manual_upload, display_source:connected_repository) of packages. # @option opts [String] :sort A field for sorting objects in ascending or descending order. # @return [Array] describe 'packages_list test' do diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb index a898c7dd..71ce1aca 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb @@ -38,12 +38,6 @@ end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/alpine_package_upload_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb index 3b82dadc..df29c047 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb index ce493954..f1457b0b 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::CargoPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb index 2bad45f5..4717901e 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb index a86c1572..d0575bed 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::CocoapodsPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/cocoapods_package_upload_spec.rb b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb index 02c3ed76..e907199d 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb index ef6e8219..1a47f072 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::ComposerPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/composer_package_upload_spec.rb b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb index 116fe258..01f65364 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb index ecd9f727..5589ff88 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_request_spec.rb @@ -50,12 +50,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "manifest_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -98,10 +92,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/conan_package_upload_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb index b477bd3f..39c630e7 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb @@ -104,6 +104,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -218,12 +224,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -576,12 +576,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb index 859a04ab..acd13807 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::CondaPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb index 0feb2b0a..f47449d6 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/connected_repository_spec.rb b/bindings/ruby/src/spec/models/connected_repository_spec.rb index 568d0b1d..115b4f08 100644 --- a/bindings/ruby/src/spec/models/connected_repository_spec.rb +++ b/bindings/ruby/src/spec/models/connected_repository_spec.rb @@ -32,6 +32,18 @@ expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepository) end end + describe 'test attribute "can_view_target_repository_settings"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "configured_upstreams"' 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 @@ -78,4 +90,10 @@ end end + describe 'test attribute "target_repository_summary"' 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_target_summary_spec.rb b/bindings/ruby/src/spec/models/connected_repository_target_summary_spec.rb new file mode 100644 index 00000000..9523b495 --- /dev/null +++ b/bindings/ruby/src/spec/models/connected_repository_target_summary_spec.rb @@ -0,0 +1,59 @@ +=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::ConnectedRepositoryTargetSummary +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConnectedRepositoryTargetSummary' do + before do + # run before each test + @instance = CloudsmithApi::ConnectedRepositoryTargetSummary.new + end + + after do + # run after each test + end + + describe 'test an instance of ConnectedRepositoryTargetSummary' do + it 'should create an instance of ConnectedRepositoryTargetSummary' do + expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepositoryTargetSummary) + end + end + describe 'test attribute "is_private"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_public"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/connected_repository_upstream_spec.rb b/bindings/ruby/src/spec/models/connected_repository_upstream_spec.rb new file mode 100644 index 00000000..aa2c7776 --- /dev/null +++ b/bindings/ruby/src/spec/models/connected_repository_upstream_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::ConnectedRepositoryUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConnectedRepositoryUpstream' do + before do + # run before each test + @instance = CloudsmithApi::ConnectedRepositoryUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of ConnectedRepositoryUpstream' do + it 'should create an instance of ConnectedRepositoryUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::ConnectedRepositoryUpstream) + end + end + describe 'test attribute "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 "upstream_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb index 0d696dfa..fe20ae94 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb @@ -38,12 +38,6 @@ end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -68,10 +62,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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 ec9189f6..100285ea 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -570,12 +570,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb index e927501a..3fbfaf8f 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::DartPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/dart_package_upload_spec.rb b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb index 08643762..e3c055ae 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb index 136a832d..ddfe8a2c 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb @@ -50,12 +50,6 @@ end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -80,10 +74,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/deb_package_upload_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb index c1d826c2..fab12910 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb index e7576500..b2d880e7 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::DockerPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/docker_package_upload_spec.rb b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb index fc801e84..a30dd873 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb index 2474b51d..774ab93d 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_request_spec.rb @@ -38,12 +38,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -74,10 +68,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/generic_package_upload_spec.rb b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb index 2eac702a..df0c6553 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb index 8e13db4e..3112ecbc 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::GoPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/go_package_upload_spec.rb b/bindings/ruby/src/spec/models/go_package_upload_spec.rb index 2dd72561..c882ad84 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb index 9a033f3a..0799d92b 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::HelmPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/helm_package_upload_spec.rb b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb index 56aeb33f..5318ae65 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb index e2ed984d..605e9a9f 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::HexPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/hex_package_upload_spec.rb b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb index 694c5130..551fc26f 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb index c7dc1298..99c8209c 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::HuggingfacePackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb index 0a8c92f4..b68e6e54 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb index 0d461e36..2883344f 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::LuarocksPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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 00ab3ac1..5f4a1084 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb index 29135f2b..3832d141 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_request_spec.rb @@ -50,12 +50,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "ivy_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -128,10 +122,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/maven_package_upload_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb index 231fc11e..286fe371 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb @@ -98,6 +98,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -218,12 +224,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -594,12 +594,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb index 66cb00fd..19fd180d 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::McpPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/mcp_package_upload_spec.rb b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb index 1218a1e7..e82a2681 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb index 1cf4c953..29d4fd4d 100644 --- a/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/nix_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::NixPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "narinfo_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -68,10 +62,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/nix_package_upload_spec.rb b/bindings/ruby/src/spec/models/nix_package_upload_spec.rb index 6bd46f01..ec4bf203 100644 --- a/bindings/ruby/src/spec/models/nix_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/nix_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb index 14e57f86..eda889af 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::NpmPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "npm_dist_tag"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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 b6d5e2b5..89c029c9 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb index 7e70ac50..84a6c7df 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::NugetPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/nuget_package_upload_spec.rb b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb index ec3234ae..39ab1f89 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/organization_api_key_rule_request_patch_spec.rb b/bindings/ruby/src/spec/models/organization_api_key_rule_request_patch_spec.rb new file mode 100644 index 00000000..5719f3d4 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_api_key_rule_request_patch_spec.rb @@ -0,0 +1,69 @@ +=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::OrganizationApiKeyRuleRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationApiKeyRuleRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationApiKeyRuleRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationApiKeyRuleRequestPatch' do + it 'should create an instance of OrganizationApiKeyRuleRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationApiKeyRuleRequestPatch) + end + end + describe 'test attribute "enforce_refresh"' 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_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 "max_age_hours"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "refresh_immediately"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "rule_type"' 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', ["All Accounts", "Service Accounts", "User Accounts"]) + # validator.allowable_values.each do |value| + # expect { @instance.rule_type = value }.not_to raise_error + # end + end + end + +end diff --git a/bindings/ruby/src/spec/models/organization_api_key_rule_request_spec.rb b/bindings/ruby/src/spec/models/organization_api_key_rule_request_spec.rb new file mode 100644 index 00000000..c4c90a71 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_api_key_rule_request_spec.rb @@ -0,0 +1,69 @@ +=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::OrganizationApiKeyRuleRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationApiKeyRuleRequest' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationApiKeyRuleRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationApiKeyRuleRequest' do + it 'should create an instance of OrganizationApiKeyRuleRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationApiKeyRuleRequest) + end + end + describe 'test attribute "enforce_refresh"' 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_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 "max_age_hours"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "refresh_immediately"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "rule_type"' 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', ["All Accounts", "Service Accounts", "User Accounts"]) + # validator.allowable_values.each do |value| + # expect { @instance.rule_type = value }.not_to raise_error + # end + end + end + +end diff --git a/bindings/ruby/src/spec/models/organization_api_key_rule_spec.rb b/bindings/ruby/src/spec/models/organization_api_key_rule_spec.rb new file mode 100644 index 00000000..0cf8f9a4 --- /dev/null +++ b/bindings/ruby/src/spec/models/organization_api_key_rule_spec.rb @@ -0,0 +1,93 @@ +=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::OrganizationApiKeyRule +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrganizationApiKeyRule' do + before do + # run before each test + @instance = CloudsmithApi::OrganizationApiKeyRule.new + end + + after do + # run after each test + end + + describe 'test an instance of OrganizationApiKeyRule' do + it 'should create an instance of OrganizationApiKeyRule' do + expect(@instance).to be_instance_of(CloudsmithApi::OrganizationApiKeyRule) + 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 "enforce_refresh"' 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_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 "last_applied_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 "max_age_hours"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "rule_type"' 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', ["All Accounts", "Service Accounts", "User Accounts"]) + # validator.allowable_values.each do |value| + # expect { @instance.rule_type = 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 + + describe 'test attribute "slug_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb index 78ad7ecc..953d7753 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::P2PackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/p2_package_upload_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb index 10e5ff5c..1383776a 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_copy_request_spec.rb b/bindings/ruby/src/spec/models/package_copy_request_spec.rb index dba57d57..345a1d3b 100644 --- a/bindings/ruby/src/spec/models/package_copy_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_request_spec.rb @@ -38,22 +38,10 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "republish"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_copy_spec.rb b/bindings/ruby/src/spec/models/package_copy_spec.rb index a4057dd7..6fca75d3 100644 --- a/bindings/ruby/src/spec/models/package_copy_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -212,12 +218,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -576,12 +576,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_detail_spec.rb b/bindings/ruby/src/spec/models/package_detail_spec.rb index eb8e043e..c9bcf4b6 100644 --- a/bindings/ruby/src/spec/models/package_detail_spec.rb +++ b/bindings/ruby/src/spec/models/package_detail_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb b/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb index 27b131d6..7de70278 100644 --- a/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb +++ b/bindings/ruby/src/spec/models/package_license_request_patch_spec.rb @@ -42,12 +42,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "license_notes"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -76,10 +70,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_license_spec.rb b/bindings/ruby/src/spec/models/package_license_spec.rb index de9edd26..f6e39ef1 100644 --- a/bindings/ruby/src/spec/models/package_license_spec.rb +++ b/bindings/ruby/src/spec/models/package_license_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::PackageLicense) end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "license_notes"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -66,10 +60,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_move_request_spec.rb b/bindings/ruby/src/spec/models/package_move_request_spec.rb index 9c4f3f3d..cd484ac6 100644 --- a/bindings/ruby/src/spec/models/package_move_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_request_spec.rb @@ -38,16 +38,4 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_move_spec.rb b/bindings/ruby/src/spec/models/package_move_spec.rb index 2d808818..1eac24f1 100644 --- a/bindings/ruby/src/spec/models/package_move_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -212,12 +218,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -576,12 +576,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb b/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb index ad395abd..09d0e611 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::PackageQuarantineRequest) end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "release"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -50,10 +44,4 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_quarantine_spec.rb b/bindings/ruby/src/spec/models/package_quarantine_spec.rb index 443167ae..bbe44926 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -212,12 +218,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -570,12 +570,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_resync_spec.rb b/bindings/ruby/src/spec/models/package_resync_spec.rb index 8e1d249f..f2f7080f 100644 --- a/bindings/ruby/src/spec/models/package_resync_spec.rb +++ b/bindings/ruby/src/spec/models/package_resync_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -212,12 +218,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -576,12 +576,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_spec.rb b/bindings/ruby/src/spec/models/package_spec.rb index 0eb21ad0..3eca46b7 100644 --- a/bindings/ruby/src/spec/models/package_spec.rb +++ b/bindings/ruby/src/spec/models/package_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_tag_request_spec.rb b/bindings/ruby/src/spec/models/package_tag_request_spec.rb index 4626b2bd..710eccfb 100644 --- a/bindings/ruby/src/spec/models/package_tag_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_request_spec.rb @@ -48,22 +48,10 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "tags"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/bindings/ruby/src/spec/models/package_tag_spec.rb b/bindings/ruby/src/spec/models/package_tag_spec.rb index 9ca50533..af7b467a 100644 --- a/bindings/ruby/src/spec/models/package_tag_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -218,12 +224,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -576,12 +576,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/package_vulnerability_spec.rb b/bindings/ruby/src/spec/models/package_vulnerability_spec.rb index 52900c60..e1acc570 100644 --- a/bindings/ruby/src/spec/models/package_vulnerability_spec.rb +++ b/bindings/ruby/src/spec/models/package_vulnerability_spec.rb @@ -38,12 +38,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/python_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb index 43831904..cd88003a 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::PythonPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/python_package_upload_spec.rb b/bindings/ruby/src/spec/models/python_package_upload_spec.rb index 2ddb4c16..e9f611f2 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb index 599552ce..65133d2c 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_request_spec.rb @@ -44,12 +44,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -86,10 +80,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/raw_package_upload_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb index 4c50b71c..16897c04 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb index 7270d711..7a25435d 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb @@ -38,12 +38,6 @@ end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -62,10 +56,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/rpm_package_upload_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb index 08b80269..7ebcda35 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb index 9e08c7d3..7db22695 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::RubyPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/ruby_package_upload_spec.rb b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb index 4eaba6ae..ee3e4c5e 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb index edf1715e..f6a5a53b 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_request_spec.rb @@ -44,12 +44,6 @@ end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "license_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -104,10 +98,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/swift_package_upload_spec.rb b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb index ccc805ff..526e5689 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb @@ -104,6 +104,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -218,12 +224,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -594,12 +594,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb index 2a258b16..ae305dc3 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::TerraformPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/terraform_package_upload_spec.rb b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb index 70334952..5d96fdba 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb index ad742194..baae4b26 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::VagrantPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -74,10 +68,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/vagrant_package_upload_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb index e8766075..0e69a278 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -570,12 +570,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb index 551e2dea..a6ce9664 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_request_spec.rb @@ -32,12 +32,6 @@ expect(@instance).to be_instance_of(CloudsmithApi::VsxPackageUploadRequest) end end - describe 'test attribute "is_malware_detected"' 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_file"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -56,10 +50,4 @@ end end - describe 'test attribute "vulnerability_counts"' 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/vsx_package_upload_spec.rb b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb index fff6759c..ba75f21f 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb @@ -92,6 +92,12 @@ end end + describe 'test attribute "display_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distro"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -206,12 +212,6 @@ end end - describe 'test attribute "is_malware_detected"' 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 @@ -564,12 +564,6 @@ end end - describe 'test attribute "vulnerability_counts"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/scripts/common.sh b/scripts/common.sh index 489f72d0..7834d6a9 100755 --- 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.32" +package_version="2.0.33" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:v2.4.50" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2)