diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 94452b75..28e9badb 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.29 + 2.0.30 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.29" +compile "io.cloudsmith.api:cloudsmith-api:2.0.30" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.29.jar` +* `target/cloudsmith-api-2.0.30.jar` * `target/lib/*.jar` ## Getting Started @@ -649,6 +649,7 @@ Class | Method | HTTP request | Description - [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [PackageDependencies](docs/PackageDependencies.md) - [PackageDependency](docs/PackageDependency.md) + - [PackageDetail](docs/PackageDetail.md) - [PackageFile](docs/PackageFile.md) - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) @@ -786,6 +787,7 @@ Class | Method | HTTP request | Description - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 31982579..c08d2bea 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.29' +version = '2.0.30' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index 38a8a470..47d58d3d 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.29", + "artifactVersion": "2.0.30", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 4aae6d00..2fc79f3e 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.29", + version := "2.0.30", 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 2a612253..8539d0ad 100644 --- a/bindings/java/src/docs/AlpinePackageUpload.md +++ b/bindings/java/src/docs/AlpinePackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 c00c371e..fb0b8e27 100644 --- a/bindings/java/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/java/src/docs/AlpinePackageUploadRequest.md @@ -5,9 +5,11 @@ 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 7a6c4615..23ee6000 100644 --- a/bindings/java/src/docs/CargoPackageUpload.md +++ b/bindings/java/src/docs/CargoPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 ad438326..2630d5db 100644 --- a/bindings/java/src/docs/CargoPackageUploadRequest.md +++ b/bindings/java/src/docs/CargoPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 27a5b8c7..5d2359f1 100644 --- a/bindings/java/src/docs/CocoapodsPackageUpload.md +++ b/bindings/java/src/docs/CocoapodsPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 3348f107..0526ef3d 100644 --- a/bindings/java/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/java/src/docs/CocoapodsPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 27d11e20..63953f69 100644 --- a/bindings/java/src/docs/ComposerPackageUpload.md +++ b/bindings/java/src/docs/ComposerPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 a97362ba..e557e5c3 100644 --- a/bindings/java/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/java/src/docs/ComposerPackageUploadRequest.md @@ -4,10 +4,12 @@ ## 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 91845c45..97386bfc 100644 --- a/bindings/java/src/docs/ConanPackageUpload.md +++ b/bindings/java/src/docs/ConanPackageUpload.md @@ -35,6 +35,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 36824124..da033658 100644 --- a/bindings/java/src/docs/ConanPackageUploadRequest.md +++ b/bindings/java/src/docs/ConanPackageUploadRequest.md @@ -7,6 +7,7 @@ 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] @@ -14,6 +15,7 @@ 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 9e029984..8650cd43 100644 --- a/bindings/java/src/docs/CondaPackageUpload.md +++ b/bindings/java/src/docs/CondaPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 5c431c9e..0979ca7b 100644 --- a/bindings/java/src/docs/CondaPackageUploadRequest.md +++ b/bindings/java/src/docs/CondaPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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/CranPackageUpload.md b/bindings/java/src/docs/CranPackageUpload.md index 0570c660..29e25d87 100644 --- a/bindings/java/src/docs/CranPackageUpload.md +++ b/bindings/java/src/docs/CranPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 cfa0422c..65483a08 100644 --- a/bindings/java/src/docs/CranPackageUploadRequest.md +++ b/bindings/java/src/docs/CranPackageUploadRequest.md @@ -5,10 +5,12 @@ 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 a91454ac..53f7abcc 100644 --- a/bindings/java/src/docs/DartPackageUpload.md +++ b/bindings/java/src/docs/DartPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 5c4af18f..d93c4291 100644 --- a/bindings/java/src/docs/DartPackageUploadRequest.md +++ b/bindings/java/src/docs/DartPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 a5f09aa5..4c6877ff 100644 --- a/bindings/java/src/docs/DebPackageUpload.md +++ b/bindings/java/src/docs/DebPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 04d791ca..60cc22bb 100644 --- a/bindings/java/src/docs/DebPackageUploadRequest.md +++ b/bindings/java/src/docs/DebPackageUploadRequest.md @@ -7,10 +7,12 @@ 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 7f7cf718..3a5fc4a7 100644 --- a/bindings/java/src/docs/DockerPackageUpload.md +++ b/bindings/java/src/docs/DockerPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 7fbdf623..20a1e059 100644 --- a/bindings/java/src/docs/DockerPackageUploadRequest.md +++ b/bindings/java/src/docs/DockerPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 5b4d5de2..b3fba2c7 100644 --- a/bindings/java/src/docs/GenericPackageUpload.md +++ b/bindings/java/src/docs/GenericPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 d5906cee..3ca2a706 100644 --- a/bindings/java/src/docs/GenericPackageUploadRequest.md +++ b/bindings/java/src/docs/GenericPackageUploadRequest.md @@ -5,11 +5,13 @@ 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 d89095df..ab122179 100644 --- a/bindings/java/src/docs/GoPackageUpload.md +++ b/bindings/java/src/docs/GoPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 8c8c950e..e7021e80 100644 --- a/bindings/java/src/docs/GoPackageUploadRequest.md +++ b/bindings/java/src/docs/GoPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 eccfbe6e..bd1c258d 100644 --- a/bindings/java/src/docs/HelmPackageUpload.md +++ b/bindings/java/src/docs/HelmPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 739da846..156b27d6 100644 --- a/bindings/java/src/docs/HelmPackageUploadRequest.md +++ b/bindings/java/src/docs/HelmPackageUploadRequest.md @@ -4,10 +4,12 @@ ## 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 17507743..7271e53f 100644 --- a/bindings/java/src/docs/HexPackageUpload.md +++ b/bindings/java/src/docs/HexPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 cee3d8b0..88e262c4 100644 --- a/bindings/java/src/docs/HexPackageUploadRequest.md +++ b/bindings/java/src/docs/HexPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 dcd28faf..77d9a6aa 100644 --- a/bindings/java/src/docs/HuggingfacePackageUpload.md +++ b/bindings/java/src/docs/HuggingfacePackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 c3f612f2..9926221e 100644 --- a/bindings/java/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/java/src/docs/HuggingfacePackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 9c360e6e..8d090c03 100644 --- a/bindings/java/src/docs/LuarocksPackageUpload.md +++ b/bindings/java/src/docs/LuarocksPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 0646761b..1a8aa267 100644 --- a/bindings/java/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/java/src/docs/LuarocksPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 34588075..928a4e16 100644 --- a/bindings/java/src/docs/MavenPackageUpload.md +++ b/bindings/java/src/docs/MavenPackageUpload.md @@ -35,6 +35,7 @@ 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] @@ -88,12 +89,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 83c9acf8..1bbcb413 100644 --- a/bindings/java/src/docs/MavenPackageUploadRequest.md +++ b/bindings/java/src/docs/MavenPackageUploadRequest.md @@ -7,6 +7,7 @@ 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. | @@ -19,6 +20,7 @@ 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 9e010661..cebf3aa4 100644 --- a/bindings/java/src/docs/McpPackageUpload.md +++ b/bindings/java/src/docs/McpPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 7913223c..d72470cf 100644 --- a/bindings/java/src/docs/McpPackageUploadRequest.md +++ b/bindings/java/src/docs/McpPackageUploadRequest.md @@ -4,10 +4,12 @@ ## 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 51737e06..585f982c 100644 --- a/bindings/java/src/docs/ModelPackage.md +++ b/bindings/java/src/docs/ModelPackage.md @@ -34,6 +34,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerabilityScanResultsUrl** | **String** | | [optional] diff --git a/bindings/java/src/docs/NpmPackageUpload.md b/bindings/java/src/docs/NpmPackageUpload.md index 5e29bfd6..b78d11e7 100644 --- a/bindings/java/src/docs/NpmPackageUpload.md +++ b/bindings/java/src/docs/NpmPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 b3f94c1e..4ce3a24c 100644 --- a/bindings/java/src/docs/NpmPackageUploadRequest.md +++ b/bindings/java/src/docs/NpmPackageUploadRequest.md @@ -4,10 +4,12 @@ ## 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 98c7c520..c1b15c31 100644 --- a/bindings/java/src/docs/NugetPackageUpload.md +++ b/bindings/java/src/docs/NugetPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 53795056..e8475acf 100644 --- a/bindings/java/src/docs/NugetPackageUploadRequest.md +++ b/bindings/java/src/docs/NugetPackageUploadRequest.md @@ -4,10 +4,12 @@ ## 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/P2PackageUpload.md b/bindings/java/src/docs/P2PackageUpload.md index 043cbd29..ec85d445 100644 --- a/bindings/java/src/docs/P2PackageUpload.md +++ b/bindings/java/src/docs/P2PackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 3c011cc4..4404a853 100644 --- a/bindings/java/src/docs/P2PackageUploadRequest.md +++ b/bindings/java/src/docs/P2PackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 9c4dbe00..d7d5ab6d 100644 --- a/bindings/java/src/docs/PackageCopy.md +++ b/bindings/java/src/docs/PackageCopy.md @@ -34,6 +34,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 8b0c3349..94d6a0bf 100644 --- a/bindings/java/src/docs/PackageCopyRequest.md +++ b/bindings/java/src/docs/PackageCopyRequest.md @@ -5,7 +5,9 @@ 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 new file mode 100644 index 00000000..f99521b2 --- /dev/null +++ b/bindings/java/src/docs/PackageDetail.md @@ -0,0 +1,115 @@ + +# PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**List<Architecture>**](Architecture.md) | | [optional] +**cdnUrl** | **String** | | [optional] +**checksumMd5** | **String** | | [optional] +**checksumSha1** | **String** | | [optional] +**checksumSha256** | **String** | | [optional] +**checksumSha512** | **String** | | [optional] +**dependenciesChecksumMd5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependenciesUrl** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**displayName** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distroVersion** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **java.math.BigInteger** | | [optional] +**epoch** | **java.math.BigInteger** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**List<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**formatUrl** | **String** | | [optional] +**freeableStorage** | **java.math.BigInteger** | Amount of storage that will be freed if this package is deleted | [optional] +**fullyQualifiedName** | **String** | | [optional] +**hasDependencies** | **Boolean** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifierPerm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Map<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **Boolean** | | [optional] +**isCancellable** | **Boolean** | | [optional] +**isCopyable** | **Boolean** | | [optional] +**isDeleteable** | **Boolean** | | [optional] +**isDownloadable** | **Boolean** | | [optional] +**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] +**isResyncable** | **Boolean** | | [optional] +**isSecurityScannable** | **Boolean** | | [optional] +**isSyncAwaiting** | **Boolean** | | [optional] +**isSyncCompleted** | **Boolean** | | [optional] +**isSyncFailed** | **Boolean** | | [optional] +**isSyncInFlight** | **Boolean** | | [optional] +**isSyncInProgress** | **Boolean** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespaceUrl** | **String** | | [optional] +**numFiles** | **java.math.BigInteger** | | [optional] +**originRepository** | **String** | | [optional] +**originRepositoryUrl** | **String** | | [optional] +**osiApproved** | **Boolean** | Whether the package's SPDX license is OSI-approved. | [optional] +**packageType** | **java.math.BigInteger** | The type of package contents. | [optional] +**policyViolated** | **Boolean** | Whether or not the package has violated any policy. | [optional] +**rawLicense** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repositoryUrl** | **String** | | [optional] +**securityScanCompletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was completed. | [optional] +**securityScanStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning was started. | [optional] +**securityScanStatus** | [**SecurityScanStatusEnum**](#SecurityScanStatusEnum) | | [optional] +**securityScanStatusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the security scanning status was updated. | [optional] +**selfHtmlUrl** | **String** | | [optional] +**selfUrl** | **String** | | [optional] +**selfWebappUrl** | **String** | | [optional] +**signatureUrl** | **String** | | [optional] +**size** | **java.math.BigInteger** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slugPerm** | **String** | | [optional] +**spdxLicense** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **java.math.BigInteger** | The synchronisation (in progress) stage of the package. | [optional] +**stageStr** | **String** | | [optional] +**stageUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package stage was updated at. | [optional] +**status** | **java.math.BigInteger** | The synchronisation status of the package. | [optional] +**statusReason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**statusStr** | **String** | | [optional] +**statusUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package status was updated at. | [optional] +**statusUrl** | **String** | | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**syncFinishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the package sync was finished at. | [optional] +**syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tagsAutomatic** | [**Tags**](Tags.md) | | [optional] +**tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] +**typeDisplay** | **String** | | [optional] +**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploaderUrl** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**versionOrig** | **String** | | [optional] +**vulnerabilityCounts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerabilityScanResultsUrl** | **String** | | [optional] + + + +## Enum: SecurityScanStatusEnum +Name | Value +---- | ----- +AWAITING_SECURITY_SCAN | "Awaiting Security Scan" +SECURITY_SCANNING_IN_PROGRESS | "Security Scanning in Progress" +SCAN_DETECTED_VULNERABILITIES | "Scan Detected Vulnerabilities" +SCAN_DETECTED_NO_VULNERABILITIES | "Scan Detected No Vulnerabilities" +SECURITY_SCANNING_DISABLED | "Security Scanning Disabled" +SECURITY_SCANNING_FAILED | "Security Scanning Failed" +SECURITY_SCANNING_SKIPPED | "Security Scanning Skipped" +SECURITY_SCANNING_NOT_SUPPORTED | "Security Scanning Not Supported" + + + diff --git a/bindings/java/src/docs/PackageLicense.md b/bindings/java/src/docs/PackageLicense.md index 74ce2a1b..2b18b819 100644 --- a/bindings/java/src/docs/PackageLicense.md +++ b/bindings/java/src/docs/PackageLicense.md @@ -4,10 +4,12 @@ ## 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 98f935a7..8c3868c4 100644 --- a/bindings/java/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/java/src/docs/PackageLicenseRequestPatch.md @@ -5,10 +5,12 @@ 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** | | [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 9b23b35e..73fa00e1 100644 --- a/bindings/java/src/docs/PackageMove.md +++ b/bindings/java/src/docs/PackageMove.md @@ -34,6 +34,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 b19321e3..7e8bf7cd 100644 --- a/bindings/java/src/docs/PackageMoveRequest.md +++ b/bindings/java/src/docs/PackageMoveRequest.md @@ -5,6 +5,8 @@ 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 c3fd4173..e68558ce 100644 --- a/bindings/java/src/docs/PackageQuarantine.md +++ b/bindings/java/src/docs/PackageQuarantine.md @@ -34,6 +34,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 ba057859..3daffe64 100644 --- a/bindings/java/src/docs/PackageQuarantineRequest.md +++ b/bindings/java/src/docs/PackageQuarantineRequest.md @@ -4,8 +4,10 @@ ## 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 82330ee3..6f3f3910 100644 --- a/bindings/java/src/docs/PackageResync.md +++ b/bindings/java/src/docs/PackageResync.md @@ -34,6 +34,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 8a17f582..c7075669 100644 --- a/bindings/java/src/docs/PackageTag.md +++ b/bindings/java/src/docs/PackageTag.md @@ -35,6 +35,7 @@ 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] @@ -85,12 +86,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 b2162981..004c5341 100644 --- a/bindings/java/src/docs/PackageTagRequest.md +++ b/bindings/java/src/docs/PackageTagRequest.md @@ -6,7 +6,9 @@ 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 eabbaeb6..7108ce56 100644 --- a/bindings/java/src/docs/PackageVulnerability.md +++ b/bindings/java/src/docs/PackageVulnerability.md @@ -5,9 +5,11 @@ 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 ed49fec1..08db06fa 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -554,7 +554,7 @@ Name | Type | Description | Notes # **packagesRead** -> ModelPackage packagesRead(owner, repo, identifier, includeConnectedRepositories) +> PackageDetail packagesRead(owner, repo, identifier, includeConnectedRepositories) Get a specific package in a repository. @@ -588,7 +588,7 @@ String repo = "repo_example"; // String | String identifier = "identifier_example"; // String | 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. try { - ModelPackage result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories); + PackageDetail result = apiInstance.packagesRead(owner, repo, identifier, includeConnectedRepositories); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PackagesApi#packagesRead"); @@ -607,7 +607,7 @@ Name | Type | Description | Notes ### Return type -[**ModelPackage**](ModelPackage.md) +[**PackageDetail**](PackageDetail.md) ### Authorization diff --git a/bindings/java/src/docs/PythonPackageUpload.md b/bindings/java/src/docs/PythonPackageUpload.md index 9d6f064c..f32dc11b 100644 --- a/bindings/java/src/docs/PythonPackageUpload.md +++ b/bindings/java/src/docs/PythonPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 7b1fd06e..8ee014a6 100644 --- a/bindings/java/src/docs/PythonPackageUploadRequest.md +++ b/bindings/java/src/docs/PythonPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 e8973f52..3a7884ad 100644 --- a/bindings/java/src/docs/RawPackageUpload.md +++ b/bindings/java/src/docs/RawPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 b3f8d245..1248040d 100644 --- a/bindings/java/src/docs/RawPackageUploadRequest.md +++ b/bindings/java/src/docs/RawPackageUploadRequest.md @@ -6,12 +6,14 @@ 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/RecycleBinPackage.md b/bindings/java/src/docs/RecycleBinPackage.md index 993605a6..224034e7 100644 --- a/bindings/java/src/docs/RecycleBinPackage.md +++ b/bindings/java/src/docs/RecycleBinPackage.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **identifiers** | **Map<String, String>** | | [optional] **invokedRetentionRule** | **Map<String, String>** | Information about the retention rule that triggered deletion (if any). | [optional] **isDeleteable** | **Boolean** | | [optional] +**isMalwareDetected** | **Boolean** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **isQuarantined** | **Boolean** | | [optional] **isRestorable** | **Boolean** | | [optional] **name** | **String** | The name of this package. | [optional] @@ -28,6 +29,7 @@ Name | Type | Description | Notes **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [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 b0aafae1..1f5e55dc 100644 --- a/bindings/java/src/docs/RpmPackageUpload.md +++ b/bindings/java/src/docs/RpmPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 b8f5b131..3535d883 100644 --- a/bindings/java/src/docs/RpmPackageUploadRequest.md +++ b/bindings/java/src/docs/RpmPackageUploadRequest.md @@ -5,9 +5,11 @@ 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 b26b3155..d39af6ce 100644 --- a/bindings/java/src/docs/RubyPackageUpload.md +++ b/bindings/java/src/docs/RubyPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 8334a937..87c31cee 100644 --- a/bindings/java/src/docs/RubyPackageUploadRequest.md +++ b/bindings/java/src/docs/RubyPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 bf5b425a..e71476a3 100644 --- a/bindings/java/src/docs/SwiftPackageUpload.md +++ b/bindings/java/src/docs/SwiftPackageUpload.md @@ -35,6 +35,7 @@ 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] @@ -88,12 +89,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **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 e88e2522..a2adb852 100644 --- a/bindings/java/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/java/src/docs/SwiftPackageUploadRequest.md @@ -6,6 +6,7 @@ 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. | @@ -15,6 +16,7 @@ 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 8a3611a7..243f4174 100644 --- a/bindings/java/src/docs/TerraformPackageUpload.md +++ b/bindings/java/src/docs/TerraformPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 f7156034..a0ed0526 100644 --- a/bindings/java/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/java/src/docs/TerraformPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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 0a285ca0..6d0ce14c 100644 --- a/bindings/java/src/docs/VagrantPackageUpload.md +++ b/bindings/java/src/docs/VagrantPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | **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 ec4a6fed..59a617d1 100644 --- a/bindings/java/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/java/src/docs/VagrantPackageUploadRequest.md @@ -4,12 +4,14 @@ ## 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 7d3792fc..70814db2 100644 --- a/bindings/java/src/docs/VsxPackageUpload.md +++ b/bindings/java/src/docs/VsxPackageUpload.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **syncProgress** | **java.math.BigInteger** | Synchronisation progress (from 0-100) | [optional] **tagsAutomatic** | [**Tags**](Tags.md) | | [optional] **tagsImmutable** | [**Tags**](Tags.md) | | [optional] +**tagsStatic** | [**Map<String, List<String>>**](List.md) | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **typeDisplay** | **String** | | [optional] **uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploaderUrl** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **versionOrig** | **String** | | [optional] +**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 4befe199..9cd6a0c3 100644 --- a/bindings/java/src/docs/VsxPackageUploadRequest.md +++ b/bindings/java/src/docs/VsxPackageUploadRequest.md @@ -4,9 +4,11 @@ ## 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/WebOSVSeverityCounts.md b/bindings/java/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..5aea42e8 --- /dev/null +++ b/bindings/java/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,16 @@ + +# WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **java.math.BigInteger** | | [optional] +**high** | **java.math.BigInteger** | | [optional] +**low** | **java.math.BigInteger** | | [optional] +**malware** | **java.math.BigInteger** | | [optional] +**medium** | **java.math.BigInteger** | | [optional] +**total** | **java.math.BigInteger** | | [optional] +**unknown** | **java.math.BigInteger** | | [optional] + + + diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 114f89af..c3b0905b 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.29 + 2.0.30 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 41636664..2f441ca0 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.29/java"); + setUserAgent("Swagger-Codegen/2.0.30/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java index feee9882..aaf85f77 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java @@ -329,6 +329,8 @@ import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; import okio.ByteString; import java.io.IOException; diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index aa0c37e7..9d616804 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 @@ -84,6 +84,7 @@ import io.cloudsmith.api.models.PackageCopy; import io.cloudsmith.api.models.PackageCopyRequest; import io.cloudsmith.api.models.PackageDependencies; +import io.cloudsmith.api.models.PackageDetail; import io.cloudsmith.api.models.PackageLicenseRequestPatch; import io.cloudsmith.api.models.PackageMove; import io.cloudsmith.api.models.PackageMoveRequest; @@ -1360,11 +1361,11 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St * @param repo (required) * @param identifier (required) * @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) - * @return ModelPackage + * @return PackageDetail * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ModelPackage packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { - ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); + public PackageDetail packagesRead(String owner, String repo, String identifier, Boolean includeConnectedRepositories) throws ApiException { + ApiResponse resp = packagesReadWithHttpInfo(owner, repo, identifier, includeConnectedRepositories); return resp.getData(); } @@ -1375,12 +1376,12 @@ public ModelPackage packagesRead(String owner, String repo, String identifier, B * @param repo (required) * @param identifier (required) * @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) - * @return ApiResponse<ModelPackage> + * @return ApiResponse<PackageDetail> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { + public ApiResponse packagesReadWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String identifier, Boolean includeConnectedRepositories) throws ApiException { com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1395,7 +1396,7 @@ public ApiResponse packagesReadWithHttpInfo( @NotNull String owner * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call packagesReadAsync(String owner, String repo, String identifier, Boolean includeConnectedRepositories, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1417,7 +1418,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = packagesReadValidateBeforeCall(owner, repo, identifier, includeConnectedRepositories, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java index 44181789..ba45cdab 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, alpinePackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, alpinePackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, alpinePackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, alpinePackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, alpinePackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, alpinePackageUpload.uploadedAt) && Objects.equals(this.uploader, alpinePackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 20cc88e2..ec816af0 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ 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; @@ -46,6 +50,9 @@ 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; @@ -65,6 +72,15 @@ 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; @@ -120,6 +136,25 @@ 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) { @@ -131,14 +166,16 @@ 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.tags, alpinePackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, alpinePackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(distribution, packageFile, republish, tags); + return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -148,9 +185,11 @@ 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 04630769..90849773 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, cargoPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cargoPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cargoPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cargoPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cargoPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cargoPackageUpload.uploadedAt) && Objects.equals(this.uploader, cargoPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 6d565170..eeaade10 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CargoPackageUploadRequest cargoPackageUploadRequest = (CargoPackageUploadRequest) o; - return Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, cargoPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, cargoPackageUploadRequest.packageFile) && Objects.equals(this.republish, cargoPackageUploadRequest.republish) && - Objects.equals(this.tags, cargoPackageUploadRequest.tags); + Objects.equals(this.tags, cargoPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cargoPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 94759839..65f2b88f 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, cocoapodsPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cocoapodsPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cocoapodsPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cocoapodsPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cocoapodsPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cocoapodsPackageUpload.uploadedAt) && Objects.equals(this.uploader, cocoapodsPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 db2816f5..085fcc65 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CocoapodsPackageUploadRequest cocoapodsPackageUploadRequest = (CocoapodsPackageUploadRequest) o; - return Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, cocoapodsPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, cocoapodsPackageUploadRequest.packageFile) && Objects.equals(this.republish, cocoapodsPackageUploadRequest.republish) && - Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags); + Objects.equals(this.tags, cocoapodsPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cocoapodsPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 599fb50e..b24a3774 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1184,6 +1213,25 @@ 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 @@ -1232,6 +1280,7 @@ 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) && @@ -1282,18 +1331,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, composerPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, composerPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, composerPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, composerPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, composerPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, composerPackageUpload.uploadedAt) && Objects.equals(this.uploader, composerPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1331,6 +1382,7 @@ 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"); @@ -1381,12 +1433,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 bffbeaea..80cb7485 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -46,6 +50,18 @@ 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; @@ -119,6 +135,25 @@ 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) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } ComposerPackageUploadRequest composerPackageUploadRequest = (ComposerPackageUploadRequest) o; - return Objects.equals(this.packageFile, composerPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, composerPackageUploadRequest.isMalwareDetected) && + 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.version, composerPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, composerPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags, version); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -146,10 +183,12 @@ 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 a1f86653..a2b362d8 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,6 +25,7 @@ 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; @@ -137,6 +138,9 @@ 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; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -686,6 +696,15 @@ 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 @@ -1171,6 +1190,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1235,6 +1264,25 @@ 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 @@ -1285,6 +1333,7 @@ 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) && @@ -1335,18 +1384,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, conanPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, conanPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, conanPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, conanPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, conanPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, conanPackageUpload.uploadedAt) && Objects.equals(this.uploader, conanPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1386,6 +1437,7 @@ 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"); @@ -1436,12 +1488,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 1d856129..398d5568 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -43,6 +44,9 @@ 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; @@ -64,6 +68,9 @@ 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; @@ -119,6 +126,15 @@ 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; @@ -248,6 +264,25 @@ 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) { @@ -261,18 +296,20 @@ 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.version, conanPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, conanPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(conanChannel, conanPrefix, infoFile, manifestFile, metadataFile, name, packageFile, republish, tags, version); + return Objects.hash(conanChannel, conanPrefix, infoFile, isMalwareDetected, manifestFile, metadataFile, name, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -284,6 +321,7 @@ 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"); @@ -291,6 +329,7 @@ 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 b8708f79..b7172f12 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, condaPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, condaPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, condaPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, condaPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, condaPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, condaPackageUpload.uploadedAt) && Objects.equals(this.uploader, condaPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 05b2581d..a5370a3f 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } CondaPackageUploadRequest condaPackageUploadRequest = (CondaPackageUploadRequest) o; - return Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, condaPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, condaPackageUploadRequest.packageFile) && Objects.equals(this.republish, condaPackageUploadRequest.republish) && - Objects.equals(this.tags, condaPackageUploadRequest.tags); + Objects.equals(this.tags, condaPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, condaPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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/CranPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CranPackageUpload.java index 3a754b05..5bc9cedd 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -343,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +368,9 @@ 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; @@ -647,6 +657,15 @@ 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 @@ -1141,6 +1160,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1196,6 +1225,25 @@ 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 @@ -1244,6 +1292,7 @@ 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) && @@ -1295,18 +1344,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, cranPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, cranPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, cranPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, cranPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, cranPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, cranPackageUpload.uploadedAt) && Objects.equals(this.uploader, cranPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rVersion, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1344,6 +1395,7 @@ 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"); @@ -1395,12 +1447,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 acc8b9e0..91dda247 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ 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; @@ -49,6 +53,9 @@ 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; @@ -67,6 +74,15 @@ 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; @@ -140,6 +156,25 @@ 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) { @@ -151,15 +186,17 @@ 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.tags, cranPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, cranPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(architecture, packageFile, rVersion, republish, tags); + return Objects.hash(architecture, isMalwareDetected, packageFile, rVersion, republish, tags, vulnerabilityCounts); } @@ -169,10 +206,12 @@ 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 de3dd595..e37ab0b7 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, dartPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, dartPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, dartPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, dartPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, dartPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, dartPackageUpload.uploadedAt) && Objects.equals(this.uploader, dartPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 2998fc9e..2b0dc859 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } DartPackageUploadRequest dartPackageUploadRequest = (DartPackageUploadRequest) o; - return Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, dartPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, dartPackageUploadRequest.packageFile) && Objects.equals(this.republish, dartPackageUploadRequest.republish) && - Objects.equals(this.tags, dartPackageUploadRequest.tags); + Objects.equals(this.tags, dartPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, dartPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 7f819ca8..99547540 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, debPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, debPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, debPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, debPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, debPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, debPackageUpload.uploadedAt) && Objects.equals(this.uploader, debPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 38b1174b..512162f5 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -43,6 +44,9 @@ 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; @@ -55,6 +59,9 @@ 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; @@ -110,6 +117,15 @@ 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; @@ -183,6 +199,25 @@ 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) { @@ -196,15 +231,17 @@ 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.tags, debPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, debPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(changesFile, component, distribution, packageFile, republish, sourcesFile, tags); + return Objects.hash(changesFile, component, distribution, isMalwareDetected, packageFile, republish, sourcesFile, tags, vulnerabilityCounts); } @@ -216,10 +253,12 @@ 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 715933df..4440ec8f 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, dockerPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, dockerPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, dockerPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, dockerPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, dockerPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, dockerPackageUpload.uploadedAt) && Objects.equals(this.uploader, dockerPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 b69be1b8..7634396e 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } DockerPackageUploadRequest dockerPackageUploadRequest = (DockerPackageUploadRequest) o; - return Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, dockerPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, dockerPackageUploadRequest.packageFile) && Objects.equals(this.republish, dockerPackageUploadRequest.republish) && - Objects.equals(this.tags, dockerPackageUploadRequest.tags); + Objects.equals(this.tags, dockerPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, dockerPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 93f9c611..4e6b88c6 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1129,6 +1148,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1193,6 +1222,25 @@ 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 @@ -1241,6 +1289,7 @@ 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) && @@ -1291,18 +1340,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, genericPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, genericPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, genericPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, genericPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, genericPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, genericPackageUpload.uploadedAt) && Objects.equals(this.uploader, genericPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1340,6 +1391,7 @@ 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"); @@ -1390,12 +1442,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 a9851f18..337be887 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ 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; @@ -52,6 +56,9 @@ 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; @@ -71,6 +78,15 @@ 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; @@ -162,6 +178,25 @@ 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) { @@ -173,16 +208,18 @@ 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.version, genericPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, genericPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(filepath, name, packageFile, republish, tags, version); + return Objects.hash(filepath, isMalwareDetected, name, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -192,11 +229,13 @@ 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 a2c6cb46..b9c2fcb3 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, goPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, goPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, goPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, goPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, goPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, goPackageUpload.uploadedAt) && Objects.equals(this.uploader, goPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 dd6e95a4..5580e005 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } GoPackageUploadRequest goPackageUploadRequest = (GoPackageUploadRequest) o; - return Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, goPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, goPackageUploadRequest.packageFile) && Objects.equals(this.republish, goPackageUploadRequest.republish) && - Objects.equals(this.tags, goPackageUploadRequest.tags); + Objects.equals(this.tags, goPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, goPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 153ceb80..66edee1c 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, helmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, helmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, helmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, helmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, helmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, helmPackageUpload.uploadedAt) && Objects.equals(this.uploader, helmPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 1dc8c137..66cb99a6 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -46,6 +50,18 @@ 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; @@ -119,6 +135,25 @@ 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) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } HelmPackageUploadRequest helmPackageUploadRequest = (HelmPackageUploadRequest) o; - return Objects.equals(this.packageFile, helmPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, helmPackageUploadRequest.isMalwareDetected) && + 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.tags, helmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, helmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, provenanceFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, provenanceFile, republish, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ 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 df8a18ad..68a10b4e 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, hexPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, hexPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, hexPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, hexPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, hexPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, hexPackageUpload.uploadedAt) && Objects.equals(this.uploader, hexPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 9032393a..36f95698 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } HexPackageUploadRequest hexPackageUploadRequest = (HexPackageUploadRequest) o; - return Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, hexPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, hexPackageUploadRequest.packageFile) && Objects.equals(this.republish, hexPackageUploadRequest.republish) && - Objects.equals(this.tags, hexPackageUploadRequest.tags); + Objects.equals(this.tags, hexPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, hexPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 c046bb7c..d53d45dc 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, huggingfacePackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, huggingfacePackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, huggingfacePackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, huggingfacePackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, huggingfacePackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, huggingfacePackageUpload.uploadedAt) && Objects.equals(this.uploader, huggingfacePackageUpload.uploader) && Objects.equals(this.uploaderUrl, huggingfacePackageUpload.uploaderUrl) && Objects.equals(this.version, huggingfacePackageUpload.version) && Objects.equals(this.versionOrig, huggingfacePackageUpload.versionOrig) && + Objects.equals(this.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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 2f1e3bb8..5a498021 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } HuggingfacePackageUploadRequest huggingfacePackageUploadRequest = (HuggingfacePackageUploadRequest) o; - return Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, huggingfacePackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, huggingfacePackageUploadRequest.packageFile) && Objects.equals(this.republish, huggingfacePackageUploadRequest.republish) && - Objects.equals(this.tags, huggingfacePackageUploadRequest.tags); + Objects.equals(this.tags, huggingfacePackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, huggingfacePackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 c6a3ce30..806a5855 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, luarocksPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, luarocksPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, luarocksPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, luarocksPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, luarocksPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, luarocksPackageUpload.uploadedAt) && Objects.equals(this.uploader, luarocksPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 3b891613..e988cd5c 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } LuarocksPackageUploadRequest luarocksPackageUploadRequest = (LuarocksPackageUploadRequest) o; - return Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, luarocksPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, luarocksPackageUploadRequest.packageFile) && Objects.equals(this.republish, luarocksPackageUploadRequest.republish) && - Objects.equals(this.tags, luarocksPackageUploadRequest.tags); + Objects.equals(this.tags, luarocksPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, luarocksPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 1a61897d..5eb0eaa8 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,6 +25,7 @@ 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; @@ -137,6 +138,9 @@ 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; @@ -355,6 +359,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -373,6 +380,9 @@ 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; @@ -695,6 +705,15 @@ 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,6 +1244,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1289,6 +1318,25 @@ 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 @@ -1339,6 +1387,7 @@ 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) && @@ -1392,18 +1441,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, mavenPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, mavenPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, mavenPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, mavenPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, mavenPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, mavenPackageUpload.uploadedAt) && Objects.equals(this.uploader, mavenPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, packaging, policyViolated, rawLicense, release, repository, repositoryUrl, sbtVersion, scalaVersion, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1443,6 +1494,7 @@ 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"); @@ -1496,12 +1548,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 6be42ece..800728d8 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -45,6 +46,9 @@ 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; @@ -81,6 +85,9 @@ 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; @@ -143,6 +150,15 @@ 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; @@ -360,6 +376,25 @@ 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) { @@ -373,6 +408,7 @@ 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) && @@ -384,12 +420,13 @@ 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.version, mavenPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, mavenPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(artifactId, extraFiles, groupId, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version); + return Objects.hash(artifactId, extraFiles, groupId, isMalwareDetected, ivyFile, javadocFile, packageFile, packaging, pomFile, republish, sbtVersion, scalaVersion, sourcesFile, tags, testsFile, version, vulnerabilityCounts); } @@ -401,6 +438,7 @@ 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"); @@ -413,6 +451,7 @@ 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 963bc363..2afcb933 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1184,6 +1213,25 @@ 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 @@ -1232,6 +1280,7 @@ 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) && @@ -1282,18 +1331,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, mcpPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, mcpPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, mcpPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, mcpPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, mcpPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, mcpPackageUpload.uploadedAt) && Objects.equals(this.uploader, mcpPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1331,6 +1382,7 @@ 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"); @@ -1381,12 +1433,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 997dcdb7..e17d2c8c 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -46,6 +50,18 @@ 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; @@ -119,6 +135,25 @@ 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) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } McpPackageUploadRequest mcpPackageUploadRequest = (McpPackageUploadRequest) o; - return Objects.equals(this.packageFile, mcpPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, mcpPackageUploadRequest.isMalwareDetected) && + 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.version, mcpPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, mcpPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags, version); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, version, vulnerabilityCounts); } @@ -146,10 +183,12 @@ 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 33c84dca..27b58851 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 @@ -25,6 +25,7 @@ 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; @@ -134,6 +135,9 @@ public class ModelPackage implements Serializable { @SerializedName("is_hidden") private Boolean isHidden = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_moveable") private Boolean isMoveable = null; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -659,6 +669,15 @@ 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 @@ -1154,6 +1173,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1238,25 @@ public String getVersionOrig() { return versionOrig; } + public ModelPackage 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 @@ -1258,6 +1306,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.isDeleteable, _package.isDeleteable) && Objects.equals(this.isDownloadable, _package.isDownloadable) && Objects.equals(this.isHidden, _package.isHidden) && + Objects.equals(this.isMalwareDetected, _package.isMalwareDetected) && Objects.equals(this.isMoveable, _package.isMoveable) && Objects.equals(this.isQuarantinable, _package.isQuarantinable) && Objects.equals(this.isQuarantined, _package.isQuarantined) && @@ -1309,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, _package.tags) && Objects.equals(this.tagsAutomatic, _package.tagsAutomatic) && Objects.equals(this.tagsImmutable, _package.tagsImmutable) && + Objects.equals(this.tagsStatic, _package.tagsStatic) && Objects.equals(this.typeDisplay, _package.typeDisplay) && Objects.equals(this.uploadedAt, _package.uploadedAt) && Objects.equals(this.uploader, _package.uploader) && Objects.equals(this.uploaderUrl, _package.uploaderUrl) && Objects.equals(this.version, _package.version) && Objects.equals(this.versionOrig, _package.versionOrig) && + Objects.equals(this.vulnerabilityCounts, _package.vulnerabilityCounts) && Objects.equals(this.vulnerabilityScanResultsUrl, _package.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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1410,7 @@ 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"); @@ -1410,12 +1462,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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/NpmPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/NpmPackageUpload.java index fb92fc09..ddd0d532 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, npmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, npmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, npmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, npmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, npmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, npmPackageUpload.uploadedAt) && Objects.equals(this.uploader, npmPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 3602a596..9ad05e9e 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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"; @@ -46,6 +50,18 @@ 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; @@ -119,6 +135,25 @@ 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) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } NpmPackageUploadRequest npmPackageUploadRequest = (NpmPackageUploadRequest) o; - return Objects.equals(this.npmDistTag, npmPackageUploadRequest.npmDistTag) && + return Objects.equals(this.isMalwareDetected, npmPackageUploadRequest.isMalwareDetected) && + 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.tags, npmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, npmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(npmDistTag, packageFile, republish, tags); + return Objects.hash(isMalwareDetected, npmDistTag, packageFile, republish, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ 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 7a022371..e2da8984 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, nugetPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, nugetPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, nugetPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, nugetPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, nugetPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, nugetPackageUpload.uploadedAt) && Objects.equals(this.uploader, nugetPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 564879e1..d948e68f 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -46,6 +50,18 @@ 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; @@ -119,6 +135,25 @@ 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) { @@ -129,15 +164,17 @@ public boolean equals(java.lang.Object o) { return false; } NugetPackageUploadRequest nugetPackageUploadRequest = (NugetPackageUploadRequest) o; - return Objects.equals(this.packageFile, nugetPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, nugetPackageUploadRequest.isMalwareDetected) && + 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.tags, nugetPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, nugetPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, symbolsFile, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, symbolsFile, tags, vulnerabilityCounts); } @@ -146,10 +183,12 @@ 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/P2PackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/P2PackageUpload.java index 856fc231..29f47c8c 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, p2PackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, p2PackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, p2PackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, p2PackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, p2PackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, p2PackageUpload.uploadedAt) && Objects.equals(this.uploader, p2PackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 e4e6a5f5..1c6d6f13 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } P2PackageUploadRequest p2PackageUploadRequest = (P2PackageUploadRequest) o; - return Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, p2PackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, p2PackageUploadRequest.packageFile) && Objects.equals(this.republish, p2PackageUploadRequest.republish) && - Objects.equals(this.tags, p2PackageUploadRequest.tags); + Objects.equals(this.tags, p2PackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, p2PackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 3aea27b2..0adc6cfc 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,6 +25,7 @@ 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; @@ -134,6 +135,9 @@ 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; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -659,6 +669,15 @@ 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 @@ -1154,6 +1173,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1238,25 @@ 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 @@ -1258,6 +1306,7 @@ 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) && @@ -1309,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageCopy.tags) && Objects.equals(this.tagsAutomatic, packageCopy.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageCopy.tagsImmutable) && + Objects.equals(this.tagsStatic, packageCopy.tagsStatic) && Objects.equals(this.typeDisplay, packageCopy.typeDisplay) && Objects.equals(this.uploadedAt, packageCopy.uploadedAt) && Objects.equals(this.uploader, packageCopy.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1410,7 @@ 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"); @@ -1410,12 +1462,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 978a9d53..926fc714 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,9 +38,15 @@ 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; @@ -59,6 +66,15 @@ 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; @@ -77,6 +93,25 @@ 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) { @@ -88,12 +123,14 @@ public boolean equals(java.lang.Object o) { } PackageCopyRequest packageCopyRequest = (PackageCopyRequest) o; return Objects.equals(this.destination, packageCopyRequest.destination) && - Objects.equals(this.republish, packageCopyRequest.republish); + Objects.equals(this.isMalwareDetected, packageCopyRequest.isMalwareDetected) && + Objects.equals(this.republish, packageCopyRequest.republish) && + Objects.equals(this.vulnerabilityCounts, packageCopyRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(destination, republish); + return Objects.hash(destination, isMalwareDetected, republish, vulnerabilityCounts); } @@ -103,7 +140,9 @@ 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 new file mode 100644 index 00000000..d309b97f --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java @@ -0,0 +1,1504 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.Architecture; +import io.cloudsmith.api.models.Distribution; +import io.cloudsmith.api.models.DistributionVersion; +import io.cloudsmith.api.models.PackageFile; +import io.cloudsmith.api.models.Tags; +import io.cloudsmith.api.models.WebOSVSeverityCounts; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * PackageDetail + */ + +public class PackageDetail implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("architectures") + private List architectures = null; + + @SerializedName("cdn_url") + private String cdnUrl = null; + + @SerializedName("checksum_md5") + private String checksumMd5 = null; + + @SerializedName("checksum_sha1") + private String checksumSha1 = null; + + @SerializedName("checksum_sha256") + private String checksumSha256 = null; + + @SerializedName("checksum_sha512") + private String checksumSha512 = null; + + @SerializedName("dependencies_checksum_md5") + private String dependenciesChecksumMd5 = null; + + @SerializedName("dependencies_url") + private String dependenciesUrl = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("display_name") + private String displayName = null; + + @SerializedName("distro") + private Distribution distro = null; + + @SerializedName("distro_version") + private DistributionVersion distroVersion = null; + + @SerializedName("downloads") + private java.math.BigInteger downloads = null; + + @SerializedName("epoch") + private java.math.BigInteger epoch = null; + + @SerializedName("extension") + private String extension = null; + + @SerializedName("filename") + private String filename = null; + + @SerializedName("filepath") + private String filepath = null; + + @SerializedName("files") + private List files = null; + + @SerializedName("format") + private String format = null; + + @SerializedName("format_url") + private String formatUrl = null; + + @SerializedName("freeable_storage") + private java.math.BigInteger freeableStorage = null; + + @SerializedName("fully_qualified_name") + private String fullyQualifiedName = null; + + @SerializedName("has_dependencies") + private Boolean hasDependencies = null; + + @SerializedName("identifier_perm") + private String identifierPerm = null; + + @SerializedName("identifiers") + private Map identifiers = null; + + @SerializedName("indexed") + private Boolean indexed = null; + + @SerializedName("is_cancellable") + private Boolean isCancellable = null; + + @SerializedName("is_copyable") + private Boolean isCopyable = null; + + @SerializedName("is_deleteable") + private Boolean isDeleteable = null; + + @SerializedName("is_downloadable") + private Boolean isDownloadable = null; + + @SerializedName("is_hidden") + private Boolean isHidden = null; + + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + + @SerializedName("is_moveable") + private Boolean isMoveable = null; + + @SerializedName("is_quarantinable") + private Boolean isQuarantinable = null; + + @SerializedName("is_quarantined") + private Boolean isQuarantined = null; + + @SerializedName("is_resyncable") + private Boolean isResyncable = null; + + @SerializedName("is_security_scannable") + private Boolean isSecurityScannable = null; + + @SerializedName("is_sync_awaiting") + private Boolean isSyncAwaiting = null; + + @SerializedName("is_sync_completed") + private Boolean isSyncCompleted = null; + + @SerializedName("is_sync_failed") + private Boolean isSyncFailed = null; + + @SerializedName("is_sync_in_flight") + private Boolean isSyncInFlight = null; + + @SerializedName("is_sync_in_progress") + private Boolean isSyncInProgress = null; + + @SerializedName("license") + private String license = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("namespace") + private String namespace = null; + + @SerializedName("namespace_url") + private String namespaceUrl = null; + + @SerializedName("num_files") + private java.math.BigInteger numFiles = null; + + @SerializedName("origin_repository") + private String originRepository = null; + + @SerializedName("origin_repository_url") + private String originRepositoryUrl = null; + + @SerializedName("osi_approved") + private Boolean osiApproved = null; + + @SerializedName("package_type") + private java.math.BigInteger packageType = null; + + @SerializedName("policy_violated") + private Boolean policyViolated = null; + + @SerializedName("raw_license") + private String rawLicense = null; + + @SerializedName("release") + private String release = null; + + @SerializedName("repository") + private String repository = null; + + @SerializedName("repository_url") + private String repositoryUrl = null; + + @SerializedName("security_scan_completed_at") + private OffsetDateTime securityScanCompletedAt = null; + + @SerializedName("security_scan_started_at") + private OffsetDateTime securityScanStartedAt = null; + + /** + * Gets or Sets securityScanStatus + */ + @JsonAdapter(SecurityScanStatusEnum.Adapter.class) + public enum SecurityScanStatusEnum { + AWAITING_SECURITY_SCAN("Awaiting Security Scan"), + + SECURITY_SCANNING_IN_PROGRESS("Security Scanning in Progress"), + + SCAN_DETECTED_VULNERABILITIES("Scan Detected Vulnerabilities"), + + SCAN_DETECTED_NO_VULNERABILITIES("Scan Detected No Vulnerabilities"), + + SECURITY_SCANNING_DISABLED("Security Scanning Disabled"), + + SECURITY_SCANNING_FAILED("Security Scanning Failed"), + + SECURITY_SCANNING_SKIPPED("Security Scanning Skipped"), + + SECURITY_SCANNING_NOT_SUPPORTED("Security Scanning Not Supported"); + + private String value; + + SecurityScanStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SecurityScanStatusEnum fromValue(String text) { + for (SecurityScanStatusEnum b : SecurityScanStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SecurityScanStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SecurityScanStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("security_scan_status") + private SecurityScanStatusEnum securityScanStatus = SecurityScanStatusEnum.AWAITING_SECURITY_SCAN; + + @SerializedName("security_scan_status_updated_at") + private OffsetDateTime securityScanStatusUpdatedAt = null; + + @SerializedName("self_html_url") + private String selfHtmlUrl = null; + + @SerializedName("self_url") + private String selfUrl = null; + + @SerializedName("self_webapp_url") + private String selfWebappUrl = null; + + @SerializedName("signature_url") + private String signatureUrl = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + @SerializedName("slug") + private String slug = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("spdx_license") + private String spdxLicense = null; + + @SerializedName("stage") + private java.math.BigInteger stage = null; + + @SerializedName("stage_str") + private String stageStr = null; + + @SerializedName("stage_updated_at") + private OffsetDateTime stageUpdatedAt = null; + + @SerializedName("status") + private java.math.BigInteger status = null; + + @SerializedName("status_reason") + private String statusReason = null; + + @SerializedName("status_str") + private String statusStr = null; + + @SerializedName("status_updated_at") + private OffsetDateTime statusUpdatedAt = null; + + @SerializedName("status_url") + private String statusUrl = null; + + @SerializedName("subtype") + private String subtype = null; + + @SerializedName("summary") + private String summary = null; + + @SerializedName("sync_finished_at") + private OffsetDateTime syncFinishedAt = null; + + @SerializedName("sync_progress") + private java.math.BigInteger syncProgress = null; + + @SerializedName("tags") + private Tags tags = null; + + @SerializedName("tags_automatic") + private Tags tagsAutomatic = null; + + @SerializedName("tags_immutable") + private Tags tagsImmutable = null; + + @SerializedName("tags_static") + private Map> tagsStatic = null; + + @SerializedName("type_display") + private String typeDisplay = null; + + @SerializedName("uploaded_at") + private OffsetDateTime uploadedAt = null; + + @SerializedName("uploader") + private String uploader = null; + + @SerializedName("uploader_url") + private String uploaderUrl = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("version_orig") + private String versionOrig = null; + + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + + @SerializedName("vulnerability_scan_results_url") + private String vulnerabilityScanResultsUrl = null; + + /** + * Get architectures + * @return architectures + **/ + @Valid + @ApiModelProperty(value = "") + public List getArchitectures() { + return architectures; + } + + /** + * Get cdnUrl + * @return cdnUrl + **/ + @ApiModelProperty(value = "") + public String getCdnUrl() { + return cdnUrl; + } + + /** + * Get checksumMd5 + * @return checksumMd5 + **/ + @ApiModelProperty(value = "") + public String getChecksumMd5() { + return checksumMd5; + } + + /** + * Get checksumSha1 + * @return checksumSha1 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha1() { + return checksumSha1; + } + + /** + * Get checksumSha256 + * @return checksumSha256 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha256() { + return checksumSha256; + } + + /** + * Get checksumSha512 + * @return checksumSha512 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha512() { + return checksumSha512; + } + + /** + * A checksum of all of the package's dependencies. + * @return dependenciesChecksumMd5 + **/ + @ApiModelProperty(value = "A checksum of all of the package's dependencies.") + public String getDependenciesChecksumMd5() { + return dependenciesChecksumMd5; + } + + /** + * Get dependenciesUrl + * @return dependenciesUrl + **/ + @ApiModelProperty(value = "") + public String getDependenciesUrl() { + return dependenciesUrl; + } + + /** + * A textual description of this package. + * @return description + **/ + @ApiModelProperty(value = "A textual description of this package.") + public String getDescription() { + return description; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public PackageDetail distro(Distribution distro) { + this.distro = distro; + return this; + } + + /** + * Get distro + * @return distro + **/ + @Valid + @ApiModelProperty(value = "") + public Distribution getDistro() { + return distro; + } + + public void setDistro(Distribution distro) { + this.distro = distro; + } + + public PackageDetail distroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + return this; + } + + /** + * Get distroVersion + * @return distroVersion + **/ + @Valid + @ApiModelProperty(value = "") + public DistributionVersion getDistroVersion() { + return distroVersion; + } + + public void setDistroVersion(DistributionVersion distroVersion) { + this.distroVersion = distroVersion; + } + + /** + * Get downloads + * @return downloads + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getDownloads() { + return downloads; + } + + /** + * The epoch of the package version (if any). + * @return epoch + **/ + @ApiModelProperty(value = "The epoch of the package version (if any).") + public java.math.BigInteger getEpoch() { + return epoch; + } + + /** + * Get extension + * @return extension + **/ + @ApiModelProperty(value = "") + public String getExtension() { + return extension; + } + + /** + * Get filename + * @return filename + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFilename() { + return filename; + } + + /** + * Full path to the file, including filename e.g. bin/utils/tool.tar.gz + * @return filepath + **/ + @Size(min=1) @ApiModelProperty(value = "Full path to the file, including filename e.g. bin/utils/tool.tar.gz") + public String getFilepath() { + return filepath; + } + + /** + * Get files + * @return files + **/ + @Valid + @ApiModelProperty(value = "") + public List getFiles() { + return files; + } + + /** + * Get format + * @return format + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFormat() { + return format; + } + + /** + * Get formatUrl + * @return formatUrl + **/ + @ApiModelProperty(value = "") + public String getFormatUrl() { + return formatUrl; + } + + /** + * Amount of storage that will be freed if this package is deleted + * @return freeableStorage + **/ + @ApiModelProperty(value = "Amount of storage that will be freed if this package is deleted") + public java.math.BigInteger getFreeableStorage() { + return freeableStorage; + } + + /** + * Get fullyQualifiedName + * @return fullyQualifiedName + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getFullyQualifiedName() { + return fullyQualifiedName; + } + + /** + * Whether the package has any dependencies (top-level or from its SBOM). + * @return hasDependencies + **/ + @ApiModelProperty(value = "Whether the package has any dependencies (top-level or from its SBOM).") + public Boolean isHasDependencies() { + return hasDependencies; + } + + /** + * Unique and permanent identifier for the package. + * @return identifierPerm + **/ + @Size(min=1) @ApiModelProperty(value = "Unique and permanent identifier for the package.") + public String getIdentifierPerm() { + return identifierPerm; + } + + /** + * Return a map of identifier field names and their values. + * @return identifiers + **/ + @ApiModelProperty(value = "Return a map of identifier field names and their values.") + public Map getIdentifiers() { + return identifiers; + } + + /** + * Get indexed + * @return indexed + **/ + @ApiModelProperty(value = "") + public Boolean isIndexed() { + return indexed; + } + + /** + * Get isCancellable + * @return isCancellable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCancellable() { + return isCancellable; + } + + /** + * Get isCopyable + * @return isCopyable + **/ + @ApiModelProperty(value = "") + public Boolean isIsCopyable() { + return isCopyable; + } + + /** + * Get isDeleteable + * @return isDeleteable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDeleteable() { + return isDeleteable; + } + + /** + * Get isDownloadable + * @return isDownloadable + **/ + @ApiModelProperty(value = "") + public Boolean isIsDownloadable() { + return isDownloadable; + } + + /** + * Get isHidden + * @return isHidden + **/ + @ApiModelProperty(value = "") + 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 + **/ + @ApiModelProperty(value = "") + public Boolean isIsMoveable() { + return isMoveable; + } + + /** + * Get isQuarantinable + * @return isQuarantinable + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantinable() { + return isQuarantinable; + } + + /** + * Get isQuarantined + * @return isQuarantined + **/ + @ApiModelProperty(value = "") + public Boolean isIsQuarantined() { + return isQuarantined; + } + + /** + * Get isResyncable + * @return isResyncable + **/ + @ApiModelProperty(value = "") + public Boolean isIsResyncable() { + return isResyncable; + } + + /** + * Get isSecurityScannable + * @return isSecurityScannable + **/ + @ApiModelProperty(value = "") + public Boolean isIsSecurityScannable() { + return isSecurityScannable; + } + + /** + * Get isSyncAwaiting + * @return isSyncAwaiting + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncAwaiting() { + return isSyncAwaiting; + } + + /** + * Get isSyncCompleted + * @return isSyncCompleted + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncCompleted() { + return isSyncCompleted; + } + + /** + * Get isSyncFailed + * @return isSyncFailed + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncFailed() { + return isSyncFailed; + } + + /** + * Get isSyncInFlight + * @return isSyncInFlight + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInFlight() { + return isSyncInFlight; + } + + /** + * Get isSyncInProgress + * @return isSyncInProgress + **/ + @ApiModelProperty(value = "") + public Boolean isIsSyncInProgress() { + return isSyncInProgress; + } + + /** + * The license of this package. + * @return license + **/ + @ApiModelProperty(value = "The license of this package.") + public String getLicense() { + return license; + } + + /** + * The name of this package. + * @return name + **/ + @ApiModelProperty(value = "The name of this package.") + public String getName() { + return name; + } + + /** + * Get namespace + * @return namespace + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getNamespace() { + return namespace; + } + + /** + * Get namespaceUrl + * @return namespaceUrl + **/ + @ApiModelProperty(value = "") + public String getNamespaceUrl() { + return namespaceUrl; + } + + /** + * Get numFiles + * @return numFiles + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getNumFiles() { + return numFiles; + } + + /** + * Get originRepository + * @return originRepository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getOriginRepository() { + return originRepository; + } + + /** + * Get originRepositoryUrl + * @return originRepositoryUrl + **/ + @ApiModelProperty(value = "") + public String getOriginRepositoryUrl() { + return originRepositoryUrl; + } + + /** + * Whether the package's SPDX license is OSI-approved. + * @return osiApproved + **/ + @ApiModelProperty(value = "Whether the package's SPDX license is OSI-approved.") + public Boolean isOsiApproved() { + return osiApproved; + } + + /** + * The type of package contents. + * @return packageType + **/ + @ApiModelProperty(value = "The type of package contents.") + public java.math.BigInteger getPackageType() { + return packageType; + } + + /** + * Whether or not the package has violated any policy. + * @return policyViolated + **/ + @ApiModelProperty(value = "Whether or not the package has violated any policy.") + public Boolean isPolicyViolated() { + return policyViolated; + } + + /** + * The raw license string. + * @return rawLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The raw license string.") + public String getRawLicense() { + return rawLicense; + } + + /** + * The release of the package version (if any). + * @return release + **/ + @ApiModelProperty(value = "The release of the package version (if any).") + public String getRelease() { + return release; + } + + /** + * Get repository + * @return repository + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getRepository() { + return repository; + } + + /** + * Get repositoryUrl + * @return repositoryUrl + **/ + @ApiModelProperty(value = "") + public String getRepositoryUrl() { + return repositoryUrl; + } + + /** + * The datetime the security scanning was completed. + * @return securityScanCompletedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was completed.") + public OffsetDateTime getSecurityScanCompletedAt() { + return securityScanCompletedAt; + } + + /** + * The datetime the security scanning was started. + * @return securityScanStartedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning was started.") + public OffsetDateTime getSecurityScanStartedAt() { + return securityScanStartedAt; + } + + /** + * Get securityScanStatus + * @return securityScanStatus + **/ + @ApiModelProperty(value = "") + public SecurityScanStatusEnum getSecurityScanStatus() { + return securityScanStatus; + } + + /** + * The datetime the security scanning status was updated. + * @return securityScanStatusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the security scanning status was updated.") + public OffsetDateTime getSecurityScanStatusUpdatedAt() { + return securityScanStatusUpdatedAt; + } + + /** + * Get selfHtmlUrl + * @return selfHtmlUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfHtmlUrl() { + return selfHtmlUrl; + } + + /** + * Get selfUrl + * @return selfUrl + **/ + @ApiModelProperty(value = "") + public String getSelfUrl() { + return selfUrl; + } + + /** + * Get selfWebappUrl + * @return selfWebappUrl + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getSelfWebappUrl() { + return selfWebappUrl; + } + + /** + * Get signatureUrl + * @return signatureUrl + **/ + @ApiModelProperty(value = "") + public String getSignatureUrl() { + return signatureUrl; + } + + /** + * The calculated size of the package. + * @return size + **/ + @ApiModelProperty(value = "The calculated size of the package.") + public java.math.BigInteger getSize() { + return size; + } + + /** + * The public unique identifier for the package. + * @return slug + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "The public unique identifier for the package.") + public String getSlug() { + return slug; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * The SPDX license identifier for this package. + * @return spdxLicense + **/ + @Size(min=1) @ApiModelProperty(value = "The SPDX license identifier for this package.") + public String getSpdxLicense() { + return spdxLicense; + } + + /** + * The synchronisation (in progress) stage of the package. + * @return stage + **/ + @ApiModelProperty(value = "The synchronisation (in progress) stage of the package.") + public java.math.BigInteger getStage() { + return stage; + } + + /** + * Get stageStr + * @return stageStr + **/ + @ApiModelProperty(value = "") + public String getStageStr() { + return stageStr; + } + + /** + * The datetime the package stage was updated at. + * @return stageUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package stage was updated at.") + public OffsetDateTime getStageUpdatedAt() { + return stageUpdatedAt; + } + + /** + * The synchronisation status of the package. + * @return status + **/ + @ApiModelProperty(value = "The synchronisation status of the package.") + public java.math.BigInteger getStatus() { + return status; + } + + /** + * A textual description for the synchronous status reason (if any + * @return statusReason + **/ + @ApiModelProperty(value = "A textual description for the synchronous status reason (if any") + public String getStatusReason() { + return statusReason; + } + + /** + * Get statusStr + * @return statusStr + **/ + @ApiModelProperty(value = "") + public String getStatusStr() { + return statusStr; + } + + /** + * The datetime the package status was updated at. + * @return statusUpdatedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package status was updated at.") + public OffsetDateTime getStatusUpdatedAt() { + return statusUpdatedAt; + } + + /** + * Get statusUrl + * @return statusUrl + **/ + @ApiModelProperty(value = "") + public String getStatusUrl() { + return statusUrl; + } + + /** + * Get subtype + * @return subtype + **/ + @ApiModelProperty(value = "") + public String getSubtype() { + return subtype; + } + + /** + * A one-liner synopsis of this package. + * @return summary + **/ + @ApiModelProperty(value = "A one-liner synopsis of this package.") + public String getSummary() { + return summary; + } + + /** + * The datetime the package sync was finished at. + * @return syncFinishedAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the package sync was finished at.") + public OffsetDateTime getSyncFinishedAt() { + return syncFinishedAt; + } + + /** + * Synchronisation progress (from 0-100) + * @return syncProgress + **/ + @ApiModelProperty(value = "Synchronisation progress (from 0-100)") + public java.math.BigInteger getSyncProgress() { + return syncProgress; + } + + public PackageDetail tags(Tags tags) { + this.tags = tags; + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTags() { + return tags; + } + + public void setTags(Tags tags) { + this.tags = tags; + } + + public PackageDetail tagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + return this; + } + + /** + * Get tagsAutomatic + * @return tagsAutomatic + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsAutomatic() { + return tagsAutomatic; + } + + public void setTagsAutomatic(Tags tagsAutomatic) { + this.tagsAutomatic = tagsAutomatic; + } + + public PackageDetail tagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + return this; + } + + /** + * Get tagsImmutable + * @return tagsImmutable + **/ + @Valid + @ApiModelProperty(value = "") + public Tags getTagsImmutable() { + return tagsImmutable; + } + + public void setTagsImmutable(Tags tagsImmutable) { + this.tagsImmutable = tagsImmutable; + } + + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + + /** + * Get typeDisplay + * @return typeDisplay + **/ + @ApiModelProperty(value = "") + public String getTypeDisplay() { + return typeDisplay; + } + + /** + * The date this package was uploaded. + * @return uploadedAt + **/ + @Valid + @ApiModelProperty(value = "The date this package was uploaded.") + public OffsetDateTime getUploadedAt() { + return uploadedAt; + } + + /** + * Get uploader + * @return uploader + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUploader() { + return uploader; + } + + /** + * Get uploaderUrl + * @return uploaderUrl + **/ + @ApiModelProperty(value = "") + public String getUploaderUrl() { + return uploaderUrl; + } + + /** + * The raw version for this package. + * @return version + **/ + @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + /** + * Get versionOrig + * @return versionOrig + **/ + @ApiModelProperty(value = "") + public String getVersionOrig() { + return versionOrig; + } + + public PackageDetail 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 + **/ + @ApiModelProperty(value = "") + public String getVulnerabilityScanResultsUrl() { + return vulnerabilityScanResultsUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackageDetail packageDetail = (PackageDetail) o; + return Objects.equals(this.architectures, packageDetail.architectures) && + Objects.equals(this.cdnUrl, packageDetail.cdnUrl) && + Objects.equals(this.checksumMd5, packageDetail.checksumMd5) && + Objects.equals(this.checksumSha1, packageDetail.checksumSha1) && + Objects.equals(this.checksumSha256, packageDetail.checksumSha256) && + Objects.equals(this.checksumSha512, packageDetail.checksumSha512) && + Objects.equals(this.dependenciesChecksumMd5, packageDetail.dependenciesChecksumMd5) && + Objects.equals(this.dependenciesUrl, packageDetail.dependenciesUrl) && + Objects.equals(this.description, packageDetail.description) && + Objects.equals(this.displayName, packageDetail.displayName) && + Objects.equals(this.distro, packageDetail.distro) && + Objects.equals(this.distroVersion, packageDetail.distroVersion) && + Objects.equals(this.downloads, packageDetail.downloads) && + Objects.equals(this.epoch, packageDetail.epoch) && + Objects.equals(this.extension, packageDetail.extension) && + Objects.equals(this.filename, packageDetail.filename) && + Objects.equals(this.filepath, packageDetail.filepath) && + Objects.equals(this.files, packageDetail.files) && + Objects.equals(this.format, packageDetail.format) && + Objects.equals(this.formatUrl, packageDetail.formatUrl) && + Objects.equals(this.freeableStorage, packageDetail.freeableStorage) && + Objects.equals(this.fullyQualifiedName, packageDetail.fullyQualifiedName) && + Objects.equals(this.hasDependencies, packageDetail.hasDependencies) && + Objects.equals(this.identifierPerm, packageDetail.identifierPerm) && + Objects.equals(this.identifiers, packageDetail.identifiers) && + Objects.equals(this.indexed, packageDetail.indexed) && + Objects.equals(this.isCancellable, packageDetail.isCancellable) && + Objects.equals(this.isCopyable, packageDetail.isCopyable) && + Objects.equals(this.isDeleteable, packageDetail.isDeleteable) && + Objects.equals(this.isDownloadable, packageDetail.isDownloadable) && + Objects.equals(this.isHidden, packageDetail.isHidden) && + Objects.equals(this.isMalwareDetected, packageDetail.isMalwareDetected) && + Objects.equals(this.isMoveable, packageDetail.isMoveable) && + Objects.equals(this.isQuarantinable, packageDetail.isQuarantinable) && + Objects.equals(this.isQuarantined, packageDetail.isQuarantined) && + Objects.equals(this.isResyncable, packageDetail.isResyncable) && + Objects.equals(this.isSecurityScannable, packageDetail.isSecurityScannable) && + Objects.equals(this.isSyncAwaiting, packageDetail.isSyncAwaiting) && + Objects.equals(this.isSyncCompleted, packageDetail.isSyncCompleted) && + Objects.equals(this.isSyncFailed, packageDetail.isSyncFailed) && + Objects.equals(this.isSyncInFlight, packageDetail.isSyncInFlight) && + Objects.equals(this.isSyncInProgress, packageDetail.isSyncInProgress) && + Objects.equals(this.license, packageDetail.license) && + Objects.equals(this.name, packageDetail.name) && + Objects.equals(this.namespace, packageDetail.namespace) && + Objects.equals(this.namespaceUrl, packageDetail.namespaceUrl) && + Objects.equals(this.numFiles, packageDetail.numFiles) && + Objects.equals(this.originRepository, packageDetail.originRepository) && + Objects.equals(this.originRepositoryUrl, packageDetail.originRepositoryUrl) && + Objects.equals(this.osiApproved, packageDetail.osiApproved) && + Objects.equals(this.packageType, packageDetail.packageType) && + Objects.equals(this.policyViolated, packageDetail.policyViolated) && + Objects.equals(this.rawLicense, packageDetail.rawLicense) && + Objects.equals(this.release, packageDetail.release) && + Objects.equals(this.repository, packageDetail.repository) && + Objects.equals(this.repositoryUrl, packageDetail.repositoryUrl) && + Objects.equals(this.securityScanCompletedAt, packageDetail.securityScanCompletedAt) && + Objects.equals(this.securityScanStartedAt, packageDetail.securityScanStartedAt) && + Objects.equals(this.securityScanStatus, packageDetail.securityScanStatus) && + Objects.equals(this.securityScanStatusUpdatedAt, packageDetail.securityScanStatusUpdatedAt) && + Objects.equals(this.selfHtmlUrl, packageDetail.selfHtmlUrl) && + Objects.equals(this.selfUrl, packageDetail.selfUrl) && + Objects.equals(this.selfWebappUrl, packageDetail.selfWebappUrl) && + Objects.equals(this.signatureUrl, packageDetail.signatureUrl) && + Objects.equals(this.size, packageDetail.size) && + Objects.equals(this.slug, packageDetail.slug) && + Objects.equals(this.slugPerm, packageDetail.slugPerm) && + Objects.equals(this.spdxLicense, packageDetail.spdxLicense) && + Objects.equals(this.stage, packageDetail.stage) && + Objects.equals(this.stageStr, packageDetail.stageStr) && + Objects.equals(this.stageUpdatedAt, packageDetail.stageUpdatedAt) && + Objects.equals(this.status, packageDetail.status) && + Objects.equals(this.statusReason, packageDetail.statusReason) && + Objects.equals(this.statusStr, packageDetail.statusStr) && + Objects.equals(this.statusUpdatedAt, packageDetail.statusUpdatedAt) && + Objects.equals(this.statusUrl, packageDetail.statusUrl) && + Objects.equals(this.subtype, packageDetail.subtype) && + Objects.equals(this.summary, packageDetail.summary) && + Objects.equals(this.syncFinishedAt, packageDetail.syncFinishedAt) && + Objects.equals(this.syncProgress, packageDetail.syncProgress) && + Objects.equals(this.tags, packageDetail.tags) && + Objects.equals(this.tagsAutomatic, packageDetail.tagsAutomatic) && + Objects.equals(this.tagsImmutable, packageDetail.tagsImmutable) && + Objects.equals(this.tagsStatic, packageDetail.tagsStatic) && + Objects.equals(this.typeDisplay, packageDetail.typeDisplay) && + Objects.equals(this.uploadedAt, packageDetail.uploadedAt) && + Objects.equals(this.uploader, packageDetail.uploader) && + Objects.equals(this.uploaderUrl, packageDetail.uploaderUrl) && + Objects.equals(this.version, packageDetail.version) && + Objects.equals(this.versionOrig, packageDetail.versionOrig) && + Objects.equals(this.vulnerabilityCounts, packageDetail.vulnerabilityCounts) && + Objects.equals(this.vulnerabilityScanResultsUrl, packageDetail.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, 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackageDetail {\n"); + + sb.append(" architectures: ").append(toIndentedString(architectures)).append("\n"); + sb.append(" cdnUrl: ").append(toIndentedString(cdnUrl)).append("\n"); + sb.append(" checksumMd5: ").append(toIndentedString(checksumMd5)).append("\n"); + sb.append(" checksumSha1: ").append(toIndentedString(checksumSha1)).append("\n"); + sb.append(" checksumSha256: ").append(toIndentedString(checksumSha256)).append("\n"); + sb.append(" checksumSha512: ").append(toIndentedString(checksumSha512)).append("\n"); + sb.append(" dependenciesChecksumMd5: ").append(toIndentedString(dependenciesChecksumMd5)).append("\n"); + sb.append(" dependenciesUrl: ").append(toIndentedString(dependenciesUrl)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" distro: ").append(toIndentedString(distro)).append("\n"); + sb.append(" distroVersion: ").append(toIndentedString(distroVersion)).append("\n"); + sb.append(" downloads: ").append(toIndentedString(downloads)).append("\n"); + sb.append(" epoch: ").append(toIndentedString(epoch)).append("\n"); + sb.append(" extension: ").append(toIndentedString(extension)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" filepath: ").append(toIndentedString(filepath)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" formatUrl: ").append(toIndentedString(formatUrl)).append("\n"); + sb.append(" freeableStorage: ").append(toIndentedString(freeableStorage)).append("\n"); + sb.append(" fullyQualifiedName: ").append(toIndentedString(fullyQualifiedName)).append("\n"); + sb.append(" hasDependencies: ").append(toIndentedString(hasDependencies)).append("\n"); + sb.append(" identifierPerm: ").append(toIndentedString(identifierPerm)).append("\n"); + sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); + sb.append(" indexed: ").append(toIndentedString(indexed)).append("\n"); + sb.append(" isCancellable: ").append(toIndentedString(isCancellable)).append("\n"); + sb.append(" isCopyable: ").append(toIndentedString(isCopyable)).append("\n"); + sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isDownloadable: ").append(toIndentedString(isDownloadable)).append("\n"); + sb.append(" 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"); + sb.append(" isResyncable: ").append(toIndentedString(isResyncable)).append("\n"); + sb.append(" isSecurityScannable: ").append(toIndentedString(isSecurityScannable)).append("\n"); + sb.append(" isSyncAwaiting: ").append(toIndentedString(isSyncAwaiting)).append("\n"); + sb.append(" isSyncCompleted: ").append(toIndentedString(isSyncCompleted)).append("\n"); + sb.append(" isSyncFailed: ").append(toIndentedString(isSyncFailed)).append("\n"); + sb.append(" isSyncInFlight: ").append(toIndentedString(isSyncInFlight)).append("\n"); + sb.append(" isSyncInProgress: ").append(toIndentedString(isSyncInProgress)).append("\n"); + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" namespaceUrl: ").append(toIndentedString(namespaceUrl)).append("\n"); + sb.append(" numFiles: ").append(toIndentedString(numFiles)).append("\n"); + sb.append(" originRepository: ").append(toIndentedString(originRepository)).append("\n"); + sb.append(" originRepositoryUrl: ").append(toIndentedString(originRepositoryUrl)).append("\n"); + sb.append(" osiApproved: ").append(toIndentedString(osiApproved)).append("\n"); + sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); + sb.append(" policyViolated: ").append(toIndentedString(policyViolated)).append("\n"); + sb.append(" rawLicense: ").append(toIndentedString(rawLicense)).append("\n"); + sb.append(" release: ").append(toIndentedString(release)).append("\n"); + sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); + sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); + sb.append(" securityScanCompletedAt: ").append(toIndentedString(securityScanCompletedAt)).append("\n"); + sb.append(" securityScanStartedAt: ").append(toIndentedString(securityScanStartedAt)).append("\n"); + sb.append(" securityScanStatus: ").append(toIndentedString(securityScanStatus)).append("\n"); + sb.append(" securityScanStatusUpdatedAt: ").append(toIndentedString(securityScanStatusUpdatedAt)).append("\n"); + sb.append(" selfHtmlUrl: ").append(toIndentedString(selfHtmlUrl)).append("\n"); + sb.append(" selfUrl: ").append(toIndentedString(selfUrl)).append("\n"); + sb.append(" selfWebappUrl: ").append(toIndentedString(selfWebappUrl)).append("\n"); + sb.append(" signatureUrl: ").append(toIndentedString(signatureUrl)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" slug: ").append(toIndentedString(slug)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" spdxLicense: ").append(toIndentedString(spdxLicense)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" stageStr: ").append(toIndentedString(stageStr)).append("\n"); + sb.append(" stageUpdatedAt: ").append(toIndentedString(stageUpdatedAt)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusReason: ").append(toIndentedString(statusReason)).append("\n"); + sb.append(" statusStr: ").append(toIndentedString(statusStr)).append("\n"); + sb.append(" statusUpdatedAt: ").append(toIndentedString(statusUpdatedAt)).append("\n"); + sb.append(" statusUrl: ").append(toIndentedString(statusUrl)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); + sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); + sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); + sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); + sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); + sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); + sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); + sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityCounts: ").append(toIndentedString(vulnerabilityCounts)).append("\n"); + sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java index 5ddfd0b3..af5cd483 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUploadRequest.java @@ -109,7 +109,7 @@ public PackageFileUploadRequest filename(String filename) { * @return filename **/ @NotNull - @Size(min=1) @ApiModelProperty(required = true, value = "Filename for the package file upload.") + @Size(min=1,max=255) @ApiModelProperty(required = true, value = "Filename for the package file upload.") public String getFilename() { return filename; } 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 b5d1e2ac..fcfdf5f0 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -95,6 +99,18 @@ 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; @@ -168,6 +184,25 @@ 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) { @@ -178,15 +213,17 @@ public boolean equals(java.lang.Object o) { return false; } PackageLicense packageLicense = (PackageLicense) o; - return Objects.equals(this.licenseNotes, packageLicense.licenseNotes) && + return Objects.equals(this.isMalwareDetected, packageLicense.isMalwareDetected) && + 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.spdxLicense, packageLicense.spdxLicense) && + Objects.equals(this.vulnerabilityCounts, packageLicense.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(licenseNotes, licenseOverride, licenseUrl, spdxLicense); + return Objects.hash(isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); } @@ -195,10 +232,12 @@ 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 3cedd640..1b91bd8d 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -82,6 +83,9 @@ 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; @@ -143,6 +147,9 @@ 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; @@ -161,6 +168,15 @@ 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; @@ -224,7 +240,8 @@ public PackageLicenseRequestPatch spdxLicense(String spdxLicense) { * Get spdxLicense * @return spdxLicense **/ - @Size(min=1,max=255) @ApiModelProperty(value = "") + @NotNull + @Size(min=1,max=255) @ApiModelProperty(required = true, value = "") public String getSpdxLicense() { return spdxLicense; } @@ -233,6 +250,25 @@ 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) { @@ -244,15 +280,17 @@ 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.spdxLicense, packageLicenseRequestPatch.spdxLicense) && + Objects.equals(this.vulnerabilityCounts, packageLicenseRequestPatch.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(action, licenseNotes, licenseOverride, licenseUrl, spdxLicense); + return Objects.hash(action, isMalwareDetected, licenseNotes, licenseOverride, licenseUrl, spdxLicense, vulnerabilityCounts); } @@ -262,10 +300,12 @@ 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 4fda8546..1dbe8200 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,6 +25,7 @@ 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; @@ -134,6 +135,9 @@ 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; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -659,6 +669,15 @@ 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 @@ -1154,6 +1173,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1238,25 @@ 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 @@ -1258,6 +1306,7 @@ 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) && @@ -1309,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageMove.tags) && Objects.equals(this.tagsAutomatic, packageMove.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageMove.tagsImmutable) && + Objects.equals(this.tagsStatic, packageMove.tagsStatic) && Objects.equals(this.typeDisplay, packageMove.typeDisplay) && Objects.equals(this.uploadedAt, packageMove.uploadedAt) && Objects.equals(this.uploader, packageMove.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1410,7 @@ 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"); @@ -1410,12 +1462,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 525d7c4f..1f811051 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,12 @@ 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; @@ -56,6 +63,34 @@ 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) { @@ -66,12 +101,14 @@ public boolean equals(java.lang.Object o) { return false; } PackageMoveRequest packageMoveRequest = (PackageMoveRequest) o; - return Objects.equals(this.destination, packageMoveRequest.destination); + return Objects.equals(this.destination, packageMoveRequest.destination) && + Objects.equals(this.isMalwareDetected, packageMoveRequest.isMalwareDetected) && + Objects.equals(this.vulnerabilityCounts, packageMoveRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(destination); + return Objects.hash(destination, isMalwareDetected, vulnerabilityCounts); } @@ -81,6 +118,8 @@ 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 b8aff8f1..04d38b9e 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,6 +25,7 @@ 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; @@ -134,6 +135,9 @@ 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; @@ -343,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +368,9 @@ 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; @@ -656,6 +666,15 @@ 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 @@ -1142,6 +1161,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1197,6 +1226,25 @@ 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 @@ -1246,6 +1294,7 @@ 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) && @@ -1296,18 +1345,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageQuarantine.tags) && Objects.equals(this.tagsAutomatic, packageQuarantine.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageQuarantine.tagsImmutable) && + Objects.equals(this.tagsStatic, packageQuarantine.tagsStatic) && Objects.equals(this.typeDisplay, packageQuarantine.typeDisplay) && Objects.equals(this.uploadedAt, packageQuarantine.uploadedAt) && Objects.equals(this.uploader, packageQuarantine.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1346,6 +1397,7 @@ 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"); @@ -1396,12 +1448,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 814cc42b..3684e8a0 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,12 +35,27 @@ 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; @@ -76,6 +92,25 @@ 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) { @@ -86,13 +121,15 @@ public boolean equals(java.lang.Object o) { return false; } PackageQuarantineRequest packageQuarantineRequest = (PackageQuarantineRequest) o; - return Objects.equals(this.release, packageQuarantineRequest.release) && - Objects.equals(this.restore, packageQuarantineRequest.restore); + 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); } @Override public int hashCode() { - return Objects.hash(release, restore); + return Objects.hash(isMalwareDetected, release, restore, vulnerabilityCounts); } @@ -101,8 +138,10 @@ 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 6f953f7b..c7c3e63d 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,6 +25,7 @@ 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; @@ -134,6 +135,9 @@ 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; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -659,6 +669,15 @@ 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 @@ -1154,6 +1173,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1209,6 +1238,25 @@ 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 @@ -1258,6 +1306,7 @@ 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) && @@ -1309,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.tags, packageResync.tags) && Objects.equals(this.tagsAutomatic, packageResync.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageResync.tagsImmutable) && + Objects.equals(this.tagsStatic, packageResync.tagsStatic) && Objects.equals(this.typeDisplay, packageResync.typeDisplay) && Objects.equals(this.uploadedAt, packageResync.uploadedAt) && Objects.equals(this.uploader, packageResync.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tags, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1410,7 @@ 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"); @@ -1410,12 +1462,14 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 d452e170..98b59f7c 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,6 +25,7 @@ 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; @@ -137,6 +138,9 @@ 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; @@ -346,6 +350,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -364,6 +371,9 @@ 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; @@ -677,6 +687,15 @@ 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 @@ -1153,6 +1172,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1208,6 +1237,25 @@ 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 @@ -1258,6 +1306,7 @@ 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) && @@ -1308,18 +1357,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, packageTag.syncProgress) && Objects.equals(this.tagsAutomatic, packageTag.tagsAutomatic) && Objects.equals(this.tagsImmutable, packageTag.tagsImmutable) && + Objects.equals(this.tagsStatic, packageTag.tagsStatic) && Objects.equals(this.typeDisplay, packageTag.typeDisplay) && Objects.equals(this.uploadedAt, packageTag.uploadedAt) && Objects.equals(this.uploader, packageTag.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1359,6 +1410,7 @@ 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"); @@ -1409,12 +1461,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 737a88bc..4d28f828 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -93,9 +94,15 @@ 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; @@ -132,6 +139,15 @@ 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; @@ -158,6 +174,25 @@ 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) { @@ -170,12 +205,14 @@ 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.tags, packageTagRequest.tags); + Objects.equals(this.isMalwareDetected, packageTagRequest.isMalwareDetected) && + Objects.equals(this.tags, packageTagRequest.tags) && + Objects.equals(this.vulnerabilityCounts, packageTagRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(action, isImmutable, tags); + return Objects.hash(action, isImmutable, isMalwareDetected, tags, vulnerabilityCounts); } @@ -186,7 +223,9 @@ 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 caeac4f4..25f70408 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ 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; @@ -46,6 +50,9 @@ 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; @@ -65,6 +72,15 @@ 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 @@ -92,6 +108,25 @@ 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) { @@ -103,14 +138,16 @@ 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.version, packageVulnerability.version) && + Objects.equals(this.vulnerabilityCounts, packageVulnerability.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(identifier, name, url, version); + return Objects.hash(identifier, isMalwareDetected, name, url, version, vulnerabilityCounts); } @@ -120,9 +157,11 @@ 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 e6b53037..3fa3ace8 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, pythonPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, pythonPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, pythonPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, pythonPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, pythonPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, pythonPackageUpload.uploadedAt) && Objects.equals(this.uploader, pythonPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 39c84e51..740ed53e 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } PythonPackageUploadRequest pythonPackageUploadRequest = (PythonPackageUploadRequest) o; - return Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, pythonPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, pythonPackageUploadRequest.packageFile) && Objects.equals(this.republish, pythonPackageUploadRequest.republish) && - Objects.equals(this.tags, pythonPackageUploadRequest.tags); + Objects.equals(this.tags, pythonPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, pythonPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 57e07e13..48ed747e 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -653,6 +663,15 @@ 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 @@ -1147,6 +1166,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1211,6 +1240,25 @@ 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 @@ -1259,6 +1307,7 @@ 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) && @@ -1309,18 +1358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, rawPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rawPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rawPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rawPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rawPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rawPackageUpload.uploadedAt) && Objects.equals(this.uploader, rawPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1358,6 +1409,7 @@ 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"); @@ -1408,12 +1460,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 103741c1..b2450479 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -40,6 +41,9 @@ 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; @@ -58,6 +62,9 @@ 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; @@ -94,6 +101,15 @@ 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; @@ -203,6 +219,25 @@ 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) { @@ -215,17 +250,19 @@ 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.version, rawPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, rawPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(contentType, description, name, packageFile, republish, summary, tags, version); + return Objects.hash(contentType, description, isMalwareDetected, name, packageFile, republish, summary, tags, version, vulnerabilityCounts); } @@ -236,12 +273,14 @@ 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/RecycleBinPackage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java index 2ad249c7..8f831e9a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RecycleBinPackage.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; 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; @@ -63,6 +64,9 @@ public class RecycleBinPackage implements Serializable { @SerializedName("is_deleteable") private Boolean isDeleteable = null; + @SerializedName("is_malware_detected") + private Boolean isMalwareDetected = null; + @SerializedName("is_quarantined") private Boolean isQuarantined = null; @@ -170,6 +174,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("version") private String version = null; + @SerializedName("vulnerability_counts") + private WebOSVSeverityCounts vulnerabilityCounts = null; + /** * The name of the user who deleted the package. * @return actionBy @@ -242,6 +249,15 @@ public Boolean isIsDeleteable() { return isDeleteable; } + /** + * 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 isQuarantined * @return isQuarantined @@ -399,6 +415,25 @@ public String getVersion() { return version; } + public RecycleBinPackage 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) { @@ -417,6 +452,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.identifiers, recycleBinPackage.identifiers) && Objects.equals(this.invokedRetentionRule, recycleBinPackage.invokedRetentionRule) && Objects.equals(this.isDeleteable, recycleBinPackage.isDeleteable) && + Objects.equals(this.isMalwareDetected, recycleBinPackage.isMalwareDetected) && Objects.equals(this.isQuarantined, recycleBinPackage.isQuarantined) && Objects.equals(this.isRestorable, recycleBinPackage.isRestorable) && Objects.equals(this.name, recycleBinPackage.name) && @@ -432,12 +468,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.typeDisplay, recycleBinPackage.typeDisplay) && Objects.equals(this.uploadedAt, recycleBinPackage.uploadedAt) && Objects.equals(this.uploader, recycleBinPackage.uploader) && - Objects.equals(this.version, recycleBinPackage.version); + Objects.equals(this.version, recycleBinPackage.version) && + Objects.equals(this.vulnerabilityCounts, recycleBinPackage.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(actionBy, downloads, filename, format, fullyQualifiedName, identifiers, invokedRetentionRule, isDeleteable, isQuarantined, isRestorable, name, policyViolated, repository, securityScanCompletedAt, securityScanStatus, size, slugPerm, status, statusUpdatedAt, tags, typeDisplay, uploadedAt, uploader, version); + return Objects.hash(actionBy, downloads, filename, format, fullyQualifiedName, identifiers, invokedRetentionRule, isDeleteable, isMalwareDetected, isQuarantined, isRestorable, name, policyViolated, repository, securityScanCompletedAt, securityScanStatus, size, slugPerm, status, statusUpdatedAt, tags, typeDisplay, uploadedAt, uploader, version, vulnerabilityCounts); } @@ -454,6 +491,7 @@ public String toString() { sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); sb.append(" invokedRetentionRule: ").append(toIndentedString(invokedRetentionRule)).append("\n"); sb.append(" isDeleteable: ").append(toIndentedString(isDeleteable)).append("\n"); + sb.append(" isMalwareDetected: ").append(toIndentedString(isMalwareDetected)).append("\n"); sb.append(" isQuarantined: ").append(toIndentedString(isQuarantined)).append("\n"); sb.append(" isRestorable: ").append(toIndentedString(isRestorable)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -470,6 +508,7 @@ public String toString() { sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).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 8a899658..d88c5dc2 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, rpmPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rpmPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rpmPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rpmPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rpmPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rpmPackageUpload.uploadedAt) && Objects.equals(this.uploader, rpmPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 639da48a..1e3d09a6 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -37,6 +38,9 @@ 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; @@ -46,6 +50,9 @@ 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; @@ -65,6 +72,15 @@ 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; @@ -120,6 +136,25 @@ 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) { @@ -131,14 +166,16 @@ 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.tags, rpmPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, rpmPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(distribution, packageFile, republish, tags); + return Objects.hash(distribution, isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -148,9 +185,11 @@ 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 819b0e3a..31c5cfc6 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, rubyPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, rubyPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, rubyPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, rubyPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, rubyPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, rubyPackageUpload.uploadedAt) && Objects.equals(this.uploader, rubyPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 1c95923a..ee6631aa 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } RubyPackageUploadRequest rubyPackageUploadRequest = (RubyPackageUploadRequest) o; - return Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, rubyPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, rubyPackageUploadRequest.packageFile) && Objects.equals(this.republish, rubyPackageUploadRequest.republish) && - Objects.equals(this.tags, rubyPackageUploadRequest.tags); + Objects.equals(this.tags, rubyPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, rubyPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 9cc6553b..00b2e846 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,6 +25,7 @@ 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; @@ -137,6 +138,9 @@ 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; @@ -355,6 +359,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -373,6 +380,9 @@ 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; @@ -695,6 +705,15 @@ 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 @@ -1245,6 +1264,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1310,6 +1339,25 @@ 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 @@ -1360,6 +1408,7 @@ 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) && @@ -1413,18 +1462,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, swiftPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, swiftPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, swiftPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, swiftPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, swiftPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, swiftPackageUpload.uploadedAt) && Objects.equals(this.uploader, swiftPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, licenseUrl, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, readmeUrl, release, repository, repositoryUrl, scope, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1464,6 +1515,7 @@ 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"); @@ -1517,12 +1569,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 46676d8e..2dc179f4 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -40,6 +41,9 @@ 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; @@ -67,6 +71,9 @@ 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; @@ -103,6 +110,15 @@ 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; @@ -269,6 +285,25 @@ 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) { @@ -281,6 +316,7 @@ 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) && @@ -289,12 +325,13 @@ 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.version, swiftPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, swiftPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(authorName, authorOrg, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version); + return Objects.hash(authorName, authorOrg, isMalwareDetected, licenseUrl, name, packageFile, readmeUrl, repositoryUrl, republish, scope, tags, version, vulnerabilityCounts); } @@ -305,6 +342,7 @@ 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"); @@ -314,6 +352,7 @@ 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 6e58f3e0..cec12ff9 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, terraformPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, terraformPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, terraformPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, terraformPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, terraformPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, terraformPackageUpload.uploadedAt) && Objects.equals(this.uploader, terraformPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 7ed9b67e..afa76aad 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } TerraformPackageUploadRequest terraformPackageUploadRequest = (TerraformPackageUploadRequest) o; - return Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, terraformPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, terraformPackageUploadRequest.packageFile) && Objects.equals(this.republish, terraformPackageUploadRequest.republish) && - Objects.equals(this.tags, terraformPackageUploadRequest.tags); + Objects.equals(this.tags, terraformPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, terraformPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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 3a502a99..094aef3a 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -343,6 +347,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -361,6 +368,9 @@ 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; @@ -647,6 +657,15 @@ 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 @@ -1152,6 +1171,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1217,6 +1246,25 @@ 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 @@ -1265,6 +1313,7 @@ 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) && @@ -1316,18 +1365,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, vagrantPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, vagrantPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, vagrantPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, vagrantPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, vagrantPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, vagrantPackageUpload.uploadedAt) && Objects.equals(this.uploader, vagrantPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, provider, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1365,6 +1416,7 @@ 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"); @@ -1416,12 +1468,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 b8f85943..660dbbd7 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -52,6 +56,18 @@ 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; @@ -164,6 +180,25 @@ 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) { @@ -174,17 +209,19 @@ public boolean equals(java.lang.Object o) { return false; } VagrantPackageUploadRequest vagrantPackageUploadRequest = (VagrantPackageUploadRequest) o; - return Objects.equals(this.name, vagrantPackageUploadRequest.name) && + return Objects.equals(this.isMalwareDetected, vagrantPackageUploadRequest.isMalwareDetected) && + 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.version, vagrantPackageUploadRequest.version) && + Objects.equals(this.vulnerabilityCounts, vagrantPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(name, packageFile, provider, republish, tags, version); + return Objects.hash(isMalwareDetected, name, packageFile, provider, republish, tags, version, vulnerabilityCounts); } @@ -193,12 +230,14 @@ 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 b9b92d42..def136c9 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,6 +25,7 @@ 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; @@ -131,6 +132,9 @@ 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; @@ -340,6 +344,9 @@ public SecurityScanStatusEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName("tags_immutable") private Tags tagsImmutable = null; + @SerializedName("tags_static") + private Map> tagsStatic = null; + @SerializedName("type_display") private String typeDisplay = null; @@ -358,6 +365,9 @@ 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; @@ -644,6 +654,15 @@ 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 @@ -1120,6 +1139,16 @@ public void setTagsImmutable(Tags tagsImmutable) { this.tagsImmutable = tagsImmutable; } + /** + * All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + * @return tagsStatic + **/ + @Valid + @ApiModelProperty(value = "All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.") + public Map> getTagsStatic() { + return tagsStatic; + } + /** * Get typeDisplay * @return typeDisplay @@ -1175,6 +1204,25 @@ 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 @@ -1223,6 +1271,7 @@ 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) && @@ -1273,18 +1322,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.syncProgress, vsxPackageUpload.syncProgress) && Objects.equals(this.tagsAutomatic, vsxPackageUpload.tagsAutomatic) && Objects.equals(this.tagsImmutable, vsxPackageUpload.tagsImmutable) && + Objects.equals(this.tagsStatic, vsxPackageUpload.tagsStatic) && Objects.equals(this.typeDisplay, vsxPackageUpload.typeDisplay) && Objects.equals(this.uploadedAt, vsxPackageUpload.uploadedAt) && Objects.equals(this.uploader, vsxPackageUpload.uploader) && 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, isMoveable, isQuarantinable, isQuarantined, isResyncable, isSecurityScannable, isSyncAwaiting, isSyncCompleted, isSyncFailed, isSyncInFlight, isSyncInProgress, license, name, namespace, namespaceUrl, numFiles, originRepository, originRepositoryUrl, osiApproved, packageType, policyViolated, rawLicense, release, repository, repositoryUrl, securityScanCompletedAt, securityScanStartedAt, securityScanStatus, securityScanStatusUpdatedAt, selfHtmlUrl, selfUrl, selfWebappUrl, signatureUrl, size, slug, slugPerm, spdxLicense, stage, stageStr, stageUpdatedAt, status, statusReason, statusStr, statusUpdatedAt, statusUrl, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityScanResultsUrl); + 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, subtype, summary, syncFinishedAt, syncProgress, tagsAutomatic, tagsImmutable, tagsStatic, typeDisplay, uploadedAt, uploader, uploaderUrl, version, versionOrig, vulnerabilityCounts, vulnerabilityScanResultsUrl); } @@ -1322,6 +1373,7 @@ 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"); @@ -1372,12 +1424,14 @@ public String toString() { sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n"); sb.append(" tagsAutomatic: ").append(toIndentedString(tagsAutomatic)).append("\n"); sb.append(" tagsImmutable: ").append(toIndentedString(tagsImmutable)).append("\n"); + sb.append(" tagsStatic: ").append(toIndentedString(tagsStatic)).append("\n"); sb.append(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" 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 d67c0379..73930700 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.WebOSVSeverityCounts; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -34,6 +35,9 @@ 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; @@ -43,6 +47,18 @@ 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; @@ -98,6 +114,25 @@ 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) { @@ -108,14 +143,16 @@ public boolean equals(java.lang.Object o) { return false; } VsxPackageUploadRequest vsxPackageUploadRequest = (VsxPackageUploadRequest) o; - return Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && + return Objects.equals(this.isMalwareDetected, vsxPackageUploadRequest.isMalwareDetected) && + Objects.equals(this.packageFile, vsxPackageUploadRequest.packageFile) && Objects.equals(this.republish, vsxPackageUploadRequest.republish) && - Objects.equals(this.tags, vsxPackageUploadRequest.tags); + Objects.equals(this.tags, vsxPackageUploadRequest.tags) && + Objects.equals(this.vulnerabilityCounts, vsxPackageUploadRequest.vulnerabilityCounts); } @Override public int hashCode() { - return Objects.hash(packageFile, republish, tags); + return Objects.hash(isMalwareDetected, packageFile, republish, tags, vulnerabilityCounts); } @@ -124,9 +161,11 @@ 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/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java new file mode 100644 index 00000000..6aa16228 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebOSVSeverityCounts.java @@ -0,0 +1,175 @@ +/* + * 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; + +/** + * Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan. + */ +@ApiModel(description = "Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan.") + +public class WebOSVSeverityCounts implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("critical") + private java.math.BigInteger critical = null; + + @SerializedName("high") + private java.math.BigInteger high = null; + + @SerializedName("low") + private java.math.BigInteger low = null; + + @SerializedName("malware") + private java.math.BigInteger malware = null; + + @SerializedName("medium") + private java.math.BigInteger medium = null; + + @SerializedName("total") + private java.math.BigInteger total = null; + + @SerializedName("unknown") + private java.math.BigInteger unknown = null; + + /** + * Get critical + * @return critical + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getCritical() { + return critical; + } + + /** + * Get high + * @return high + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getHigh() { + return high; + } + + /** + * Get low + * @return low + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getLow() { + return low; + } + + /** + * Get malware + * @return malware + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getMalware() { + return malware; + } + + /** + * Get medium + * @return medium + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getMedium() { + return medium; + } + + /** + * Get total + * @return total + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getTotal() { + return total; + } + + /** + * Get unknown + * @return unknown + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getUnknown() { + return unknown; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebOSVSeverityCounts webOSVSeverityCounts = (WebOSVSeverityCounts) o; + return Objects.equals(this.critical, webOSVSeverityCounts.critical) && + Objects.equals(this.high, webOSVSeverityCounts.high) && + Objects.equals(this.low, webOSVSeverityCounts.low) && + Objects.equals(this.malware, webOSVSeverityCounts.malware) && + Objects.equals(this.medium, webOSVSeverityCounts.medium) && + Objects.equals(this.total, webOSVSeverityCounts.total) && + Objects.equals(this.unknown, webOSVSeverityCounts.unknown); + } + + @Override + public int hashCode() { + return Objects.hash(critical, high, low, malware, medium, total, unknown); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebOSVSeverityCounts {\n"); + + sb.append(" critical: ").append(toIndentedString(critical)).append("\n"); + sb.append(" high: ").append(toIndentedString(high)).append("\n"); + sb.append(" low: ").append(toIndentedString(low)).append("\n"); + sb.append(" malware: ").append(toIndentedString(malware)).append("\n"); + sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" unknown: ").append(toIndentedString(unknown)).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/test/java/io/cloudsmith/api/apis/PackagesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java index 37ebfed5..d499b6d4 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java @@ -61,6 +61,7 @@ import io.cloudsmith.api.models.PackageCopy; import io.cloudsmith.api.models.PackageCopyRequest; import io.cloudsmith.api.models.PackageDependencies; +import io.cloudsmith.api.models.PackageDetail; import io.cloudsmith.api.models.PackageLicenseRequestPatch; import io.cloudsmith.api.models.PackageMove; import io.cloudsmith.api.models.PackageMoveRequest; @@ -257,7 +258,7 @@ public void packagesReadTest() throws Exception { String repo = null; String identifier = null; Boolean includeConnectedRepositories = null; - ModelPackage response = api.packagesRead(owner, repo, identifier, includeConnectedRepositories); + PackageDetail response = api.packagesRead(owner, repo, identifier, includeConnectedRepositories); // TODO: test validations } diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index 2ad5cfaf..ba5d9998 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.29 +- Package version: 2.0.30 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -614,6 +614,7 @@ Class | Method | HTTP request | Description - [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [PackageDependencies](docs/PackageDependencies.md) - [PackageDependency](docs/PackageDependency.md) + - [PackageDetail](docs/PackageDetail.md) - [PackageFile](docs/PackageFile.md) - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) @@ -751,6 +752,7 @@ Class | Method | HTTP request | Description - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index acfc2102..b60f95ed 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.29", + "packageVersion": "2.0.30", "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 43136be0..92599587 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -210,6 +210,7 @@ from cloudsmith_api.models.package_deny_policy_request_patch import PackageDenyPolicyRequestPatch from cloudsmith_api.models.package_dependencies import PackageDependencies from cloudsmith_api.models.package_dependency import PackageDependency +from cloudsmith_api.models.package_detail import PackageDetail from cloudsmith_api.models.package_file import PackageFile from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload @@ -347,4 +348,5 @@ from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList from cloudsmith_api.models.vulnerability_scan_version import VulnerabilityScanVersion +from cloudsmith_api.models.web_osv_severity_counts import WebOSVSeverityCounts from cloudsmith_api.models.webhook_template import WebhookTemplate diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index bd4e5673..3637e7ab 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -900,7 +900,7 @@ def packages_read(self, owner, repo, identifier, **kwargs): # noqa: E501 :param str repo: (required) :param str identifier: (required) :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. - :return: Package + :return: PackageDetail If the method is called asynchronously, returns the request thread. """ @@ -925,7 +925,7 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no :param str repo: (required) :param str identifier: (required) :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. - :return: Package + :return: PackageDetail If the method is called asynchronously, returns the request thread. """ @@ -997,7 +997,7 @@ def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, - response_type='Package', # noqa: E501 + response_type='PackageDetail', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index a214e562..a6d62c82 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.29/python' + self.user_agent = 'Swagger-Codegen/2.0.30/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 e34ca696..d6fe97c6 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.29".\ + "SDK Package Version: 2.0.30".\ 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 2e6441c0..fc9041b4 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -182,6 +182,7 @@ from cloudsmith_api.models.package_deny_policy_request_patch import PackageDenyPolicyRequestPatch from cloudsmith_api.models.package_dependencies import PackageDependencies from cloudsmith_api.models.package_dependency import PackageDependency +from cloudsmith_api.models.package_detail import PackageDetail from cloudsmith_api.models.package_file import PackageFile from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload @@ -319,4 +320,5 @@ from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList from cloudsmith_api.models.vulnerability_scan_version import VulnerabilityScanVersion +from cloudsmith_api.models.web_osv_severity_counts import WebOSVSeverityCounts from cloudsmith_api.models.webhook_template import WebhookTemplate 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 be46ba9e..383bf15c 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class AlpinePackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class AlpinePackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """AlpinePackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this AlpinePackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this AlpinePackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this AlpinePackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this AlpinePackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this AlpinePackageUpload. @@ -2375,6 +2436,27 @@ 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 2482c366..62cb0369 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,36 +34,46 @@ class AlpinePackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'distribution': 'distribution', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -93,6 +103,29 @@ 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. @@ -173,6 +206,27 @@ 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 f5e8a75f..cdd6ad78 100644 --- a/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cargo_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class CargoPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class CargoPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """CargoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CargoPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this CargoPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CargoPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this CargoPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CargoPackageUpload. @@ -2375,6 +2436,27 @@ 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 70534140..7cb58216 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,33 +33,66 @@ class CargoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 ff40a2af..c5df39d5 100644 --- a/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cocoapods_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class CocoapodsPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class CocoapodsPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """CocoapodsPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CocoapodsPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this CocoapodsPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CocoapodsPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this CocoapodsPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CocoapodsPackageUpload. @@ -2375,6 +2436,27 @@ 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 ba0804f9..8d393f1e 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,33 +33,66 @@ class CocoapodsPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 3590eebe..9d63a0a3 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/composer_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class ComposerPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class ComposerPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """ComposerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this ComposerPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this ComposerPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this ComposerPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this ComposerPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this ComposerPackageUpload. @@ -2378,6 +2439,27 @@ 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 738575fd..d80323e6 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,31 +33,39 @@ 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' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=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 @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, tags=None, version=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): @@ -172,6 +205,27 @@ 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 52ce40dc..fa330c57 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -64,6 +64,7 @@ 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', @@ -114,12 +115,14 @@ class ConanPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -155,6 +158,7 @@ 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', @@ -205,16 +209,18 @@ class ConanPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """ConanPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -251,6 +257,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -372,6 +381,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1178,6 +1193,29 @@ 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. @@ -2313,6 +2351,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this ConanPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this ConanPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this ConanPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this ConanPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this ConanPackageUpload. @@ -2449,6 +2510,27 @@ 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 c7c436d3..a08ecd67 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,29 +36,33 @@ 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' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - 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 + 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 """ConanPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -67,6 +71,7 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife 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 @@ -74,6 +79,7 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self._republish = None self._tags = None self._version = None + self._vulnerability_counts = None self.discriminator = None if conan_channel is not None: @@ -81,6 +87,8 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife 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: @@ -92,6 +100,8 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife 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): @@ -179,6 +189,29 @@ 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. @@ -367,6 +400,27 @@ 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 5679d469..3378b5b5 100644 --- a/bindings/python/src/cloudsmith_api/models/conda_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conda_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class CondaPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class CondaPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """CondaPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CondaPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this CondaPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CondaPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this CondaPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CondaPackageUpload. @@ -2375,6 +2436,27 @@ 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 0ce3eaea..c8765d25 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,33 +33,66 @@ class CondaPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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/cran_package_upload.py b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py index 784a6188..083ff74b 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/cran_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -113,12 +114,14 @@ class CranPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -152,6 +155,7 @@ 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', @@ -203,16 +207,18 @@ class CranPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, r_version=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """CranPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -247,6 +253,7 @@ 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 @@ -298,12 +305,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -365,6 +374,8 @@ 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: @@ -467,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -479,6 +492,8 @@ 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 @@ -1115,6 +1130,29 @@ 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. @@ -2276,6 +2314,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this CranPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this CranPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this CranPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this CranPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this CranPackageUpload. @@ -2409,6 +2470,27 @@ 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 c7c5fb53..f0a1b589 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,35 +34,43 @@ class CranPackageUploadRequest(object): """ swagger_types = { 'architecture': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'r_version': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'architecture': 'architecture', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'r_version': 'r_version', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, architecture=None, package_file=None, r_version=None, republish=None, tags=None, _configuration=None): # noqa: E501 + 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 """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 @@ -70,6 +78,8 @@ def __init__(self, architecture=None, package_file=None, r_version=None, republi 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): @@ -97,6 +107,29 @@ 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. @@ -206,6 +239,27 @@ 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 dbf8370c..c4ff1235 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/dart_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class DartPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class DartPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """DartPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DartPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this DartPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DartPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this DartPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DartPackageUpload. @@ -2375,6 +2436,27 @@ 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 e171256e..5c0268ef 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,33 +33,66 @@ class DartPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 c18ce285..7e55c537 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class DebPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class DebPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """DebPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DebPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this DebPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DebPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this DebPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DebPackageUpload. @@ -2375,6 +2436,27 @@ 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 ed8b05be..a8f39dbd 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,23 +36,27 @@ class DebPackageUploadRequest(object): 'changes_file': 'str', 'component': 'str', 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', 'sources_file': 'str', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, changes_file=None, component='main', distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 + 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 """DebPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -61,10 +65,12 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa 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: @@ -72,6 +78,8 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa 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 @@ -79,6 +87,8 @@ def __init__(self, changes_file=None, component='main', distribution=None, packa 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): @@ -166,6 +176,29 @@ 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. @@ -272,6 +305,27 @@ 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 e11964d2..a09f3a32 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/docker_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class DockerPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class DockerPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """DockerPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this DockerPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this DockerPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this DockerPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this DockerPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this DockerPackageUpload. @@ -2375,6 +2436,27 @@ 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 07cb7fbd..f0664f73 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,33 +33,66 @@ class DockerPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 b441b29b..e7326770 100644 --- a/bindings/python/src/cloudsmith_api/models/generic_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/generic_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class GenericPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class GenericPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """GenericPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2245,6 +2283,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this GenericPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this GenericPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this GenericPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this GenericPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this GenericPackageUpload. @@ -2381,6 +2442,27 @@ 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 e498fd66..3a5eded2 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,37 +34,45 @@ class GenericPackageUploadRequest(object): """ swagger_types = { 'filepath': 'str', + 'is_malware_detected': 'bool', 'name': 'str', 'package_file': 'str', 'republish': 'bool', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'filepath': 'filepath', + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, filepath=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + 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 """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 @@ -74,6 +82,8 @@ def __init__(self, filepath=None, name=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 filepath(self): @@ -106,6 +116,29 @@ 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. @@ -238,6 +271,27 @@ 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 f6dfae74..35b9120a 100644 --- a/bindings/python/src/cloudsmith_api/models/go_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/go_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class GoPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class GoPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """GoPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this GoPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this GoPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this GoPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this GoPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this GoPackageUpload. @@ -2375,6 +2436,27 @@ 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 0cd8b1a1..5f620d33 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,33 +33,66 @@ class GoPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 59c8f58a..93b96ab5 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/helm_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class HelmPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class HelmPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """HelmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HelmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this HelmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HelmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this HelmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HelmPackageUpload. @@ -2375,6 +2436,27 @@ 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 59333389..92c5a290 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,31 +33,39 @@ 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' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'provenance_file': 'provenance_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, provenance_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, provenance_file=None, republish=None, tags=None, vulnerability_counts=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 @@ -65,6 +73,31 @@ def __init__(self, package_file=None, provenance_file=None, republish=None, tags 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): @@ -172,6 +205,27 @@ 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 c5416998..35269f51 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/hex_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class HexPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class HexPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """HexPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HexPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this HexPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HexPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this HexPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HexPackageUpload. @@ -2375,6 +2436,27 @@ 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 6bab3bd5..ee455f25 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,33 +33,66 @@ class HexPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 05b22bc7..b9783d13 100644 --- a/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/huggingface_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class HuggingfacePackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class HuggingfacePackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """HuggingfacePackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this HuggingfacePackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this HuggingfacePackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this HuggingfacePackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this HuggingfacePackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this HuggingfacePackageUpload. @@ -2375,6 +2436,27 @@ 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 0a7a6c47..44541f64 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,33 +33,66 @@ class HuggingfacePackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 86996f98..d44a7ba7 100644 --- a/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/luarocks_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class LuarocksPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class LuarocksPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """LuarocksPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this LuarocksPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this LuarocksPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this LuarocksPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this LuarocksPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this LuarocksPackageUpload. @@ -2375,6 +2436,27 @@ 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 ba63584e..ab1c7889 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,33 +33,66 @@ class LuarocksPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 5ced03a3..76bbcf5b 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -64,6 +64,7 @@ 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', @@ -117,12 +118,14 @@ class MavenPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -158,6 +161,7 @@ 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', @@ -211,16 +215,18 @@ class MavenPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, packaging=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, sbt_version=None, scala_version=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """MavenPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -257,6 +263,7 @@ 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 @@ -310,12 +317,14 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -381,6 +390,8 @@ 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: @@ -487,6 +498,8 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -499,6 +512,8 @@ 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 @@ -1187,6 +1202,29 @@ 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. @@ -2393,6 +2431,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this MavenPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this MavenPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this MavenPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this MavenPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this MavenPackageUpload. @@ -2529,6 +2590,27 @@ 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 9f6369f7..42174ee1 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,6 +36,7 @@ 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', @@ -47,13 +48,15 @@ class MavenPackageUploadRequest(object): 'sources_file': 'str', 'tags': 'str', 'tests_file': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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', @@ -65,10 +68,11 @@ class MavenPackageUploadRequest(object): 'sources_file': 'sources_file', 'tags': 'tags', 'tests_file': 'tests_file', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - 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 + 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 """MavenPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -77,6 +81,7 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N 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 @@ -89,6 +94,7 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N self._tags = None self._tests_file = None self._version = None + self._vulnerability_counts = None self.discriminator = None if artifact_id is not None: @@ -97,6 +103,8 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N 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: @@ -120,6 +128,8 @@ def __init__(self, artifact_id=None, extra_files=None, group_id=None, ivy_file=N 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): @@ -196,6 +206,29 @@ 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. @@ -506,6 +539,27 @@ 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 2d674f79..f4767aa6 100644 --- a/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/mcp_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class McpPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class McpPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """McpPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this McpPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this McpPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this McpPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this McpPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this McpPackageUpload. @@ -2378,6 +2439,27 @@ 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 2db8655f..5796c407 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,31 +33,39 @@ 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' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, version=None, vulnerability_counts=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 @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, tags=None, version=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): @@ -172,6 +205,27 @@ 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/npm_package_upload.py b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py index 4fefaade..d06ceb2b 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/npm_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class NpmPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class NpmPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """NpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this NpmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this NpmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this NpmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this NpmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this NpmPackageUpload. @@ -2375,6 +2436,27 @@ 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 fe828c46..3dd80a8e 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,31 +33,39 @@ 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' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'npm_dist_tag': 'npm_dist_tag', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, npm_dist_tag='latest', package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + 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 """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 @@ -65,6 +73,31 @@ def __init__(self, npm_dist_tag='latest', package_file=None, republish=None, tag 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): @@ -172,6 +205,27 @@ 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 8bf2794e..6cc439f9 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class NugetPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class NugetPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """NugetPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this NugetPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this NugetPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this NugetPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this NugetPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this NugetPackageUpload. @@ -2375,6 +2436,27 @@ 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 220b2734..1896c7f5 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,31 +33,39 @@ 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' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', 'symbols_file': 'symbols_file', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, symbols_file=None, tags=None, vulnerability_counts=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 @@ -65,6 +73,31 @@ def __init__(self, package_file=None, republish=None, symbols_file=None, tags=No 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): @@ -172,6 +205,27 @@ 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/p2_package_upload.py b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py index 754110e6..e5b66120 100644 --- a/bindings/python/src/cloudsmith_api/models/p2_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/p2_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class P2PackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class P2PackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """P2PackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this P2PackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this P2PackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this P2PackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this P2PackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this P2PackageUpload. @@ -2375,6 +2436,27 @@ 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 807fe5e7..1ed26e0c 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,33 +33,66 @@ class P2PackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 5b92dc2f..0f43e708 100644 --- a/bindings/python/src/cloudsmith_api/models/package.py +++ b/bindings/python/src/cloudsmith_api/models/package.py @@ -63,6 +63,7 @@ class Package(object): 'is_deleteable': 'bool', 'is_downloadable': 'bool', 'is_hidden': 'bool', + 'is_malware_detected': 'bool', 'is_moveable': 'bool', 'is_quarantinable': 'bool', 'is_quarantined': 'bool', @@ -114,12 +115,14 @@ class Package(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +157,7 @@ class Package(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', @@ -205,16 +209,18 @@ class Package(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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() @@ -250,6 +256,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +379,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1146,6 +1161,29 @@ def is_hidden(self, is_hidden): self._is_hidden = is_hidden + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this Package. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this Package. + :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 Package. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this Package. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_moveable(self): """Gets the is_moveable of this Package. @@ -2299,6 +2337,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this Package. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this Package. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this Package. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this Package. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this Package. @@ -2432,6 +2493,27 @@ def version_orig(self, version_orig): self._version_orig = version_orig + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this Package. + + + :return: The vulnerability_counts of this Package. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this Package. + + + :param vulnerability_counts: The vulnerability_counts of this Package. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + @property def vulnerability_scan_results_url(self): """Gets the vulnerability_scan_results_url 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 2674ee73..9d0c8d07 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy.py @@ -63,6 +63,7 @@ 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', @@ -114,12 +115,14 @@ class PackageCopy(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +157,7 @@ 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', @@ -205,16 +209,18 @@ class PackageCopy(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PackageCopy - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +256,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +379,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1146,6 +1161,29 @@ 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. @@ -2301,6 +2339,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageCopy. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageCopy. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageCopy. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageCopy. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageCopy. @@ -2434,6 +2495,27 @@ 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 0dbe90c0..0305363e 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy_request.py @@ -34,27 +34,37 @@ class PackageCopyRequest(object): """ swagger_types = { 'destination': 'str', - 'republish': 'bool' + 'is_malware_detected': 'bool', + 'republish': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'destination': 'destination', - 'republish': 'republish' + 'is_malware_detected': 'is_malware_detected', + 'republish': 'republish', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, destination=None, republish=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, is_malware_detected=None, republish=None, vulnerability_counts=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): @@ -84,6 +94,29 @@ 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. @@ -107,6 +140,27 @@ 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 new file mode 100644 index 00000000..eb860b88 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/package_detail.py @@ -0,0 +1,2614 @@ +# 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 PackageDetail(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'architectures': 'list[Architecture]', + 'cdn_url': 'str', + 'checksum_md5': 'str', + 'checksum_sha1': 'str', + 'checksum_sha256': 'str', + 'checksum_sha512': 'str', + 'dependencies_checksum_md5': 'str', + 'dependencies_url': 'str', + 'description': 'str', + 'display_name': 'str', + 'distro': 'Distribution', + 'distro_version': 'DistributionVersion', + 'downloads': 'int', + 'epoch': 'int', + 'extension': 'str', + 'filename': 'str', + 'filepath': 'str', + 'files': 'list[PackageFile]', + 'format': 'str', + 'format_url': 'str', + 'freeable_storage': 'int', + 'fully_qualified_name': 'str', + 'has_dependencies': 'bool', + 'identifier_perm': 'str', + 'identifiers': 'dict(str, str)', + 'indexed': 'bool', + 'is_cancellable': 'bool', + 'is_copyable': 'bool', + 'is_deleteable': 'bool', + 'is_downloadable': 'bool', + 'is_hidden': 'bool', + 'is_malware_detected': 'bool', + 'is_moveable': 'bool', + 'is_quarantinable': 'bool', + 'is_quarantined': 'bool', + 'is_resyncable': 'bool', + 'is_security_scannable': 'bool', + 'is_sync_awaiting': 'bool', + 'is_sync_completed': 'bool', + 'is_sync_failed': 'bool', + 'is_sync_in_flight': 'bool', + 'is_sync_in_progress': 'bool', + 'license': 'str', + 'name': 'str', + 'namespace': 'str', + 'namespace_url': 'str', + 'num_files': 'int', + 'origin_repository': 'str', + 'origin_repository_url': 'str', + 'osi_approved': 'bool', + 'package_type': 'int', + 'policy_violated': 'bool', + 'raw_license': 'str', + 'release': 'str', + 'repository': 'str', + 'repository_url': 'str', + 'security_scan_completed_at': 'datetime', + 'security_scan_started_at': 'datetime', + 'security_scan_status': 'str', + 'security_scan_status_updated_at': 'datetime', + 'self_html_url': 'str', + 'self_url': 'str', + 'self_webapp_url': 'str', + 'signature_url': 'str', + 'size': 'int', + 'slug': 'str', + 'slug_perm': 'str', + 'spdx_license': 'str', + 'stage': 'int', + 'stage_str': 'str', + 'stage_updated_at': 'datetime', + 'status': 'int', + 'status_reason': 'str', + 'status_str': 'str', + 'status_updated_at': 'datetime', + 'status_url': 'str', + 'subtype': 'str', + 'summary': 'str', + 'sync_finished_at': 'datetime', + 'sync_progress': 'int', + 'tags': 'Tags', + 'tags_automatic': 'Tags', + 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', + 'type_display': 'str', + 'uploaded_at': 'datetime', + 'uploader': 'str', + 'uploader_url': 'str', + 'version': 'str', + 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', + 'vulnerability_scan_results_url': 'str' + } + + attribute_map = { + 'architectures': 'architectures', + 'cdn_url': 'cdn_url', + 'checksum_md5': 'checksum_md5', + 'checksum_sha1': 'checksum_sha1', + 'checksum_sha256': 'checksum_sha256', + 'checksum_sha512': 'checksum_sha512', + 'dependencies_checksum_md5': 'dependencies_checksum_md5', + 'dependencies_url': 'dependencies_url', + 'description': 'description', + 'display_name': 'display_name', + 'distro': 'distro', + 'distro_version': 'distro_version', + 'downloads': 'downloads', + 'epoch': 'epoch', + 'extension': 'extension', + 'filename': 'filename', + 'filepath': 'filepath', + 'files': 'files', + 'format': 'format', + 'format_url': 'format_url', + 'freeable_storage': 'freeable_storage', + 'fully_qualified_name': 'fully_qualified_name', + 'has_dependencies': 'has_dependencies', + 'identifier_perm': 'identifier_perm', + 'identifiers': 'identifiers', + 'indexed': 'indexed', + 'is_cancellable': 'is_cancellable', + 'is_copyable': 'is_copyable', + 'is_deleteable': 'is_deleteable', + 'is_downloadable': 'is_downloadable', + 'is_hidden': 'is_hidden', + 'is_malware_detected': 'is_malware_detected', + 'is_moveable': 'is_moveable', + 'is_quarantinable': 'is_quarantinable', + 'is_quarantined': 'is_quarantined', + 'is_resyncable': 'is_resyncable', + 'is_security_scannable': 'is_security_scannable', + 'is_sync_awaiting': 'is_sync_awaiting', + 'is_sync_completed': 'is_sync_completed', + 'is_sync_failed': 'is_sync_failed', + 'is_sync_in_flight': 'is_sync_in_flight', + 'is_sync_in_progress': 'is_sync_in_progress', + 'license': 'license', + 'name': 'name', + 'namespace': 'namespace', + 'namespace_url': 'namespace_url', + 'num_files': 'num_files', + 'origin_repository': 'origin_repository', + 'origin_repository_url': 'origin_repository_url', + 'osi_approved': 'osi_approved', + 'package_type': 'package_type', + 'policy_violated': 'policy_violated', + 'raw_license': 'raw_license', + 'release': 'release', + 'repository': 'repository', + 'repository_url': 'repository_url', + 'security_scan_completed_at': 'security_scan_completed_at', + 'security_scan_started_at': 'security_scan_started_at', + 'security_scan_status': 'security_scan_status', + 'security_scan_status_updated_at': 'security_scan_status_updated_at', + 'self_html_url': 'self_html_url', + 'self_url': 'self_url', + 'self_webapp_url': 'self_webapp_url', + 'signature_url': 'signature_url', + 'size': 'size', + 'slug': 'slug', + 'slug_perm': 'slug_perm', + 'spdx_license': 'spdx_license', + 'stage': 'stage', + 'stage_str': 'stage_str', + 'stage_updated_at': 'stage_updated_at', + 'status': 'status', + 'status_reason': 'status_reason', + 'status_str': 'status_str', + 'status_updated_at': 'status_updated_at', + 'status_url': 'status_url', + 'subtype': 'subtype', + 'summary': 'summary', + 'sync_finished_at': 'sync_finished_at', + 'sync_progress': 'sync_progress', + 'tags': 'tags', + 'tags_automatic': 'tags_automatic', + 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', + 'type_display': 'type_display', + 'uploaded_at': 'uploaded_at', + 'uploader': 'uploader', + '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, 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, 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() + self._configuration = _configuration + + self._architectures = None + self._cdn_url = None + self._checksum_md5 = None + self._checksum_sha1 = None + self._checksum_sha256 = None + self._checksum_sha512 = None + self._dependencies_checksum_md5 = None + self._dependencies_url = None + self._description = None + self._display_name = None + self._distro = None + self._distro_version = None + self._downloads = None + self._epoch = None + self._extension = None + self._filename = None + self._filepath = None + self._files = None + self._format = None + self._format_url = None + self._freeable_storage = None + self._fully_qualified_name = None + self._has_dependencies = None + self._identifier_perm = None + self._identifiers = None + self._indexed = None + self._is_cancellable = None + self._is_copyable = None + self._is_deleteable = None + self._is_downloadable = None + self._is_hidden = None + self._is_malware_detected = None + self._is_moveable = None + self._is_quarantinable = None + self._is_quarantined = None + self._is_resyncable = None + self._is_security_scannable = None + self._is_sync_awaiting = None + self._is_sync_completed = None + self._is_sync_failed = None + self._is_sync_in_flight = None + self._is_sync_in_progress = None + self._license = None + self._name = None + self._namespace = None + self._namespace_url = None + self._num_files = None + self._origin_repository = None + self._origin_repository_url = None + self._osi_approved = None + self._package_type = None + self._policy_violated = None + self._raw_license = None + self._release = None + self._repository = None + self._repository_url = None + self._security_scan_completed_at = None + self._security_scan_started_at = None + self._security_scan_status = None + self._security_scan_status_updated_at = None + self._self_html_url = None + self._self_url = None + self._self_webapp_url = None + self._signature_url = None + self._size = None + self._slug = None + self._slug_perm = None + self._spdx_license = None + self._stage = None + self._stage_str = None + self._stage_updated_at = None + self._status = None + self._status_reason = None + self._status_str = None + self._status_updated_at = None + self._status_url = None + self._subtype = None + self._summary = None + self._sync_finished_at = None + self._sync_progress = None + self._tags = None + self._tags_automatic = None + self._tags_immutable = None + self._tags_static = None + self._type_display = None + self._uploaded_at = None + self._uploader = None + self._uploader_url = None + self._version = None + self._version_orig = None + self._vulnerability_counts = None + self._vulnerability_scan_results_url = None + self.discriminator = None + + if architectures is not None: + self.architectures = architectures + if cdn_url is not None: + self.cdn_url = cdn_url + if checksum_md5 is not None: + self.checksum_md5 = checksum_md5 + if checksum_sha1 is not None: + self.checksum_sha1 = checksum_sha1 + if checksum_sha256 is not None: + self.checksum_sha256 = checksum_sha256 + if checksum_sha512 is not None: + self.checksum_sha512 = checksum_sha512 + if dependencies_checksum_md5 is not None: + self.dependencies_checksum_md5 = dependencies_checksum_md5 + if dependencies_url is not None: + self.dependencies_url = dependencies_url + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if distro is not None: + self.distro = distro + if distro_version is not None: + self.distro_version = distro_version + if downloads is not None: + self.downloads = downloads + if epoch is not None: + self.epoch = epoch + if extension is not None: + self.extension = extension + if filename is not None: + self.filename = filename + if filepath is not None: + self.filepath = filepath + if files is not None: + self.files = files + if format is not None: + self.format = format + if format_url is not None: + self.format_url = format_url + if freeable_storage is not None: + self.freeable_storage = freeable_storage + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name + if has_dependencies is not None: + self.has_dependencies = has_dependencies + if identifier_perm is not None: + self.identifier_perm = identifier_perm + if identifiers is not None: + self.identifiers = identifiers + if indexed is not None: + self.indexed = indexed + if is_cancellable is not None: + self.is_cancellable = is_cancellable + if is_copyable is not None: + self.is_copyable = is_copyable + if is_deleteable is not None: + self.is_deleteable = is_deleteable + if is_downloadable is not None: + self.is_downloadable = is_downloadable + if is_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: + self.is_quarantinable = is_quarantinable + if is_quarantined is not None: + self.is_quarantined = is_quarantined + if is_resyncable is not None: + self.is_resyncable = is_resyncable + if is_security_scannable is not None: + self.is_security_scannable = is_security_scannable + if is_sync_awaiting is not None: + self.is_sync_awaiting = is_sync_awaiting + if is_sync_completed is not None: + self.is_sync_completed = is_sync_completed + if is_sync_failed is not None: + self.is_sync_failed = is_sync_failed + if is_sync_in_flight is not None: + self.is_sync_in_flight = is_sync_in_flight + if is_sync_in_progress is not None: + self.is_sync_in_progress = is_sync_in_progress + if license is not None: + self.license = license + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if namespace_url is not None: + self.namespace_url = namespace_url + if num_files is not None: + self.num_files = num_files + if origin_repository is not None: + self.origin_repository = origin_repository + if origin_repository_url is not None: + self.origin_repository_url = origin_repository_url + if osi_approved is not None: + self.osi_approved = osi_approved + if package_type is not None: + self.package_type = package_type + if policy_violated is not None: + self.policy_violated = policy_violated + if raw_license is not None: + self.raw_license = raw_license + if release is not None: + self.release = release + if repository is not None: + self.repository = repository + if repository_url is not None: + self.repository_url = repository_url + if security_scan_completed_at is not None: + self.security_scan_completed_at = security_scan_completed_at + if security_scan_started_at is not None: + self.security_scan_started_at = security_scan_started_at + if security_scan_status is not None: + self.security_scan_status = security_scan_status + if security_scan_status_updated_at is not None: + self.security_scan_status_updated_at = security_scan_status_updated_at + if self_html_url is not None: + self.self_html_url = self_html_url + if self_url is not None: + self.self_url = self_url + if self_webapp_url is not None: + self.self_webapp_url = self_webapp_url + if signature_url is not None: + self.signature_url = signature_url + if size is not None: + self.size = size + if slug is not None: + self.slug = slug + if slug_perm is not None: + self.slug_perm = slug_perm + if spdx_license is not None: + self.spdx_license = spdx_license + if stage is not None: + self.stage = stage + if stage_str is not None: + self.stage_str = stage_str + if stage_updated_at is not None: + self.stage_updated_at = stage_updated_at + if status is not None: + self.status = status + if status_reason is not None: + self.status_reason = status_reason + if status_str is not None: + self.status_str = status_str + if status_updated_at is not None: + self.status_updated_at = status_updated_at + if status_url is not None: + self.status_url = status_url + if subtype is not None: + self.subtype = subtype + if summary is not None: + self.summary = summary + if sync_finished_at is not None: + self.sync_finished_at = sync_finished_at + if sync_progress is not None: + self.sync_progress = sync_progress + if tags is not None: + self.tags = tags + if tags_automatic is not None: + self.tags_automatic = tags_automatic + if tags_immutable is not None: + self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static + if type_display is not None: + self.type_display = type_display + if uploaded_at is not None: + self.uploaded_at = uploaded_at + if uploader is not None: + self.uploader = uploader + if uploader_url is not None: + self.uploader_url = uploader_url + if version is not None: + self.version = version + if version_orig is not None: + self.version_orig = version_orig + if vulnerability_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 + + @property + def architectures(self): + """Gets the architectures of this PackageDetail. + + + :return: The architectures of this PackageDetail. + :rtype: list[Architecture] + """ + return self._architectures + + @architectures.setter + def architectures(self, architectures): + """Sets the architectures of this PackageDetail. + + + :param architectures: The architectures of this PackageDetail. + :type: list[Architecture] + """ + + self._architectures = architectures + + @property + def cdn_url(self): + """Gets the cdn_url of this PackageDetail. + + + :return: The cdn_url of this PackageDetail. + :rtype: str + """ + return self._cdn_url + + @cdn_url.setter + def cdn_url(self, cdn_url): + """Sets the cdn_url of this PackageDetail. + + + :param cdn_url: The cdn_url of this PackageDetail. + :type: str + """ + + self._cdn_url = cdn_url + + @property + def checksum_md5(self): + """Gets the checksum_md5 of this PackageDetail. + + + :return: The checksum_md5 of this PackageDetail. + :rtype: str + """ + return self._checksum_md5 + + @checksum_md5.setter + def checksum_md5(self, checksum_md5): + """Sets the checksum_md5 of this PackageDetail. + + + :param checksum_md5: The checksum_md5 of this PackageDetail. + :type: str + """ + + self._checksum_md5 = checksum_md5 + + @property + def checksum_sha1(self): + """Gets the checksum_sha1 of this PackageDetail. + + + :return: The checksum_sha1 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha1 + + @checksum_sha1.setter + def checksum_sha1(self, checksum_sha1): + """Sets the checksum_sha1 of this PackageDetail. + + + :param checksum_sha1: The checksum_sha1 of this PackageDetail. + :type: str + """ + + self._checksum_sha1 = checksum_sha1 + + @property + def checksum_sha256(self): + """Gets the checksum_sha256 of this PackageDetail. + + + :return: The checksum_sha256 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha256 + + @checksum_sha256.setter + def checksum_sha256(self, checksum_sha256): + """Sets the checksum_sha256 of this PackageDetail. + + + :param checksum_sha256: The checksum_sha256 of this PackageDetail. + :type: str + """ + + self._checksum_sha256 = checksum_sha256 + + @property + def checksum_sha512(self): + """Gets the checksum_sha512 of this PackageDetail. + + + :return: The checksum_sha512 of this PackageDetail. + :rtype: str + """ + return self._checksum_sha512 + + @checksum_sha512.setter + def checksum_sha512(self, checksum_sha512): + """Sets the checksum_sha512 of this PackageDetail. + + + :param checksum_sha512: The checksum_sha512 of this PackageDetail. + :type: str + """ + + self._checksum_sha512 = checksum_sha512 + + @property + def dependencies_checksum_md5(self): + """Gets the dependencies_checksum_md5 of this PackageDetail. + + A checksum of all of the package's dependencies. + + :return: The dependencies_checksum_md5 of this PackageDetail. + :rtype: str + """ + return self._dependencies_checksum_md5 + + @dependencies_checksum_md5.setter + def dependencies_checksum_md5(self, dependencies_checksum_md5): + """Sets the dependencies_checksum_md5 of this PackageDetail. + + A checksum of all of the package's dependencies. + + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageDetail. + :type: str + """ + + self._dependencies_checksum_md5 = dependencies_checksum_md5 + + @property + def dependencies_url(self): + """Gets the dependencies_url of this PackageDetail. + + + :return: The dependencies_url of this PackageDetail. + :rtype: str + """ + return self._dependencies_url + + @dependencies_url.setter + def dependencies_url(self, dependencies_url): + """Sets the dependencies_url of this PackageDetail. + + + :param dependencies_url: The dependencies_url of this PackageDetail. + :type: str + """ + + self._dependencies_url = dependencies_url + + @property + def description(self): + """Gets the description of this PackageDetail. + + A textual description of this package. + + :return: The description of this PackageDetail. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PackageDetail. + + A textual description of this package. + + :param description: The description of this PackageDetail. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this PackageDetail. + + + :return: The display_name of this PackageDetail. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this PackageDetail. + + + :param display_name: The display_name of this PackageDetail. + :type: str + """ + + self._display_name = display_name + + @property + def distro(self): + """Gets the distro of this PackageDetail. + + + :return: The distro of this PackageDetail. + :rtype: Distribution + """ + return self._distro + + @distro.setter + def distro(self, distro): + """Sets the distro of this PackageDetail. + + + :param distro: The distro of this PackageDetail. + :type: Distribution + """ + + self._distro = distro + + @property + def distro_version(self): + """Gets the distro_version of this PackageDetail. + + + :return: The distro_version of this PackageDetail. + :rtype: DistributionVersion + """ + return self._distro_version + + @distro_version.setter + def distro_version(self, distro_version): + """Sets the distro_version of this PackageDetail. + + + :param distro_version: The distro_version of this PackageDetail. + :type: DistributionVersion + """ + + self._distro_version = distro_version + + @property + def downloads(self): + """Gets the downloads of this PackageDetail. + + + :return: The downloads of this PackageDetail. + :rtype: int + """ + return self._downloads + + @downloads.setter + def downloads(self, downloads): + """Sets the downloads of this PackageDetail. + + + :param downloads: The downloads of this PackageDetail. + :type: int + """ + + self._downloads = downloads + + @property + def epoch(self): + """Gets the epoch of this PackageDetail. + + The epoch of the package version (if any). + + :return: The epoch of this PackageDetail. + :rtype: int + """ + return self._epoch + + @epoch.setter + def epoch(self, epoch): + """Sets the epoch of this PackageDetail. + + The epoch of the package version (if any). + + :param epoch: The epoch of this PackageDetail. + :type: int + """ + + self._epoch = epoch + + @property + def extension(self): + """Gets the extension of this PackageDetail. + + + :return: The extension of this PackageDetail. + :rtype: str + """ + return self._extension + + @extension.setter + def extension(self, extension): + """Sets the extension of this PackageDetail. + + + :param extension: The extension of this PackageDetail. + :type: str + """ + + self._extension = extension + + @property + def filename(self): + """Gets the filename of this PackageDetail. + + + :return: The filename of this PackageDetail. + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this PackageDetail. + + + :param filename: The filename of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + filename is not None and len(filename) < 1): + raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 + + self._filename = filename + + @property + def filepath(self): + """Gets the filepath of this PackageDetail. + + Full path to the file, including filename e.g. bin/utils/tool.tar.gz + + :return: The filepath of this PackageDetail. + :rtype: str + """ + return self._filepath + + @filepath.setter + def filepath(self, filepath): + """Sets the filepath of this PackageDetail. + + Full path to the file, including filename e.g. bin/utils/tool.tar.gz + + :param filepath: The filepath of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + filepath is not None and len(filepath) < 1): + raise ValueError("Invalid value for `filepath`, length must be greater than or equal to `1`") # noqa: E501 + + self._filepath = filepath + + @property + def files(self): + """Gets the files of this PackageDetail. + + + :return: The files of this PackageDetail. + :rtype: list[PackageFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this PackageDetail. + + + :param files: The files of this PackageDetail. + :type: list[PackageFile] + """ + + self._files = files + + @property + def format(self): + """Gets the format of this PackageDetail. + + + :return: The format of this PackageDetail. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this PackageDetail. + + + :param format: The format of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + format is not None and len(format) < 1): + raise ValueError("Invalid value for `format`, length must be greater than or equal to `1`") # noqa: E501 + + self._format = format + + @property + def format_url(self): + """Gets the format_url of this PackageDetail. + + + :return: The format_url of this PackageDetail. + :rtype: str + """ + return self._format_url + + @format_url.setter + def format_url(self, format_url): + """Sets the format_url of this PackageDetail. + + + :param format_url: The format_url of this PackageDetail. + :type: str + """ + + self._format_url = format_url + + @property + def freeable_storage(self): + """Gets the freeable_storage of this PackageDetail. + + Amount of storage that will be freed if this package is deleted + + :return: The freeable_storage of this PackageDetail. + :rtype: int + """ + return self._freeable_storage + + @freeable_storage.setter + def freeable_storage(self, freeable_storage): + """Sets the freeable_storage of this PackageDetail. + + Amount of storage that will be freed if this package is deleted + + :param freeable_storage: The freeable_storage of this PackageDetail. + :type: int + """ + + self._freeable_storage = freeable_storage + + @property + def fully_qualified_name(self): + """Gets the fully_qualified_name of this PackageDetail. + + + :return: The fully_qualified_name of this PackageDetail. + :rtype: str + """ + return self._fully_qualified_name + + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this PackageDetail. + + + :param fully_qualified_name: The fully_qualified_name of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + fully_qualified_name is not None and len(fully_qualified_name) < 1): + raise ValueError("Invalid value for `fully_qualified_name`, length must be greater than or equal to `1`") # noqa: E501 + + self._fully_qualified_name = fully_qualified_name + + @property + def has_dependencies(self): + """Gets the has_dependencies of this PackageDetail. + + Whether the package has any dependencies (top-level or from its SBOM). + + :return: The has_dependencies of this PackageDetail. + :rtype: bool + """ + return self._has_dependencies + + @has_dependencies.setter + def has_dependencies(self, has_dependencies): + """Sets the has_dependencies of this PackageDetail. + + Whether the package has any dependencies (top-level or from its SBOM). + + :param has_dependencies: The has_dependencies of this PackageDetail. + :type: bool + """ + + self._has_dependencies = has_dependencies + + @property + def identifier_perm(self): + """Gets the identifier_perm of this PackageDetail. + + Unique and permanent identifier for the package. + + :return: The identifier_perm of this PackageDetail. + :rtype: str + """ + return self._identifier_perm + + @identifier_perm.setter + def identifier_perm(self, identifier_perm): + """Sets the identifier_perm of this PackageDetail. + + Unique and permanent identifier for the package. + + :param identifier_perm: The identifier_perm of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + identifier_perm is not None and len(identifier_perm) < 1): + raise ValueError("Invalid value for `identifier_perm`, length must be greater than or equal to `1`") # noqa: E501 + + self._identifier_perm = identifier_perm + + @property + def identifiers(self): + """Gets the identifiers of this PackageDetail. + + Return a map of identifier field names and their values. + + :return: The identifiers of this PackageDetail. + :rtype: dict(str, str) + """ + return self._identifiers + + @identifiers.setter + def identifiers(self, identifiers): + """Sets the identifiers of this PackageDetail. + + Return a map of identifier field names and their values. + + :param identifiers: The identifiers of this PackageDetail. + :type: dict(str, str) + """ + + self._identifiers = identifiers + + @property + def indexed(self): + """Gets the indexed of this PackageDetail. + + + :return: The indexed of this PackageDetail. + :rtype: bool + """ + return self._indexed + + @indexed.setter + def indexed(self, indexed): + """Sets the indexed of this PackageDetail. + + + :param indexed: The indexed of this PackageDetail. + :type: bool + """ + + self._indexed = indexed + + @property + def is_cancellable(self): + """Gets the is_cancellable of this PackageDetail. + + + :return: The is_cancellable of this PackageDetail. + :rtype: bool + """ + return self._is_cancellable + + @is_cancellable.setter + def is_cancellable(self, is_cancellable): + """Sets the is_cancellable of this PackageDetail. + + + :param is_cancellable: The is_cancellable of this PackageDetail. + :type: bool + """ + + self._is_cancellable = is_cancellable + + @property + def is_copyable(self): + """Gets the is_copyable of this PackageDetail. + + + :return: The is_copyable of this PackageDetail. + :rtype: bool + """ + return self._is_copyable + + @is_copyable.setter + def is_copyable(self, is_copyable): + """Sets the is_copyable of this PackageDetail. + + + :param is_copyable: The is_copyable of this PackageDetail. + :type: bool + """ + + self._is_copyable = is_copyable + + @property + def is_deleteable(self): + """Gets the is_deleteable of this PackageDetail. + + + :return: The is_deleteable of this PackageDetail. + :rtype: bool + """ + return self._is_deleteable + + @is_deleteable.setter + def is_deleteable(self, is_deleteable): + """Sets the is_deleteable of this PackageDetail. + + + :param is_deleteable: The is_deleteable of this PackageDetail. + :type: bool + """ + + self._is_deleteable = is_deleteable + + @property + def is_downloadable(self): + """Gets the is_downloadable of this PackageDetail. + + + :return: The is_downloadable of this PackageDetail. + :rtype: bool + """ + return self._is_downloadable + + @is_downloadable.setter + def is_downloadable(self, is_downloadable): + """Sets the is_downloadable of this PackageDetail. + + + :param is_downloadable: The is_downloadable of this PackageDetail. + :type: bool + """ + + self._is_downloadable = is_downloadable + + @property + def is_hidden(self): + """Gets the is_hidden of this PackageDetail. + + + :return: The is_hidden of this PackageDetail. + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this PackageDetail. + + + :param is_hidden: The is_hidden of this PackageDetail. + :type: bool + """ + + self._is_hidden = is_hidden + + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this PackageDetail. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this PackageDetail. + :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 PackageDetail. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this PackageDetail. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + + @property + def is_moveable(self): + """Gets the is_moveable of this PackageDetail. + + + :return: The is_moveable of this PackageDetail. + :rtype: bool + """ + return self._is_moveable + + @is_moveable.setter + def is_moveable(self, is_moveable): + """Sets the is_moveable of this PackageDetail. + + + :param is_moveable: The is_moveable of this PackageDetail. + :type: bool + """ + + self._is_moveable = is_moveable + + @property + def is_quarantinable(self): + """Gets the is_quarantinable of this PackageDetail. + + + :return: The is_quarantinable of this PackageDetail. + :rtype: bool + """ + return self._is_quarantinable + + @is_quarantinable.setter + def is_quarantinable(self, is_quarantinable): + """Sets the is_quarantinable of this PackageDetail. + + + :param is_quarantinable: The is_quarantinable of this PackageDetail. + :type: bool + """ + + self._is_quarantinable = is_quarantinable + + @property + def is_quarantined(self): + """Gets the is_quarantined of this PackageDetail. + + + :return: The is_quarantined of this PackageDetail. + :rtype: bool + """ + return self._is_quarantined + + @is_quarantined.setter + def is_quarantined(self, is_quarantined): + """Sets the is_quarantined of this PackageDetail. + + + :param is_quarantined: The is_quarantined of this PackageDetail. + :type: bool + """ + + self._is_quarantined = is_quarantined + + @property + def is_resyncable(self): + """Gets the is_resyncable of this PackageDetail. + + + :return: The is_resyncable of this PackageDetail. + :rtype: bool + """ + return self._is_resyncable + + @is_resyncable.setter + def is_resyncable(self, is_resyncable): + """Sets the is_resyncable of this PackageDetail. + + + :param is_resyncable: The is_resyncable of this PackageDetail. + :type: bool + """ + + self._is_resyncable = is_resyncable + + @property + def is_security_scannable(self): + """Gets the is_security_scannable of this PackageDetail. + + + :return: The is_security_scannable of this PackageDetail. + :rtype: bool + """ + return self._is_security_scannable + + @is_security_scannable.setter + def is_security_scannable(self, is_security_scannable): + """Sets the is_security_scannable of this PackageDetail. + + + :param is_security_scannable: The is_security_scannable of this PackageDetail. + :type: bool + """ + + self._is_security_scannable = is_security_scannable + + @property + def is_sync_awaiting(self): + """Gets the is_sync_awaiting of this PackageDetail. + + + :return: The is_sync_awaiting of this PackageDetail. + :rtype: bool + """ + return self._is_sync_awaiting + + @is_sync_awaiting.setter + def is_sync_awaiting(self, is_sync_awaiting): + """Sets the is_sync_awaiting of this PackageDetail. + + + :param is_sync_awaiting: The is_sync_awaiting of this PackageDetail. + :type: bool + """ + + self._is_sync_awaiting = is_sync_awaiting + + @property + def is_sync_completed(self): + """Gets the is_sync_completed of this PackageDetail. + + + :return: The is_sync_completed of this PackageDetail. + :rtype: bool + """ + return self._is_sync_completed + + @is_sync_completed.setter + def is_sync_completed(self, is_sync_completed): + """Sets the is_sync_completed of this PackageDetail. + + + :param is_sync_completed: The is_sync_completed of this PackageDetail. + :type: bool + """ + + self._is_sync_completed = is_sync_completed + + @property + def is_sync_failed(self): + """Gets the is_sync_failed of this PackageDetail. + + + :return: The is_sync_failed of this PackageDetail. + :rtype: bool + """ + return self._is_sync_failed + + @is_sync_failed.setter + def is_sync_failed(self, is_sync_failed): + """Sets the is_sync_failed of this PackageDetail. + + + :param is_sync_failed: The is_sync_failed of this PackageDetail. + :type: bool + """ + + self._is_sync_failed = is_sync_failed + + @property + def is_sync_in_flight(self): + """Gets the is_sync_in_flight of this PackageDetail. + + + :return: The is_sync_in_flight of this PackageDetail. + :rtype: bool + """ + return self._is_sync_in_flight + + @is_sync_in_flight.setter + def is_sync_in_flight(self, is_sync_in_flight): + """Sets the is_sync_in_flight of this PackageDetail. + + + :param is_sync_in_flight: The is_sync_in_flight of this PackageDetail. + :type: bool + """ + + self._is_sync_in_flight = is_sync_in_flight + + @property + def is_sync_in_progress(self): + """Gets the is_sync_in_progress of this PackageDetail. + + + :return: The is_sync_in_progress of this PackageDetail. + :rtype: bool + """ + return self._is_sync_in_progress + + @is_sync_in_progress.setter + def is_sync_in_progress(self, is_sync_in_progress): + """Sets the is_sync_in_progress of this PackageDetail. + + + :param is_sync_in_progress: The is_sync_in_progress of this PackageDetail. + :type: bool + """ + + self._is_sync_in_progress = is_sync_in_progress + + @property + def license(self): + """Gets the license of this PackageDetail. + + The license of this package. + + :return: The license of this PackageDetail. + :rtype: str + """ + return self._license + + @license.setter + def license(self, license): + """Sets the license of this PackageDetail. + + The license of this package. + + :param license: The license of this PackageDetail. + :type: str + """ + + self._license = license + + @property + def name(self): + """Gets the name of this PackageDetail. + + The name of this package. + + :return: The name of this PackageDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PackageDetail. + + The name of this package. + + :param name: The name of this PackageDetail. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this PackageDetail. + + + :return: The namespace of this PackageDetail. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this PackageDetail. + + + :param namespace: The namespace of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + namespace is not None and len(namespace) < 1): + raise ValueError("Invalid value for `namespace`, length must be greater than or equal to `1`") # noqa: E501 + + self._namespace = namespace + + @property + def namespace_url(self): + """Gets the namespace_url of this PackageDetail. + + + :return: The namespace_url of this PackageDetail. + :rtype: str + """ + return self._namespace_url + + @namespace_url.setter + def namespace_url(self, namespace_url): + """Sets the namespace_url of this PackageDetail. + + + :param namespace_url: The namespace_url of this PackageDetail. + :type: str + """ + + self._namespace_url = namespace_url + + @property + def num_files(self): + """Gets the num_files of this PackageDetail. + + + :return: The num_files of this PackageDetail. + :rtype: int + """ + return self._num_files + + @num_files.setter + def num_files(self, num_files): + """Sets the num_files of this PackageDetail. + + + :param num_files: The num_files of this PackageDetail. + :type: int + """ + + self._num_files = num_files + + @property + def origin_repository(self): + """Gets the origin_repository of this PackageDetail. + + + :return: The origin_repository of this PackageDetail. + :rtype: str + """ + return self._origin_repository + + @origin_repository.setter + def origin_repository(self, origin_repository): + """Sets the origin_repository of this PackageDetail. + + + :param origin_repository: The origin_repository of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + origin_repository is not None and len(origin_repository) < 1): + raise ValueError("Invalid value for `origin_repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._origin_repository = origin_repository + + @property + def origin_repository_url(self): + """Gets the origin_repository_url of this PackageDetail. + + + :return: The origin_repository_url of this PackageDetail. + :rtype: str + """ + return self._origin_repository_url + + @origin_repository_url.setter + def origin_repository_url(self, origin_repository_url): + """Sets the origin_repository_url of this PackageDetail. + + + :param origin_repository_url: The origin_repository_url of this PackageDetail. + :type: str + """ + + self._origin_repository_url = origin_repository_url + + @property + def osi_approved(self): + """Gets the osi_approved of this PackageDetail. + + Whether the package's SPDX license is OSI-approved. + + :return: The osi_approved of this PackageDetail. + :rtype: bool + """ + return self._osi_approved + + @osi_approved.setter + def osi_approved(self, osi_approved): + """Sets the osi_approved of this PackageDetail. + + Whether the package's SPDX license is OSI-approved. + + :param osi_approved: The osi_approved of this PackageDetail. + :type: bool + """ + + self._osi_approved = osi_approved + + @property + def package_type(self): + """Gets the package_type of this PackageDetail. + + The type of package contents. + + :return: The package_type of this PackageDetail. + :rtype: int + """ + return self._package_type + + @package_type.setter + def package_type(self, package_type): + """Sets the package_type of this PackageDetail. + + The type of package contents. + + :param package_type: The package_type of this PackageDetail. + :type: int + """ + + self._package_type = package_type + + @property + def policy_violated(self): + """Gets the policy_violated of this PackageDetail. + + Whether or not the package has violated any policy. + + :return: The policy_violated of this PackageDetail. + :rtype: bool + """ + return self._policy_violated + + @policy_violated.setter + def policy_violated(self, policy_violated): + """Sets the policy_violated of this PackageDetail. + + Whether or not the package has violated any policy. + + :param policy_violated: The policy_violated of this PackageDetail. + :type: bool + """ + + self._policy_violated = policy_violated + + @property + def raw_license(self): + """Gets the raw_license of this PackageDetail. + + The raw license string. + + :return: The raw_license of this PackageDetail. + :rtype: str + """ + return self._raw_license + + @raw_license.setter + def raw_license(self, raw_license): + """Sets the raw_license of this PackageDetail. + + The raw license string. + + :param raw_license: The raw_license of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + raw_license is not None and len(raw_license) < 1): + raise ValueError("Invalid value for `raw_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._raw_license = raw_license + + @property + def release(self): + """Gets the release of this PackageDetail. + + The release of the package version (if any). + + :return: The release of this PackageDetail. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this PackageDetail. + + The release of the package version (if any). + + :param release: The release of this PackageDetail. + :type: str + """ + + self._release = release + + @property + def repository(self): + """Gets the repository of this PackageDetail. + + + :return: The repository of this PackageDetail. + :rtype: str + """ + return self._repository + + @repository.setter + def repository(self, repository): + """Sets the repository of this PackageDetail. + + + :param repository: The repository of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + repository is not None and len(repository) < 1): + raise ValueError("Invalid value for `repository`, length must be greater than or equal to `1`") # noqa: E501 + + self._repository = repository + + @property + def repository_url(self): + """Gets the repository_url of this PackageDetail. + + + :return: The repository_url of this PackageDetail. + :rtype: str + """ + return self._repository_url + + @repository_url.setter + def repository_url(self, repository_url): + """Sets the repository_url of this PackageDetail. + + + :param repository_url: The repository_url of this PackageDetail. + :type: str + """ + + self._repository_url = repository_url + + @property + def security_scan_completed_at(self): + """Gets the security_scan_completed_at of this PackageDetail. + + The datetime the security scanning was completed. + + :return: The security_scan_completed_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_completed_at + + @security_scan_completed_at.setter + def security_scan_completed_at(self, security_scan_completed_at): + """Sets the security_scan_completed_at of this PackageDetail. + + The datetime the security scanning was completed. + + :param security_scan_completed_at: The security_scan_completed_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_completed_at = security_scan_completed_at + + @property + def security_scan_started_at(self): + """Gets the security_scan_started_at of this PackageDetail. + + The datetime the security scanning was started. + + :return: The security_scan_started_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_started_at + + @security_scan_started_at.setter + def security_scan_started_at(self, security_scan_started_at): + """Sets the security_scan_started_at of this PackageDetail. + + The datetime the security scanning was started. + + :param security_scan_started_at: The security_scan_started_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_started_at = security_scan_started_at + + @property + def security_scan_status(self): + """Gets the security_scan_status of this PackageDetail. + + + :return: The security_scan_status of this PackageDetail. + :rtype: str + """ + return self._security_scan_status + + @security_scan_status.setter + def security_scan_status(self, security_scan_status): + """Sets the security_scan_status of this PackageDetail. + + + :param security_scan_status: The security_scan_status of this PackageDetail. + :type: str + """ + allowed_values = ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"] # noqa: E501 + if (self._configuration.client_side_validation and + security_scan_status not in allowed_values): + raise ValueError( + "Invalid value for `security_scan_status` ({0}), must be one of {1}" # noqa: E501 + .format(security_scan_status, allowed_values) + ) + + self._security_scan_status = security_scan_status + + @property + def security_scan_status_updated_at(self): + """Gets the security_scan_status_updated_at of this PackageDetail. + + The datetime the security scanning status was updated. + + :return: The security_scan_status_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._security_scan_status_updated_at + + @security_scan_status_updated_at.setter + def security_scan_status_updated_at(self, security_scan_status_updated_at): + """Sets the security_scan_status_updated_at of this PackageDetail. + + The datetime the security scanning status was updated. + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageDetail. + :type: datetime + """ + + self._security_scan_status_updated_at = security_scan_status_updated_at + + @property + def self_html_url(self): + """Gets the self_html_url of this PackageDetail. + + + :return: The self_html_url of this PackageDetail. + :rtype: str + """ + return self._self_html_url + + @self_html_url.setter + def self_html_url(self, self_html_url): + """Sets the self_html_url of this PackageDetail. + + + :param self_html_url: The self_html_url of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + self_html_url is not None and len(self_html_url) < 1): + raise ValueError("Invalid value for `self_html_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_html_url = self_html_url + + @property + def self_url(self): + """Gets the self_url of this PackageDetail. + + + :return: The self_url of this PackageDetail. + :rtype: str + """ + return self._self_url + + @self_url.setter + def self_url(self, self_url): + """Sets the self_url of this PackageDetail. + + + :param self_url: The self_url of this PackageDetail. + :type: str + """ + + self._self_url = self_url + + @property + def self_webapp_url(self): + """Gets the self_webapp_url of this PackageDetail. + + + :return: The self_webapp_url of this PackageDetail. + :rtype: str + """ + return self._self_webapp_url + + @self_webapp_url.setter + def self_webapp_url(self, self_webapp_url): + """Sets the self_webapp_url of this PackageDetail. + + + :param self_webapp_url: The self_webapp_url of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + self_webapp_url is not None and len(self_webapp_url) < 1): + raise ValueError("Invalid value for `self_webapp_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._self_webapp_url = self_webapp_url + + @property + def signature_url(self): + """Gets the signature_url of this PackageDetail. + + + :return: The signature_url of this PackageDetail. + :rtype: str + """ + return self._signature_url + + @signature_url.setter + def signature_url(self, signature_url): + """Sets the signature_url of this PackageDetail. + + + :param signature_url: The signature_url of this PackageDetail. + :type: str + """ + + self._signature_url = signature_url + + @property + def size(self): + """Gets the size of this PackageDetail. + + The calculated size of the package. + + :return: The size of this PackageDetail. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this PackageDetail. + + The calculated size of the package. + + :param size: The size of this PackageDetail. + :type: int + """ + + self._size = size + + @property + def slug(self): + """Gets the slug of this PackageDetail. + + The public unique identifier for the package. + + :return: The slug of this PackageDetail. + :rtype: str + """ + return self._slug + + @slug.setter + def slug(self, slug): + """Sets the slug of this PackageDetail. + + The public unique identifier for the package. + + :param slug: The slug of this PackageDetail. + :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 PackageDetail. + + + :return: The slug_perm of this PackageDetail. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this PackageDetail. + + + :param slug_perm: The slug_perm of this PackageDetail. + :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 spdx_license(self): + """Gets the spdx_license of this PackageDetail. + + The SPDX license identifier for this package. + + :return: The spdx_license of this PackageDetail. + :rtype: str + """ + return self._spdx_license + + @spdx_license.setter + def spdx_license(self, spdx_license): + """Sets the spdx_license of this PackageDetail. + + The SPDX license identifier for this package. + + :param spdx_license: The spdx_license of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + spdx_license is not None and len(spdx_license) < 1): + raise ValueError("Invalid value for `spdx_license`, length must be greater than or equal to `1`") # noqa: E501 + + self._spdx_license = spdx_license + + @property + def stage(self): + """Gets the stage of this PackageDetail. + + The synchronisation (in progress) stage of the package. + + :return: The stage of this PackageDetail. + :rtype: int + """ + return self._stage + + @stage.setter + def stage(self, stage): + """Sets the stage of this PackageDetail. + + The synchronisation (in progress) stage of the package. + + :param stage: The stage of this PackageDetail. + :type: int + """ + + self._stage = stage + + @property + def stage_str(self): + """Gets the stage_str of this PackageDetail. + + + :return: The stage_str of this PackageDetail. + :rtype: str + """ + return self._stage_str + + @stage_str.setter + def stage_str(self, stage_str): + """Sets the stage_str of this PackageDetail. + + + :param stage_str: The stage_str of this PackageDetail. + :type: str + """ + + self._stage_str = stage_str + + @property + def stage_updated_at(self): + """Gets the stage_updated_at of this PackageDetail. + + The datetime the package stage was updated at. + + :return: The stage_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._stage_updated_at + + @stage_updated_at.setter + def stage_updated_at(self, stage_updated_at): + """Sets the stage_updated_at of this PackageDetail. + + The datetime the package stage was updated at. + + :param stage_updated_at: The stage_updated_at of this PackageDetail. + :type: datetime + """ + + self._stage_updated_at = stage_updated_at + + @property + def status(self): + """Gets the status of this PackageDetail. + + The synchronisation status of the package. + + :return: The status of this PackageDetail. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PackageDetail. + + The synchronisation status of the package. + + :param status: The status of this PackageDetail. + :type: int + """ + + self._status = status + + @property + def status_reason(self): + """Gets the status_reason of this PackageDetail. + + A textual description for the synchronous status reason (if any + + :return: The status_reason of this PackageDetail. + :rtype: str + """ + return self._status_reason + + @status_reason.setter + def status_reason(self, status_reason): + """Sets the status_reason of this PackageDetail. + + A textual description for the synchronous status reason (if any + + :param status_reason: The status_reason of this PackageDetail. + :type: str + """ + + self._status_reason = status_reason + + @property + def status_str(self): + """Gets the status_str of this PackageDetail. + + + :return: The status_str of this PackageDetail. + :rtype: str + """ + return self._status_str + + @status_str.setter + def status_str(self, status_str): + """Sets the status_str of this PackageDetail. + + + :param status_str: The status_str of this PackageDetail. + :type: str + """ + + self._status_str = status_str + + @property + def status_updated_at(self): + """Gets the status_updated_at of this PackageDetail. + + The datetime the package status was updated at. + + :return: The status_updated_at of this PackageDetail. + :rtype: datetime + """ + return self._status_updated_at + + @status_updated_at.setter + def status_updated_at(self, status_updated_at): + """Sets the status_updated_at of this PackageDetail. + + The datetime the package status was updated at. + + :param status_updated_at: The status_updated_at of this PackageDetail. + :type: datetime + """ + + self._status_updated_at = status_updated_at + + @property + def status_url(self): + """Gets the status_url of this PackageDetail. + + + :return: The status_url of this PackageDetail. + :rtype: str + """ + return self._status_url + + @status_url.setter + def status_url(self, status_url): + """Sets the status_url of this PackageDetail. + + + :param status_url: The status_url of this PackageDetail. + :type: str + """ + + self._status_url = status_url + + @property + def subtype(self): + """Gets the subtype of this PackageDetail. + + + :return: The subtype of this PackageDetail. + :rtype: str + """ + return self._subtype + + @subtype.setter + def subtype(self, subtype): + """Sets the subtype of this PackageDetail. + + + :param subtype: The subtype of this PackageDetail. + :type: str + """ + + self._subtype = subtype + + @property + def summary(self): + """Gets the summary of this PackageDetail. + + A one-liner synopsis of this package. + + :return: The summary of this PackageDetail. + :rtype: str + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this PackageDetail. + + A one-liner synopsis of this package. + + :param summary: The summary of this PackageDetail. + :type: str + """ + + self._summary = summary + + @property + def sync_finished_at(self): + """Gets the sync_finished_at of this PackageDetail. + + The datetime the package sync was finished at. + + :return: The sync_finished_at of this PackageDetail. + :rtype: datetime + """ + return self._sync_finished_at + + @sync_finished_at.setter + def sync_finished_at(self, sync_finished_at): + """Sets the sync_finished_at of this PackageDetail. + + The datetime the package sync was finished at. + + :param sync_finished_at: The sync_finished_at of this PackageDetail. + :type: datetime + """ + + self._sync_finished_at = sync_finished_at + + @property + def sync_progress(self): + """Gets the sync_progress of this PackageDetail. + + Synchronisation progress (from 0-100) + + :return: The sync_progress of this PackageDetail. + :rtype: int + """ + return self._sync_progress + + @sync_progress.setter + def sync_progress(self, sync_progress): + """Sets the sync_progress of this PackageDetail. + + Synchronisation progress (from 0-100) + + :param sync_progress: The sync_progress of this PackageDetail. + :type: int + """ + + self._sync_progress = sync_progress + + @property + def tags(self): + """Gets the tags of this PackageDetail. + + + :return: The tags of this PackageDetail. + :rtype: Tags + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this PackageDetail. + + + :param tags: The tags of this PackageDetail. + :type: Tags + """ + + self._tags = tags + + @property + def tags_automatic(self): + """Gets the tags_automatic of this PackageDetail. + + + :return: The tags_automatic of this PackageDetail. + :rtype: Tags + """ + return self._tags_automatic + + @tags_automatic.setter + def tags_automatic(self, tags_automatic): + """Sets the tags_automatic of this PackageDetail. + + + :param tags_automatic: The tags_automatic of this PackageDetail. + :type: Tags + """ + + self._tags_automatic = tags_automatic + + @property + def tags_immutable(self): + """Gets the tags_immutable of this PackageDetail. + + + :return: The tags_immutable of this PackageDetail. + :rtype: Tags + """ + return self._tags_immutable + + @tags_immutable.setter + def tags_immutable(self, tags_immutable): + """Sets the tags_immutable of this PackageDetail. + + + :param tags_immutable: The tags_immutable of this PackageDetail. + :type: Tags + """ + + self._tags_immutable = tags_immutable + + @property + def tags_static(self): + """Gets the tags_static of this PackageDetail. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageDetail. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageDetail. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageDetail. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + + @property + def type_display(self): + """Gets the type_display of this PackageDetail. + + + :return: The type_display of this PackageDetail. + :rtype: str + """ + return self._type_display + + @type_display.setter + def type_display(self, type_display): + """Sets the type_display of this PackageDetail. + + + :param type_display: The type_display of this PackageDetail. + :type: str + """ + + self._type_display = type_display + + @property + def uploaded_at(self): + """Gets the uploaded_at of this PackageDetail. + + The date this package was uploaded. + + :return: The uploaded_at of this PackageDetail. + :rtype: datetime + """ + return self._uploaded_at + + @uploaded_at.setter + def uploaded_at(self, uploaded_at): + """Sets the uploaded_at of this PackageDetail. + + The date this package was uploaded. + + :param uploaded_at: The uploaded_at of this PackageDetail. + :type: datetime + """ + + self._uploaded_at = uploaded_at + + @property + def uploader(self): + """Gets the uploader of this PackageDetail. + + + :return: The uploader of this PackageDetail. + :rtype: str + """ + return self._uploader + + @uploader.setter + def uploader(self, uploader): + """Sets the uploader of this PackageDetail. + + + :param uploader: The uploader of this PackageDetail. + :type: str + """ + if (self._configuration.client_side_validation and + uploader is not None and len(uploader) < 1): + raise ValueError("Invalid value for `uploader`, length must be greater than or equal to `1`") # noqa: E501 + + self._uploader = uploader + + @property + def uploader_url(self): + """Gets the uploader_url of this PackageDetail. + + + :return: The uploader_url of this PackageDetail. + :rtype: str + """ + return self._uploader_url + + @uploader_url.setter + def uploader_url(self, uploader_url): + """Sets the uploader_url of this PackageDetail. + + + :param uploader_url: The uploader_url of this PackageDetail. + :type: str + """ + + self._uploader_url = uploader_url + + @property + def version(self): + """Gets the version of this PackageDetail. + + The raw version for this package. + + :return: The version of this PackageDetail. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PackageDetail. + + The raw version for this package. + + :param version: The version of this PackageDetail. + :type: str + """ + + self._version = version + + @property + def version_orig(self): + """Gets the version_orig of this PackageDetail. + + + :return: The version_orig of this PackageDetail. + :rtype: str + """ + return self._version_orig + + @version_orig.setter + def version_orig(self, version_orig): + """Sets the version_orig of this PackageDetail. + + + :param version_orig: The version_orig of this PackageDetail. + :type: str + """ + + self._version_orig = version_orig + + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this PackageDetail. + + + :return: The vulnerability_counts of this PackageDetail. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this PackageDetail. + + + :param vulnerability_counts: The vulnerability_counts of this PackageDetail. + :type: WebOSVSeverityCounts + """ + + self._vulnerability_counts = vulnerability_counts + + @property + def vulnerability_scan_results_url(self): + """Gets the vulnerability_scan_results_url of this PackageDetail. + + + :return: The vulnerability_scan_results_url of this PackageDetail. + :rtype: str + """ + return self._vulnerability_scan_results_url + + @vulnerability_scan_results_url.setter + def vulnerability_scan_results_url(self, vulnerability_scan_results_url): + """Sets the vulnerability_scan_results_url of this PackageDetail. + + + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageDetail. + :type: str + """ + + self._vulnerability_scan_results_url = vulnerability_scan_results_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PackageDetail, 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, PackageDetail): + 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, PackageDetail): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py b/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py index 07e0a3cf..0f2a2a45 100644 --- a/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_file_upload_request.py @@ -88,6 +88,9 @@ def filename(self, filename): """ if self._configuration.client_side_validation and filename is None: raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + filename is not None and len(filename) > 255): + raise ValueError("Invalid value for `filename`, length must be less than or equal to `255`") # noqa: E501 if (self._configuration.client_side_validation and filename is not None and len(filename) < 1): raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`") # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/models/package_license.py b/bindings/python/src/cloudsmith_api/models/package_license.py index 15985161..7394e081 100644 --- a/bindings/python/src/cloudsmith_api/models/package_license.py +++ b/bindings/python/src/cloudsmith_api/models/package_license.py @@ -33,31 +33,39 @@ 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' + 'spdx_license': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'license_notes': 'license_notes', 'license_override': 'license_override', 'license_url': 'license_url', - 'spdx_license': 'spdx_license' + 'spdx_license': 'spdx_license', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 + 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 """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: @@ -65,6 +73,31 @@ def __init__(self, license_notes=None, license_override='None', license_url=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 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): @@ -171,6 +204,27 @@ 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 b5af4366..803f7449 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,52 @@ class PackageLicenseRequestPatch(object): """ swagger_types = { 'action': 'str', + 'is_malware_detected': 'bool', 'license_notes': 'str', 'license_override': 'str', 'license_url': 'str', - 'spdx_license': 'str' + 'spdx_license': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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' + 'spdx_license': 'spdx_license', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action='Update', license_notes=None, license_override='None', license_url=None, spdx_license=None, _configuration=None): # noqa: E501 + 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 """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: self.license_override = license_override if license_url is not None: self.license_url = license_url - if spdx_license is not None: - self.spdx_license = spdx_license + self.spdx_license = spdx_license + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def action(self): @@ -100,6 +109,29 @@ 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. @@ -194,6 +226,8 @@ def spdx_license(self, spdx_license): :param spdx_license: The spdx_license of this PackageLicenseRequestPatch. :type: str """ + if self._configuration.client_side_validation and spdx_license is None: + raise ValueError("Invalid value for `spdx_license`, must not be `None`") # noqa: E501 if (self._configuration.client_side_validation and spdx_license is not None and len(spdx_license) > 255): raise ValueError("Invalid value for `spdx_license`, length must be less than or equal to `255`") # noqa: E501 @@ -203,6 +237,27 @@ 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 e4787975..4fca4a33 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move.py +++ b/bindings/python/src/cloudsmith_api/models/package_move.py @@ -63,6 +63,7 @@ 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', @@ -114,12 +115,14 @@ class PackageMove(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +157,7 @@ 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', @@ -205,16 +209,18 @@ class PackageMove(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PackageMove - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +256,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +379,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1146,6 +1161,29 @@ 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. @@ -2301,6 +2339,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageMove. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageMove. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageMove. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageMove. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageMove. @@ -2434,6 +2495,27 @@ 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 287049fa..c1a752ee 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_move_request.py @@ -33,23 +33,33 @@ class PackageMoveRequest(object): and the value is json key in definition. """ swagger_types = { - 'destination': 'str' + 'destination': 'str', + 'is_malware_detected': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { - 'destination': 'destination' + 'destination': 'destination', + 'is_malware_detected': 'is_malware_detected', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, destination=None, _configuration=None): # noqa: E501 + def __init__(self, destination=None, is_malware_detected=None, vulnerability_counts=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): @@ -79,6 +89,50 @@ 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 6c127f86..ad449caf 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine.py @@ -63,6 +63,7 @@ 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', @@ -113,12 +114,14 @@ class PackageQuarantine(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -153,6 +156,7 @@ 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', @@ -203,16 +207,18 @@ class PackageQuarantine(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PackageQuarantine - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -248,6 +254,7 @@ 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 @@ -298,12 +305,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -367,6 +376,8 @@ 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: @@ -467,6 +478,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -479,6 +492,8 @@ 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 @@ -1141,6 +1156,29 @@ 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. @@ -2271,6 +2309,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageQuarantine. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageQuarantine. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageQuarantine. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageQuarantine. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageQuarantine. @@ -2404,6 +2465,27 @@ 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 fec151dd..9676669d 100644 --- a/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_quarantine_request.py @@ -33,29 +33,62 @@ class PackageQuarantineRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'release': 'bool', - 'restore': 'bool' + 'restore': 'bool', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'release': 'release', - 'restore': 'restore' + 'restore': 'restore', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, release=None, restore=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, release=None, restore=None, vulnerability_counts=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): @@ -103,6 +136,27 @@ 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 ef9c87aa..7664a980 100644 --- a/bindings/python/src/cloudsmith_api/models/package_resync.py +++ b/bindings/python/src/cloudsmith_api/models/package_resync.py @@ -63,6 +63,7 @@ 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', @@ -114,12 +115,14 @@ class PackageResync(object): 'tags': 'Tags', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -154,6 +157,7 @@ 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', @@ -205,16 +209,18 @@ class PackageResync(object): 'tags': 'tags', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PackageResync - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -250,6 +256,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._tags = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -370,6 +379,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1146,6 +1161,29 @@ 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. @@ -2299,6 +2337,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageResync. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageResync. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageResync. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageResync. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageResync. @@ -2432,6 +2493,27 @@ 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 d31f3c09..ca224eb9 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag.py @@ -64,6 +64,7 @@ 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', @@ -114,12 +115,14 @@ class PackageTag(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -155,6 +158,7 @@ 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', @@ -205,16 +209,18 @@ class PackageTag(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PackageTag - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -251,6 +257,7 @@ 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 @@ -301,12 +308,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -372,6 +381,8 @@ 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: @@ -472,6 +483,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -484,6 +497,8 @@ 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 @@ -1169,6 +1184,29 @@ 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. @@ -2301,6 +2339,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PackageTag. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PackageTag. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PackageTag. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PackageTag. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PackageTag. @@ -2434,6 +2495,27 @@ 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 63cdc649..705ed09f 100644 --- a/bindings/python/src/cloudsmith_api/models/package_tag_request.py +++ b/bindings/python/src/cloudsmith_api/models/package_tag_request.py @@ -35,16 +35,20 @@ class PackageTagRequest(object): swagger_types = { 'action': 'str', 'is_immutable': 'bool', - 'tags': 'list[str]' + 'is_malware_detected': 'bool', + 'tags': 'list[str]', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'action': 'action', 'is_immutable': 'is_immutable', - 'tags': 'tags' + 'is_malware_detected': 'is_malware_detected', + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action='Add', is_immutable=False, tags=None, _configuration=None): # noqa: E501 + def __init__(self, action='Add', is_immutable=False, is_malware_detected=None, tags=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """PackageTagRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -52,15 +56,21 @@ def __init__(self, action='Add', is_immutable=False, tags=None, _configuration=N 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): @@ -113,6 +123,29 @@ 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. @@ -136,6 +169,27 @@ 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 d814ac54..88faf4d3 100644 --- a/bindings/python/src/cloudsmith_api/models/package_vulnerability.py +++ b/bindings/python/src/cloudsmith_api/models/package_vulnerability.py @@ -34,37 +34,47 @@ class PackageVulnerability(object): """ swagger_types = { 'identifier': 'str', + 'is_malware_detected': 'bool', 'name': 'str', 'url': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'identifier': 'identifier', + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'url': 'url', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, identifier=None, name=None, url=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, identifier=None, is_malware_detected=None, name=None, url=None, version=None, vulnerability_counts=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): @@ -92,6 +102,29 @@ 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. @@ -159,6 +192,27 @@ 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 e07a305d..fa829590 100644 --- a/bindings/python/src/cloudsmith_api/models/python_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/python_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class PythonPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class PythonPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """PythonPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this PythonPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this PythonPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this PythonPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this PythonPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this PythonPackageUpload. @@ -2375,6 +2436,27 @@ 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 9fd386ff..45a75242 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,33 +33,66 @@ class PythonPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 35c0040e..695fd3ae 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class RawPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class RawPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """RawPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1113,6 +1128,29 @@ 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. @@ -2251,6 +2289,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RawPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this RawPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RawPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this RawPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RawPackageUpload. @@ -2387,6 +2448,27 @@ 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 6db64e5f..2195b0a6 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,26 +35,30 @@ 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' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - 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 + 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 """RawPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -62,18 +66,22 @@ def __init__(self, content_type=None, description=None, name=None, package_file= 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 @@ -85,6 +93,8 @@ def __init__(self, content_type=None, description=None, name=None, package_file= 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): @@ -141,6 +151,29 @@ 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. @@ -299,6 +332,27 @@ 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/recycle_bin_package.py b/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py index 303e8caf..948a79e7 100644 --- a/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py +++ b/bindings/python/src/cloudsmith_api/models/recycle_bin_package.py @@ -41,6 +41,7 @@ class RecycleBinPackage(object): 'identifiers': 'dict(str, str)', 'invoked_retention_rule': 'dict(str, str)', 'is_deleteable': 'bool', + 'is_malware_detected': 'bool', 'is_quarantined': 'bool', 'is_restorable': 'bool', 'name': 'str', @@ -56,7 +57,8 @@ class RecycleBinPackage(object): 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { @@ -68,6 +70,7 @@ class RecycleBinPackage(object): 'identifiers': 'identifiers', 'invoked_retention_rule': 'invoked_retention_rule', 'is_deleteable': 'is_deleteable', + 'is_malware_detected': 'is_malware_detected', 'is_quarantined': 'is_quarantined', 'is_restorable': 'is_restorable', 'name': 'name', @@ -83,10 +86,11 @@ class RecycleBinPackage(object): 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, action_by=None, downloads=None, filename=None, format=None, fully_qualified_name=None, identifiers=None, invoked_retention_rule=None, is_deleteable=None, is_quarantined=None, is_restorable=None, name=None, policy_violated=None, repository=None, security_scan_completed_at=None, security_scan_status='Awaiting Security Scan', size=None, slug_perm=None, status=None, status_updated_at=None, tags=None, type_display=None, uploaded_at=None, uploader=None, version=None, _configuration=None): # noqa: E501 + def __init__(self, action_by=None, downloads=None, filename=None, format=None, fully_qualified_name=None, identifiers=None, invoked_retention_rule=None, is_deleteable=None, is_malware_detected=None, is_quarantined=None, is_restorable=None, name=None, policy_violated=None, repository=None, security_scan_completed_at=None, security_scan_status='Awaiting Security Scan', size=None, slug_perm=None, status=None, status_updated_at=None, tags=None, type_display=None, uploaded_at=None, uploader=None, version=None, vulnerability_counts=None, _configuration=None): # noqa: E501 """RecycleBinPackage - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -100,6 +104,7 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self._identifiers = None self._invoked_retention_rule = None self._is_deleteable = None + self._is_malware_detected = None self._is_quarantined = None self._is_restorable = None self._name = None @@ -116,6 +121,7 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self._uploaded_at = None self._uploader = None self._version = None + self._vulnerability_counts = None self.discriminator = None if action_by is not None: @@ -134,6 +140,8 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self.invoked_retention_rule = invoked_retention_rule if is_deleteable is not None: self.is_deleteable = is_deleteable + if is_malware_detected is not None: + self.is_malware_detected = is_malware_detected if is_quarantined is not None: self.is_quarantined = is_quarantined if is_restorable is not None: @@ -166,6 +174,8 @@ def __init__(self, action_by=None, downloads=None, filename=None, format=None, f self.uploader = uploader if version is not None: self.version = version + if vulnerability_counts is not None: + self.vulnerability_counts = vulnerability_counts @property def action_by(self): @@ -353,6 +363,29 @@ def is_deleteable(self, is_deleteable): self._is_deleteable = is_deleteable + @property + def is_malware_detected(self): + """Gets the is_malware_detected of this RecycleBinPackage. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :return: The is_malware_detected of this RecycleBinPackage. + :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 RecycleBinPackage. + + Whether the package has been detected as containing malware. Requires Ultra plan. + + :param is_malware_detected: The is_malware_detected of this RecycleBinPackage. + :type: bool + """ + + self._is_malware_detected = is_malware_detected + @property def is_quarantined(self): """Gets the is_quarantined of this RecycleBinPackage. @@ -724,6 +757,27 @@ def version(self, version): self._version = version + @property + def vulnerability_counts(self): + """Gets the vulnerability_counts of this RecycleBinPackage. + + + :return: The vulnerability_counts of this RecycleBinPackage. + :rtype: WebOSVSeverityCounts + """ + return self._vulnerability_counts + + @vulnerability_counts.setter + def vulnerability_counts(self, vulnerability_counts): + """Sets the vulnerability_counts of this RecycleBinPackage. + + + :param vulnerability_counts: The vulnerability_counts of this RecycleBinPackage. + :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 3f3500e1..f976d1dd 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class RpmPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class RpmPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """RpmPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RpmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this RpmPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RpmPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this RpmPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RpmPackageUpload. @@ -2375,6 +2436,27 @@ 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 5099752f..e935c911 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,36 +34,46 @@ class RpmPackageUploadRequest(object): """ swagger_types = { 'distribution': 'str', + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { 'distribution': 'distribution', + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, distribution=None, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -93,6 +103,29 @@ 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. @@ -173,6 +206,27 @@ 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 3c1b6058..882a2afc 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class RubyPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class RubyPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """RubyPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this RubyPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this RubyPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this RubyPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this RubyPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this RubyPackageUpload. @@ -2375,6 +2436,27 @@ 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 61ff70ce..9de94e2f 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,33 +33,66 @@ class RubyPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 b56138f6..b0477a03 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/swift_package_upload.py @@ -64,6 +64,7 @@ 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', @@ -117,12 +118,14 @@ class SwiftPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -158,6 +161,7 @@ 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', @@ -211,16 +215,18 @@ class SwiftPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, license_url=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, readme_url=None, release=None, repository=None, repository_url=None, scope=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """SwiftPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -257,6 +263,7 @@ 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 @@ -310,12 +317,14 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -381,6 +390,8 @@ 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: @@ -485,6 +496,8 @@ def __init__(self, architectures=None, author_name=None, author_org=None, cdn_ur self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -496,6 +509,8 @@ 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 @@ -1184,6 +1199,29 @@ 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. @@ -2409,6 +2447,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this SwiftPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this SwiftPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this SwiftPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this SwiftPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this SwiftPackageUpload. @@ -2547,6 +2608,27 @@ 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 d5f14ff3..fb43009c 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,6 +35,7 @@ class SwiftPackageUploadRequest(object): swagger_types = { 'author_name': 'str', 'author_org': 'str', + 'is_malware_detected': 'bool', 'license_url': 'str', 'name': 'str', 'package_file': 'str', @@ -43,12 +44,14 @@ class SwiftPackageUploadRequest(object): 'republish': 'bool', 'scope': 'str', 'tags': 'str', - 'version': 'str' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } 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', @@ -57,10 +60,11 @@ class SwiftPackageUploadRequest(object): 'republish': 'republish', 'scope': 'scope', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - 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 + 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 """SwiftPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -68,6 +72,7 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non self._author_name = None self._author_org = None + self._is_malware_detected = None self._license_url = None self._name = None self._package_file = None @@ -77,12 +82,15 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non 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 @@ -97,6 +105,8 @@ def __init__(self, author_name=None, author_org=None, license_url=None, name=Non 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): @@ -150,6 +160,29 @@ 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. @@ -395,6 +428,27 @@ 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 8cb5e1df..cd58105d 100644 --- a/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/terraform_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class TerraformPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class TerraformPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """TerraformPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this TerraformPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this TerraformPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this TerraformPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this TerraformPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this TerraformPackageUpload. @@ -2375,6 +2436,27 @@ 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 030f5659..0c9892de 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,33 +33,66 @@ class TerraformPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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 68807bdc..d66ec8c0 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -113,12 +114,14 @@ class VagrantPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -152,6 +155,7 @@ 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', @@ -203,16 +207,18 @@ class VagrantPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, provider=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """VagrantPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -247,6 +253,7 @@ 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 @@ -298,12 +305,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -365,6 +374,8 @@ 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: @@ -465,6 +476,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -476,6 +489,8 @@ 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 @@ -1112,6 +1127,29 @@ 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. @@ -2277,6 +2315,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this VagrantPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this VagrantPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this VagrantPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this VagrantPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this VagrantPackageUpload. @@ -2415,6 +2476,27 @@ 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 9f10044e..0ba08964 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,37 +33,45 @@ 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' + 'version': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'name': 'name', 'package_file': 'package_file', 'provider': 'provider', 'republish': 'republish', 'tags': 'tags', - 'version': 'version' + 'version': 'version', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + 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 """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 @@ -72,6 +80,31 @@ def __init__(self, name=None, package_file=None, provider=None, republish=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 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): @@ -237,6 +270,27 @@ 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 1b0e7eb0..041a7888 100644 --- a/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vsx_package_upload.py @@ -62,6 +62,7 @@ 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', @@ -112,12 +113,14 @@ class VsxPackageUpload(object): 'sync_progress': 'int', 'tags_automatic': 'Tags', 'tags_immutable': 'Tags', + 'tags_static': 'dict(str, list[str])', 'type_display': 'str', 'uploaded_at': 'datetime', 'uploader': 'str', 'uploader_url': 'str', 'version': 'str', 'version_orig': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts', 'vulnerability_scan_results_url': 'str' } @@ -151,6 +154,7 @@ 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', @@ -201,16 +205,18 @@ class VsxPackageUpload(object): 'sync_progress': 'sync_progress', 'tags_automatic': 'tags_automatic', 'tags_immutable': 'tags_immutable', + 'tags_static': 'tags_static', 'type_display': 'type_display', 'uploaded_at': 'uploaded_at', 'uploader': 'uploader', '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_moveable=None, is_quarantinable=None, is_quarantined=None, is_resyncable=None, is_security_scannable=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, origin_repository=None, origin_repository_url=None, osi_approved=None, package_type=None, policy_violated=None, raw_license=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status='Awaiting Security Scan', security_scan_status_updated_at=None, self_html_url=None, self_url=None, self_webapp_url=None, signature_url=None, size=None, slug=None, slug_perm=None, spdx_license=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_automatic=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + 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, 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 """VsxPackageUpload - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() @@ -245,6 +251,7 @@ 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 @@ -295,12 +302,14 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._sync_progress = None self._tags_automatic = None self._tags_immutable = None + self._tags_static = None self._type_display = None self._uploaded_at = None self._uploader = None self._uploader_url = None self._version = None self._version_orig = None + self._vulnerability_counts = None self._vulnerability_scan_results_url = None self.discriminator = None @@ -362,6 +371,8 @@ 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: @@ -462,6 +473,8 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self.tags_automatic = tags_automatic if tags_immutable is not None: self.tags_immutable = tags_immutable + if tags_static is not None: + self.tags_static = tags_static if type_display is not None: self.type_display = type_display if uploaded_at is not None: @@ -474,6 +487,8 @@ 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 @@ -1110,6 +1125,29 @@ 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. @@ -2242,6 +2280,29 @@ def tags_immutable(self, tags_immutable): self._tags_immutable = tags_immutable + @property + def tags_static(self): + """Gets the tags_static of this VsxPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :return: The tags_static of this VsxPackageUpload. + :rtype: dict(str, list[str]) + """ + return self._tags_static + + @tags_static.setter + def tags_static(self, tags_static): + """Sets the tags_static of this VsxPackageUpload. + + All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + + :param tags_static: The tags_static of this VsxPackageUpload. + :type: dict(str, list[str]) + """ + + self._tags_static = tags_static + @property def type_display(self): """Gets the type_display of this VsxPackageUpload. @@ -2375,6 +2436,27 @@ 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 d610fbec..2b54b606 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,33 +33,66 @@ class VsxPackageUploadRequest(object): and the value is json key in definition. """ swagger_types = { + 'is_malware_detected': 'bool', 'package_file': 'str', 'republish': 'bool', - 'tags': 'str' + 'tags': 'str', + 'vulnerability_counts': 'WebOSVSeverityCounts' } attribute_map = { + 'is_malware_detected': 'is_malware_detected', 'package_file': 'package_file', 'republish': 'republish', - 'tags': 'tags' + 'tags': 'tags', + 'vulnerability_counts': 'vulnerability_counts' } - def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, is_malware_detected=None, package_file=None, republish=None, tags=None, vulnerability_counts=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): @@ -141,6 +174,27 @@ 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/cloudsmith_api/models/web_osv_severity_counts.py b/bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py new file mode 100644 index 00000000..94855662 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/web_osv_severity_counts.py @@ -0,0 +1,280 @@ +# 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 WebOSVSeverityCounts(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 = { + 'critical': 'int', + 'high': 'int', + 'low': 'int', + 'malware': 'int', + 'medium': 'int', + 'total': 'int', + 'unknown': 'int' + } + + attribute_map = { + 'critical': 'critical', + 'high': 'high', + 'low': 'low', + 'malware': 'malware', + 'medium': 'medium', + 'total': 'total', + 'unknown': 'unknown' + } + + def __init__(self, critical=None, high=None, low=None, malware=None, medium=None, total=None, unknown=None, _configuration=None): # noqa: E501 + """WebOSVSeverityCounts - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._critical = None + self._high = None + self._low = None + self._malware = None + self._medium = None + self._total = None + self._unknown = None + self.discriminator = None + + if critical is not None: + self.critical = critical + if high is not None: + self.high = high + if low is not None: + self.low = low + if malware is not None: + self.malware = malware + if medium is not None: + self.medium = medium + if total is not None: + self.total = total + if unknown is not None: + self.unknown = unknown + + @property + def critical(self): + """Gets the critical of this WebOSVSeverityCounts. + + + :return: The critical of this WebOSVSeverityCounts. + :rtype: int + """ + return self._critical + + @critical.setter + def critical(self, critical): + """Sets the critical of this WebOSVSeverityCounts. + + + :param critical: The critical of this WebOSVSeverityCounts. + :type: int + """ + + self._critical = critical + + @property + def high(self): + """Gets the high of this WebOSVSeverityCounts. + + + :return: The high of this WebOSVSeverityCounts. + :rtype: int + """ + return self._high + + @high.setter + def high(self, high): + """Sets the high of this WebOSVSeverityCounts. + + + :param high: The high of this WebOSVSeverityCounts. + :type: int + """ + + self._high = high + + @property + def low(self): + """Gets the low of this WebOSVSeverityCounts. + + + :return: The low of this WebOSVSeverityCounts. + :rtype: int + """ + return self._low + + @low.setter + def low(self, low): + """Sets the low of this WebOSVSeverityCounts. + + + :param low: The low of this WebOSVSeverityCounts. + :type: int + """ + + self._low = low + + @property + def malware(self): + """Gets the malware of this WebOSVSeverityCounts. + + + :return: The malware of this WebOSVSeverityCounts. + :rtype: int + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this WebOSVSeverityCounts. + + + :param malware: The malware of this WebOSVSeverityCounts. + :type: int + """ + + self._malware = malware + + @property + def medium(self): + """Gets the medium of this WebOSVSeverityCounts. + + + :return: The medium of this WebOSVSeverityCounts. + :rtype: int + """ + return self._medium + + @medium.setter + def medium(self, medium): + """Sets the medium of this WebOSVSeverityCounts. + + + :param medium: The medium of this WebOSVSeverityCounts. + :type: int + """ + + self._medium = medium + + @property + def total(self): + """Gets the total of this WebOSVSeverityCounts. + + + :return: The total of this WebOSVSeverityCounts. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this WebOSVSeverityCounts. + + + :param total: The total of this WebOSVSeverityCounts. + :type: int + """ + + self._total = total + + @property + def unknown(self): + """Gets the unknown of this WebOSVSeverityCounts. + + + :return: The unknown of this WebOSVSeverityCounts. + :rtype: int + """ + return self._unknown + + @unknown.setter + def unknown(self, unknown): + """Sets the unknown of this WebOSVSeverityCounts. + + + :param unknown: The unknown of this WebOSVSeverityCounts. + :type: int + """ + + self._unknown = unknown + + 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(WebOSVSeverityCounts, 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, WebOSVSeverityCounts): + 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, WebOSVSeverityCounts): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/docs/AlpinePackageUpload.md b/bindings/python/src/docs/AlpinePackageUpload.md index d5bb5afb..dfe54551 100644 --- a/bindings/python/src/docs/AlpinePackageUpload.md +++ b/bindings/python/src/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 73671a11..b16a5906 100644 --- a/bindings/python/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/python/src/docs/AlpinePackageUploadRequest.md @@ -4,9 +4,11 @@ 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 f6b2638f..89e3a608 100644 --- a/bindings/python/src/docs/CargoPackageUpload.md +++ b/bindings/python/src/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 16652d00..01dab240 100644 --- a/bindings/python/src/docs/CargoPackageUploadRequest.md +++ b/bindings/python/src/docs/CargoPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 1480d0cf..fbf31c54 100644 --- a/bindings/python/src/docs/CocoapodsPackageUpload.md +++ b/bindings/python/src/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 84ff23fb..c260e24a 100644 --- a/bindings/python/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/python/src/docs/CocoapodsPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 c248a7c2..13c594d3 100644 --- a/bindings/python/src/docs/ComposerPackageUpload.md +++ b/bindings/python/src/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 3d0197e2..d6f5a80c 100644 --- a/bindings/python/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/python/src/docs/ComposerPackageUploadRequest.md @@ -3,10 +3,12 @@ ## 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 903dd86c..4be7f36d 100644 --- a/bindings/python/src/docs/ConanPackageUpload.md +++ b/bindings/python/src/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 9177ddf4..3b85121f 100644 --- a/bindings/python/src/docs/ConanPackageUploadRequest.md +++ b/bindings/python/src/docs/ConanPackageUploadRequest.md @@ -6,6 +6,7 @@ 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] @@ -13,6 +14,7 @@ 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 32a06893..db75ab39 100644 --- a/bindings/python/src/docs/CondaPackageUpload.md +++ b/bindings/python/src/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 e837c937..39c44b2f 100644 --- a/bindings/python/src/docs/CondaPackageUploadRequest.md +++ b/bindings/python/src/docs/CondaPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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/CranPackageUpload.md b/bindings/python/src/docs/CranPackageUpload.md index 86429a54..6fa52b81 100644 --- a/bindings/python/src/docs/CranPackageUpload.md +++ b/bindings/python/src/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 adf7fe71..a05d6f39 100644 --- a/bindings/python/src/docs/CranPackageUploadRequest.md +++ b/bindings/python/src/docs/CranPackageUploadRequest.md @@ -4,10 +4,12 @@ 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 f5f9e66d..20eba6be 100644 --- a/bindings/python/src/docs/DartPackageUpload.md +++ b/bindings/python/src/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 670cd6f4..a01c0d7e 100644 --- a/bindings/python/src/docs/DartPackageUploadRequest.md +++ b/bindings/python/src/docs/DartPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 94e57d9e..8ab98f8f 100644 --- a/bindings/python/src/docs/DebPackageUpload.md +++ b/bindings/python/src/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 8fddc1a6..aa451afb 100644 --- a/bindings/python/src/docs/DebPackageUploadRequest.md +++ b/bindings/python/src/docs/DebPackageUploadRequest.md @@ -6,10 +6,12 @@ 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 c1b4f6bc..52689830 100644 --- a/bindings/python/src/docs/DockerPackageUpload.md +++ b/bindings/python/src/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 791c5621..78ad18b4 100644 --- a/bindings/python/src/docs/DockerPackageUploadRequest.md +++ b/bindings/python/src/docs/DockerPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 d8a49604..7231f035 100644 --- a/bindings/python/src/docs/GenericPackageUpload.md +++ b/bindings/python/src/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 0acaf22a..cdcf7591 100644 --- a/bindings/python/src/docs/GenericPackageUploadRequest.md +++ b/bindings/python/src/docs/GenericPackageUploadRequest.md @@ -4,11 +4,13 @@ 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 4b731266..39e8e59e 100644 --- a/bindings/python/src/docs/GoPackageUpload.md +++ b/bindings/python/src/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 383c6c45..aa8d8ab8 100644 --- a/bindings/python/src/docs/GoPackageUploadRequest.md +++ b/bindings/python/src/docs/GoPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 cd64d129..35356c20 100644 --- a/bindings/python/src/docs/HelmPackageUpload.md +++ b/bindings/python/src/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 40a0e1d0..05eb678a 100644 --- a/bindings/python/src/docs/HelmPackageUploadRequest.md +++ b/bindings/python/src/docs/HelmPackageUploadRequest.md @@ -3,10 +3,12 @@ ## 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 7f534543..c6656741 100644 --- a/bindings/python/src/docs/HexPackageUpload.md +++ b/bindings/python/src/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 5439c3a8..992d9fc0 100644 --- a/bindings/python/src/docs/HexPackageUploadRequest.md +++ b/bindings/python/src/docs/HexPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 1909810c..f8d7f2c3 100644 --- a/bindings/python/src/docs/HuggingfacePackageUpload.md +++ b/bindings/python/src/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 5d66d307..3f82ff33 100644 --- a/bindings/python/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/python/src/docs/HuggingfacePackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 82b789a4..843b0f96 100644 --- a/bindings/python/src/docs/LuarocksPackageUpload.md +++ b/bindings/python/src/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 f29819cb..7876a076 100644 --- a/bindings/python/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/python/src/docs/LuarocksPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 0faf1b92..c88bf2df 100644 --- a/bindings/python/src/docs/MavenPackageUpload.md +++ b/bindings/python/src/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -87,12 +88,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 e7e3da78..fbcbbba5 100644 --- a/bindings/python/src/docs/MavenPackageUploadRequest.md +++ b/bindings/python/src/docs/MavenPackageUploadRequest.md @@ -6,6 +6,7 @@ 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. | @@ -18,6 +19,7 @@ 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 bef67488..c320e384 100644 --- a/bindings/python/src/docs/McpPackageUpload.md +++ b/bindings/python/src/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 a88c529d..f708877d 100644 --- a/bindings/python/src/docs/McpPackageUploadRequest.md +++ b/bindings/python/src/docs/McpPackageUploadRequest.md @@ -3,10 +3,12 @@ ## 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/NpmPackageUpload.md b/bindings/python/src/docs/NpmPackageUpload.md index f2cbb265..fc893036 100644 --- a/bindings/python/src/docs/NpmPackageUpload.md +++ b/bindings/python/src/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 a85c2083..ea2fb9e2 100644 --- a/bindings/python/src/docs/NpmPackageUploadRequest.md +++ b/bindings/python/src/docs/NpmPackageUploadRequest.md @@ -3,10 +3,12 @@ ## 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 32d45b3f..35609fcd 100644 --- a/bindings/python/src/docs/NugetPackageUpload.md +++ b/bindings/python/src/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 c4994474..26eeb817 100644 --- a/bindings/python/src/docs/NugetPackageUploadRequest.md +++ b/bindings/python/src/docs/NugetPackageUploadRequest.md @@ -3,10 +3,12 @@ ## 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/P2PackageUpload.md b/bindings/python/src/docs/P2PackageUpload.md index ffb065ca..6d9716e0 100644 --- a/bindings/python/src/docs/P2PackageUpload.md +++ b/bindings/python/src/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 41b60cc3..79f7dd96 100644 --- a/bindings/python/src/docs/P2PackageUploadRequest.md +++ b/bindings/python/src/docs/P2PackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 3a29446c..7c1749b4 100644 --- a/bindings/python/src/docs/Package.md +++ b/bindings/python/src/docs/Package.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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/PackageCopy.md b/bindings/python/src/docs/PackageCopy.md index 33886327..4d2fc059 100644 --- a/bindings/python/src/docs/PackageCopy.md +++ b/bindings/python/src/docs/PackageCopy.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 43238c76..59cc9c55 100644 --- a/bindings/python/src/docs/PackageCopyRequest.md +++ b/bindings/python/src/docs/PackageCopyRequest.md @@ -4,7 +4,9 @@ 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 new file mode 100644 index 00000000..fc942b63 --- /dev/null +++ b/bindings/python/src/docs/PackageDetail.md @@ -0,0 +1,101 @@ +# PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**list[Architecture]**](Architecture.md) | | [optional] +**cdn_url** | **str** | | [optional] +**checksum_md5** | **str** | | [optional] +**checksum_sha1** | **str** | | [optional] +**checksum_sha256** | **str** | | [optional] +**checksum_sha512** | **str** | | [optional] +**dependencies_checksum_md5** | **str** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **str** | | [optional] +**description** | **str** | A textual description of this package. | [optional] +**display_name** | **str** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **int** | | [optional] +**epoch** | **int** | The epoch of the package version (if any). | [optional] +**extension** | **str** | | [optional] +**filename** | **str** | | [optional] +**filepath** | **str** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**list[PackageFile]**](PackageFile.md) | | [optional] +**format** | **str** | | [optional] +**format_url** | **str** | | [optional] +**freeable_storage** | **int** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **str** | | [optional] +**has_dependencies** | **bool** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifier_perm** | **str** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **dict(str, str)** | Return a map of identifier field names and their values. | [optional] +**indexed** | **bool** | | [optional] +**is_cancellable** | **bool** | | [optional] +**is_copyable** | **bool** | | [optional] +**is_deleteable** | **bool** | | [optional] +**is_downloadable** | **bool** | | [optional] +**is_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] +**is_resyncable** | **bool** | | [optional] +**is_security_scannable** | **bool** | | [optional] +**is_sync_awaiting** | **bool** | | [optional] +**is_sync_completed** | **bool** | | [optional] +**is_sync_failed** | **bool** | | [optional] +**is_sync_in_flight** | **bool** | | [optional] +**is_sync_in_progress** | **bool** | | [optional] +**license** | **str** | The license of this package. | [optional] +**name** | **str** | The name of this package. | [optional] +**namespace** | **str** | | [optional] +**namespace_url** | **str** | | [optional] +**num_files** | **int** | | [optional] +**origin_repository** | **str** | | [optional] +**origin_repository_url** | **str** | | [optional] +**osi_approved** | **bool** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **int** | The type of package contents. | [optional] +**policy_violated** | **bool** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **str** | The raw license string. | [optional] +**release** | **str** | The release of the package version (if any). | [optional] +**repository** | **str** | | [optional] +**repository_url** | **str** | | [optional] +**security_scan_completed_at** | **datetime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **datetime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **str** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **datetime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **str** | | [optional] +**self_url** | **str** | | [optional] +**self_webapp_url** | **str** | | [optional] +**signature_url** | **str** | | [optional] +**size** | **int** | The calculated size of the package. | [optional] +**slug** | **str** | The public unique identifier for the package. | [optional] +**slug_perm** | **str** | | [optional] +**spdx_license** | **str** | The SPDX license identifier for this package. | [optional] +**stage** | **int** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **str** | | [optional] +**stage_updated_at** | **datetime** | The datetime the package stage was updated at. | [optional] +**status** | **int** | The synchronisation status of the package. | [optional] +**status_reason** | **str** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **str** | | [optional] +**status_updated_at** | **datetime** | The datetime the package status was updated at. | [optional] +**status_url** | **str** | | [optional] +**subtype** | **str** | | [optional] +**summary** | **str** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **datetime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] +**type_display** | **str** | | [optional] +**uploaded_at** | **datetime** | The date this package was uploaded. | [optional] +**uploader** | **str** | | [optional] +**uploader_url** | **str** | | [optional] +**version** | **str** | The raw version for this package. | [optional] +**version_orig** | **str** | | [optional] +**vulnerability_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/PackageLicense.md b/bindings/python/src/docs/PackageLicense.md index b3b76af8..64c79c8c 100644 --- a/bindings/python/src/docs/PackageLicense.md +++ b/bindings/python/src/docs/PackageLicense.md @@ -3,10 +3,12 @@ ## 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 6f7ca04e..c6a3ddc2 100644 --- a/bindings/python/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/python/src/docs/PackageLicenseRequestPatch.md @@ -4,10 +4,12 @@ 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** | | [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 f0fe7e3e..3c6231c1 100644 --- a/bindings/python/src/docs/PackageMove.md +++ b/bindings/python/src/docs/PackageMove.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 6965de8d..23f28739 100644 --- a/bindings/python/src/docs/PackageMoveRequest.md +++ b/bindings/python/src/docs/PackageMoveRequest.md @@ -4,6 +4,8 @@ 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 67185933..7d41acf1 100644 --- a/bindings/python/src/docs/PackageQuarantine.md +++ b/bindings/python/src/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 e15a3e1a..5665d280 100644 --- a/bindings/python/src/docs/PackageQuarantineRequest.md +++ b/bindings/python/src/docs/PackageQuarantineRequest.md @@ -3,8 +3,10 @@ ## 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 5731c6fa..fa7972d5 100644 --- a/bindings/python/src/docs/PackageResync.md +++ b/bindings/python/src/docs/PackageResync.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 57c73895..fa8812d9 100644 --- a/bindings/python/src/docs/PackageTag.md +++ b/bindings/python/src/docs/PackageTag.md @@ -34,6 +34,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 40720fa8..6d4a75ba 100644 --- a/bindings/python/src/docs/PackageTagRequest.md +++ b/bindings/python/src/docs/PackageTagRequest.md @@ -5,7 +5,9 @@ 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 be865d5c..c47b5f0f 100644 --- a/bindings/python/src/docs/PackageVulnerability.md +++ b/bindings/python/src/docs/PackageVulnerability.md @@ -4,9 +4,11 @@ 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 99215a37..7aa9e5a3 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -539,7 +539,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **packages_read** -> Package packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) +> PackageDetail packages_read(owner, repo, identifier, include_connected_repositories=include_connected_repositories) Get a specific package in a repository. @@ -589,7 +589,7 @@ Name | Type | Description | Notes ### Return type -[**Package**](Package.md) +[**PackageDetail**](PackageDetail.md) ### Authorization diff --git a/bindings/python/src/docs/PythonPackageUpload.md b/bindings/python/src/docs/PythonPackageUpload.md index 88ed3d1e..79ea5c55 100644 --- a/bindings/python/src/docs/PythonPackageUpload.md +++ b/bindings/python/src/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 d49294b0..7012c360 100644 --- a/bindings/python/src/docs/PythonPackageUploadRequest.md +++ b/bindings/python/src/docs/PythonPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 95ed6bab..1139bbe3 100644 --- a/bindings/python/src/docs/RawPackageUpload.md +++ b/bindings/python/src/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 9af8ab1c..fc4afb4b 100644 --- a/bindings/python/src/docs/RawPackageUploadRequest.md +++ b/bindings/python/src/docs/RawPackageUploadRequest.md @@ -5,12 +5,14 @@ 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/RecycleBinPackage.md b/bindings/python/src/docs/RecycleBinPackage.md index d3a931ae..5657beb7 100644 --- a/bindings/python/src/docs/RecycleBinPackage.md +++ b/bindings/python/src/docs/RecycleBinPackage.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **identifiers** | **dict(str, str)** | | [optional] **invoked_retention_rule** | **dict(str, str)** | Information about the retention rule that triggered deletion (if any). | [optional] **is_deleteable** | **bool** | | [optional] +**is_malware_detected** | **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_quarantined** | **bool** | | [optional] **is_restorable** | **bool** | | [optional] **name** | **str** | The name of this package. | [optional] @@ -27,6 +28,7 @@ Name | Type | Description | Notes **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **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/RpmPackageUpload.md b/bindings/python/src/docs/RpmPackageUpload.md index f61b49bb..c077c46f 100644 --- a/bindings/python/src/docs/RpmPackageUpload.md +++ b/bindings/python/src/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 925ab077..b5f7dbd3 100644 --- a/bindings/python/src/docs/RpmPackageUploadRequest.md +++ b/bindings/python/src/docs/RpmPackageUploadRequest.md @@ -4,9 +4,11 @@ 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 f8cfe0ba..713eb2bf 100644 --- a/bindings/python/src/docs/RubyPackageUpload.md +++ b/bindings/python/src/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 b39bcb08..fc849980 100644 --- a/bindings/python/src/docs/RubyPackageUploadRequest.md +++ b/bindings/python/src/docs/RubyPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 2cc734db..3953d24e 100644 --- a/bindings/python/src/docs/SwiftPackageUpload.md +++ b/bindings/python/src/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -87,12 +88,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **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 64bd4f51..43d3bf42 100644 --- a/bindings/python/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/python/src/docs/SwiftPackageUploadRequest.md @@ -5,6 +5,7 @@ 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. | @@ -14,6 +15,7 @@ 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 0dfe41a1..7b2d52be 100644 --- a/bindings/python/src/docs/TerraformPackageUpload.md +++ b/bindings/python/src/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 fd22eb76..4b20f65b 100644 --- a/bindings/python/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/python/src/docs/TerraformPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 cc6c0ae6..573d0476 100644 --- a/bindings/python/src/docs/VagrantPackageUpload.md +++ b/bindings/python/src/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | **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 b987c1fb..d227bc37 100644 --- a/bindings/python/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/python/src/docs/VagrantPackageUploadRequest.md @@ -3,12 +3,14 @@ ## 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 0fc65778..eab4188e 100644 --- a/bindings/python/src/docs/VsxPackageUpload.md +++ b/bindings/python/src/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **int** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **dict(str, list[str])** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **str** | | [optional] **uploaded_at** | **datetime** | The date this package was uploaded. | [optional] **uploader** | **str** | | [optional] **uploader_url** | **str** | | [optional] **version** | **str** | The raw version for this package. | [optional] **version_orig** | **str** | | [optional] +**vulnerability_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 ee68e701..35a052a7 100644 --- a/bindings/python/src/docs/VsxPackageUploadRequest.md +++ b/bindings/python/src/docs/VsxPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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/WebOSVSeverityCounts.md b/bindings/python/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..a9810439 --- /dev/null +++ b/bindings/python/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,16 @@ +# WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **int** | | [optional] +**high** | **int** | | [optional] +**low** | **int** | | [optional] +**malware** | **int** | | [optional] +**medium** | **int** | | [optional] +**total** | **int** | | [optional] +**unknown** | **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/setup.py b/bindings/python/src/setup.py index d8e29f58..b4c64986 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith_api" -VERSION = "2.0.29" +VERSION = "2.0.30" # To install the library, run the following # # python setup.py install diff --git a/bindings/python/src/test/test_package_detail.py b/bindings/python/src/test/test_package_detail.py new file mode 100644 index 00000000..642463ba --- /dev/null +++ b/bindings/python/src/test/test_package_detail.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudsmith_api +from cloudsmith_api.models.package_detail import PackageDetail # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestPackageDetail(unittest.TestCase): + """PackageDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPackageDetail(self): + """Test PackageDetail""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.package_detail.PackageDetail() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_web_osv_severity_counts.py b/bindings/python/src/test/test_web_osv_severity_counts.py new file mode 100644 index 00000000..b9f631e0 --- /dev/null +++ b/bindings/python/src/test/test_web_osv_severity_counts.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.web_osv_severity_counts import WebOSVSeverityCounts # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestWebOSVSeverityCounts(unittest.TestCase): + """WebOSVSeverityCounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWebOSVSeverityCounts(self): + """Test WebOSVSeverityCounts""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.web_osv_severity_counts.WebOSVSeverityCounts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 0a1e054e..0ae47a9c 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.29 +- Package version: 2.0.30 - 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.29.gem +gem install ./cloudsmith-api-2.0.30.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.29.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.30.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.29' + gem 'cloudsmith-api', '~> 2.0.30' ### Install from Git @@ -623,6 +623,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [CloudsmithApi::PackageDependencies](docs/PackageDependencies.md) - [CloudsmithApi::PackageDependency](docs/PackageDependency.md) + - [CloudsmithApi::PackageDetail](docs/PackageDetail.md) - [CloudsmithApi::PackageFile](docs/PackageFile.md) - [CloudsmithApi::PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [CloudsmithApi::PackageFileUpload](docs/PackageFileUpload.md) @@ -760,6 +761,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [CloudsmithApi::VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [CloudsmithApi::VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [CloudsmithApi::WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [CloudsmithApi::WebhookTemplate](docs/WebhookTemplate.md) diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index 44df3834..e3544aae 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.29", + "gemVersion": "2.0.30", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/AlpinePackageUpload.md b/bindings/ruby/src/docs/AlpinePackageUpload.md index f37b68c2..85827891 100644 --- a/bindings/ruby/src/docs/AlpinePackageUpload.md +++ b/bindings/ruby/src/docs/AlpinePackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 02ac5af7..8bc5f429 100644 --- a/bindings/ruby/src/docs/AlpinePackageUploadRequest.md +++ b/bindings/ruby/src/docs/AlpinePackageUploadRequest.md @@ -4,8 +4,10 @@ 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 55616766..eecbaba0 100644 --- a/bindings/ruby/src/docs/CargoPackageUpload.md +++ b/bindings/ruby/src/docs/CargoPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 49ffb8b8..ca0ab2a0 100644 --- a/bindings/ruby/src/docs/CargoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CargoPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 448b8d40..ea6d8fba 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUpload.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 0543d164..98299cf0 100644 --- a/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CocoapodsPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 c6dae012..c439493f 100644 --- a/bindings/ruby/src/docs/ComposerPackageUpload.md +++ b/bindings/ruby/src/docs/ComposerPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 148267ed..cb870c55 100644 --- a/bindings/ruby/src/docs/ComposerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ComposerPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 24ecf92a..8d8c1e80 100644 --- a/bindings/ruby/src/docs/ConanPackageUpload.md +++ b/bindings/ruby/src/docs/ConanPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 3be765bb..6b819f13 100644 --- a/bindings/ruby/src/docs/ConanPackageUploadRequest.md +++ b/bindings/ruby/src/docs/ConanPackageUploadRequest.md @@ -6,6 +6,7 @@ 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] @@ -13,5 +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] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/CondaPackageUpload.md b/bindings/ruby/src/docs/CondaPackageUpload.md index a177a11d..30d719db 100644 --- a/bindings/ruby/src/docs/CondaPackageUpload.md +++ b/bindings/ruby/src/docs/CondaPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 bde344a5..f1ad328c 100644 --- a/bindings/ruby/src/docs/CondaPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CondaPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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/CranPackageUpload.md b/bindings/ruby/src/docs/CranPackageUpload.md index fb307ec6..37cd115d 100644 --- a/bindings/ruby/src/docs/CranPackageUpload.md +++ b/bindings/ruby/src/docs/CranPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 88171cb6..9e2e31e8 100644 --- a/bindings/ruby/src/docs/CranPackageUploadRequest.md +++ b/bindings/ruby/src/docs/CranPackageUploadRequest.md @@ -4,9 +4,11 @@ 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 7e5f8a45..877f1f94 100644 --- a/bindings/ruby/src/docs/DartPackageUpload.md +++ b/bindings/ruby/src/docs/DartPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 09e0075d..4e16d319 100644 --- a/bindings/ruby/src/docs/DartPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DartPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 d8470a8e..20c8a911 100644 --- a/bindings/ruby/src/docs/DebPackageUpload.md +++ b/bindings/ruby/src/docs/DebPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 1b1b13b0..c14b7581 100644 --- a/bindings/ruby/src/docs/DebPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DebPackageUploadRequest.md @@ -6,9 +6,11 @@ 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 275d27bc..b301f475 100644 --- a/bindings/ruby/src/docs/DockerPackageUpload.md +++ b/bindings/ruby/src/docs/DockerPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 600ba9ed..86b184ce 100644 --- a/bindings/ruby/src/docs/DockerPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DockerPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 88cc360d..4ab90727 100644 --- a/bindings/ruby/src/docs/GenericPackageUpload.md +++ b/bindings/ruby/src/docs/GenericPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 021d86df..fabf220d 100644 --- a/bindings/ruby/src/docs/GenericPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GenericPackageUploadRequest.md @@ -4,10 +4,12 @@ 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 0d4b2ebe..25054102 100644 --- a/bindings/ruby/src/docs/GoPackageUpload.md +++ b/bindings/ruby/src/docs/GoPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 4cd65974..6007e35f 100644 --- a/bindings/ruby/src/docs/GoPackageUploadRequest.md +++ b/bindings/ruby/src/docs/GoPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 be57fed0..83e55485 100644 --- a/bindings/ruby/src/docs/HelmPackageUpload.md +++ b/bindings/ruby/src/docs/HelmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 a37db62a..5e29c272 100644 --- a/bindings/ruby/src/docs/HelmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HelmPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 6482f8dd..2b5582ca 100644 --- a/bindings/ruby/src/docs/HexPackageUpload.md +++ b/bindings/ruby/src/docs/HexPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 2398d935..407f2612 100644 --- a/bindings/ruby/src/docs/HexPackageUploadRequest.md +++ b/bindings/ruby/src/docs/HexPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 67e4194c..3df89d89 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUpload.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 746e0fc7..db479d97 100644 --- a/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md +++ b/bindings/ruby/src/docs/HuggingfacePackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 4496aafb..03bc7b2b 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUpload.md +++ b/bindings/ruby/src/docs/LuarocksPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 3caec220..5b96921f 100644 --- a/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md +++ b/bindings/ruby/src/docs/LuarocksPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 1159d850..06fe209a 100644 --- a/bindings/ruby/src/docs/MavenPackageUpload.md +++ b/bindings/ruby/src/docs/MavenPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -87,12 +88,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 1d07db6e..fddc8a56 100644 --- a/bindings/ruby/src/docs/MavenPackageUploadRequest.md +++ b/bindings/ruby/src/docs/MavenPackageUploadRequest.md @@ -6,6 +6,7 @@ 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. | @@ -18,5 +19,6 @@ 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 82602c35..215dd100 100644 --- a/bindings/ruby/src/docs/McpPackageUpload.md +++ b/bindings/ruby/src/docs/McpPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 c8b43974..ba573f82 100644 --- a/bindings/ruby/src/docs/McpPackageUploadRequest.md +++ b/bindings/ruby/src/docs/McpPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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/NpmPackageUpload.md b/bindings/ruby/src/docs/NpmPackageUpload.md index 34920076..7bca7450 100644 --- a/bindings/ruby/src/docs/NpmPackageUpload.md +++ b/bindings/ruby/src/docs/NpmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 de4d85aa..1662ac9d 100644 --- a/bindings/ruby/src/docs/NpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NpmPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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 77340689..a558edb1 100644 --- a/bindings/ruby/src/docs/NugetPackageUpload.md +++ b/bindings/ruby/src/docs/NugetPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 222a52ea..e2c041c8 100644 --- a/bindings/ruby/src/docs/NugetPackageUploadRequest.md +++ b/bindings/ruby/src/docs/NugetPackageUploadRequest.md @@ -3,9 +3,11 @@ ## 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/P2PackageUpload.md b/bindings/ruby/src/docs/P2PackageUpload.md index 97db0025..41831f67 100644 --- a/bindings/ruby/src/docs/P2PackageUpload.md +++ b/bindings/ruby/src/docs/P2PackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 312ee4af..a34a0ec0 100644 --- a/bindings/ruby/src/docs/P2PackageUploadRequest.md +++ b/bindings/ruby/src/docs/P2PackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 2f593a03..e4dfdd0a 100644 --- a/bindings/ruby/src/docs/Package.md +++ b/bindings/ruby/src/docs/Package.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **vulnerability_scan_results_url** | **String** | | [optional] diff --git a/bindings/ruby/src/docs/PackageCopy.md b/bindings/ruby/src/docs/PackageCopy.md index e426846f..433dd2f9 100644 --- a/bindings/ruby/src/docs/PackageCopy.md +++ b/bindings/ruby/src/docs/PackageCopy.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 a63fe6cb..7de64b9b 100644 --- a/bindings/ruby/src/docs/PackageCopyRequest.md +++ b/bindings/ruby/src/docs/PackageCopyRequest.md @@ -4,6 +4,8 @@ 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 new file mode 100644 index 00000000..ed62b1e6 --- /dev/null +++ b/bindings/ruby/src/docs/PackageDetail.md @@ -0,0 +1,99 @@ +# CloudsmithApi::PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architectures** | [**Array<Architecture>**](Architecture.md) | | [optional] +**cdn_url** | **String** | | [optional] +**checksum_md5** | **String** | | [optional] +**checksum_sha1** | **String** | | [optional] +**checksum_sha256** | **String** | | [optional] +**checksum_sha512** | **String** | | [optional] +**dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional] +**dependencies_url** | **String** | | [optional] +**description** | **String** | A textual description of this package. | [optional] +**display_name** | **String** | | [optional] +**distro** | [**Distribution**](Distribution.md) | | [optional] +**distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional] +**downloads** | **Integer** | | [optional] +**epoch** | **Integer** | The epoch of the package version (if any). | [optional] +**extension** | **String** | | [optional] +**filename** | **String** | | [optional] +**filepath** | **String** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] +**files** | [**Array<PackageFile>**](PackageFile.md) | | [optional] +**format** | **String** | | [optional] +**format_url** | **String** | | [optional] +**freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional] +**fully_qualified_name** | **String** | | [optional] +**has_dependencies** | **BOOLEAN** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] +**identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional] +**identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional] +**indexed** | **BOOLEAN** | | [optional] +**is_cancellable** | **BOOLEAN** | | [optional] +**is_copyable** | **BOOLEAN** | | [optional] +**is_deleteable** | **BOOLEAN** | | [optional] +**is_downloadable** | **BOOLEAN** | | [optional] +**is_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] +**is_resyncable** | **BOOLEAN** | | [optional] +**is_security_scannable** | **BOOLEAN** | | [optional] +**is_sync_awaiting** | **BOOLEAN** | | [optional] +**is_sync_completed** | **BOOLEAN** | | [optional] +**is_sync_failed** | **BOOLEAN** | | [optional] +**is_sync_in_flight** | **BOOLEAN** | | [optional] +**is_sync_in_progress** | **BOOLEAN** | | [optional] +**license** | **String** | The license of this package. | [optional] +**name** | **String** | The name of this package. | [optional] +**namespace** | **String** | | [optional] +**namespace_url** | **String** | | [optional] +**num_files** | **Integer** | | [optional] +**origin_repository** | **String** | | [optional] +**origin_repository_url** | **String** | | [optional] +**osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional] +**package_type** | **Integer** | The type of package contents. | [optional] +**policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional] +**raw_license** | **String** | The raw license string. | [optional] +**release** | **String** | The release of the package version (if any). | [optional] +**repository** | **String** | | [optional] +**repository_url** | **String** | | [optional] +**security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional] +**security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional] +**security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan'] +**security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional] +**self_html_url** | **String** | | [optional] +**self_url** | **String** | | [optional] +**self_webapp_url** | **String** | | [optional] +**signature_url** | **String** | | [optional] +**size** | **Integer** | The calculated size of the package. | [optional] +**slug** | **String** | The public unique identifier for the package. | [optional] +**slug_perm** | **String** | | [optional] +**spdx_license** | **String** | The SPDX license identifier for this package. | [optional] +**stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional] +**stage_str** | **String** | | [optional] +**stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional] +**status** | **Integer** | The synchronisation status of the package. | [optional] +**status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional] +**status_str** | **String** | | [optional] +**status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional] +**status_url** | **String** | | [optional] +**subtype** | **String** | | [optional] +**summary** | **String** | A one-liner synopsis of this package. | [optional] +**sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional] +**sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**tags_automatic** | [**Tags**](Tags.md) | | [optional] +**tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] +**type_display** | **String** | | [optional] +**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploader_url** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**version_orig** | **String** | | [optional] +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**vulnerability_scan_results_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/PackageLicense.md b/bindings/ruby/src/docs/PackageLicense.md index ff49c85c..2be9c951 100644 --- a/bindings/ruby/src/docs/PackageLicense.md +++ b/bindings/ruby/src/docs/PackageLicense.md @@ -3,9 +3,11 @@ ## 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 0b9c8d86..17409381 100644 --- a/bindings/ruby/src/docs/PackageLicenseRequestPatch.md +++ b/bindings/ruby/src/docs/PackageLicenseRequestPatch.md @@ -4,9 +4,11 @@ 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** | | [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 b83e51f9..49fcf81a 100644 --- a/bindings/ruby/src/docs/PackageMove.md +++ b/bindings/ruby/src/docs/PackageMove.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 47e829f0..e9da22be 100644 --- a/bindings/ruby/src/docs/PackageMoveRequest.md +++ b/bindings/ruby/src/docs/PackageMoveRequest.md @@ -4,5 +4,7 @@ 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 f7914aaf..9c60ea84 100644 --- a/bindings/ruby/src/docs/PackageQuarantine.md +++ b/bindings/ruby/src/docs/PackageQuarantine.md @@ -33,6 +33,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 5392352c..bc5efd91 100644 --- a/bindings/ruby/src/docs/PackageQuarantineRequest.md +++ b/bindings/ruby/src/docs/PackageQuarantineRequest.md @@ -3,7 +3,9 @@ ## 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 b54f736e..14076599 100644 --- a/bindings/ruby/src/docs/PackageResync.md +++ b/bindings/ruby/src/docs/PackageResync.md @@ -33,6 +33,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **tags** | [**Tags**](Tags.md) | | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 6e2cb1ca..de3241be 100644 --- a/bindings/ruby/src/docs/PackageTag.md +++ b/bindings/ruby/src/docs/PackageTag.md @@ -34,6 +34,7 @@ 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] @@ -84,12 +85,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 a360cfe9..bea90d98 100644 --- a/bindings/ruby/src/docs/PackageTagRequest.md +++ b/bindings/ruby/src/docs/PackageTagRequest.md @@ -5,6 +5,8 @@ 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 56d4ae15..372b9bfa 100644 --- a/bindings/ruby/src/docs/PackageVulnerability.md +++ b/bindings/ruby/src/docs/PackageVulnerability.md @@ -4,8 +4,10 @@ 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 dd066849..70cb2ad1 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -563,7 +563,7 @@ Name | Type | Description | Notes # **packages_read** -> Package packages_read(owner, repo, identifier, opts) +> PackageDetail packages_read(owner, repo, identifier, opts) Get a specific package in a repository. @@ -617,7 +617,7 @@ Name | Type | Description | Notes ### Return type -[**Package**](Package.md) +[**PackageDetail**](PackageDetail.md) ### Authorization diff --git a/bindings/ruby/src/docs/PythonPackageUpload.md b/bindings/ruby/src/docs/PythonPackageUpload.md index e99dec37..db26822f 100644 --- a/bindings/ruby/src/docs/PythonPackageUpload.md +++ b/bindings/ruby/src/docs/PythonPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 784b1ad6..33dc13ac 100644 --- a/bindings/ruby/src/docs/PythonPackageUploadRequest.md +++ b/bindings/ruby/src/docs/PythonPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 5b138eee..1dc18dd6 100644 --- a/bindings/ruby/src/docs/RawPackageUpload.md +++ b/bindings/ruby/src/docs/RawPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 ac191af1..5382da04 100644 --- a/bindings/ruby/src/docs/RawPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RawPackageUploadRequest.md @@ -5,11 +5,13 @@ 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/RecycleBinPackage.md b/bindings/ruby/src/docs/RecycleBinPackage.md index 5b1b1a88..2526e06d 100644 --- a/bindings/ruby/src/docs/RecycleBinPackage.md +++ b/bindings/ruby/src/docs/RecycleBinPackage.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **identifiers** | **Hash<String, String>** | | [optional] **invoked_retention_rule** | **Hash<String, String>** | Information about the retention rule that triggered deletion (if any). | [optional] **is_deleteable** | **BOOLEAN** | | [optional] +**is_malware_detected** | **BOOLEAN** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] **is_quarantined** | **BOOLEAN** | | [optional] **is_restorable** | **BOOLEAN** | | [optional] **name** | **String** | The name of this package. | [optional] @@ -27,5 +28,6 @@ Name | Type | Description | Notes **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [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 65fbe6bc..42800cd3 100644 --- a/bindings/ruby/src/docs/RpmPackageUpload.md +++ b/bindings/ruby/src/docs/RpmPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 07dfaf8d..c1ad6e5d 100644 --- a/bindings/ruby/src/docs/RpmPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RpmPackageUploadRequest.md @@ -4,8 +4,10 @@ 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 1457909b..06f17789 100644 --- a/bindings/ruby/src/docs/RubyPackageUpload.md +++ b/bindings/ruby/src/docs/RubyPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 bdf89e50..962381a9 100644 --- a/bindings/ruby/src/docs/RubyPackageUploadRequest.md +++ b/bindings/ruby/src/docs/RubyPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 02b0095d..64630e1a 100644 --- a/bindings/ruby/src/docs/SwiftPackageUpload.md +++ b/bindings/ruby/src/docs/SwiftPackageUpload.md @@ -34,6 +34,7 @@ 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] @@ -87,12 +88,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **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 3961ef1b..d5744106 100644 --- a/bindings/ruby/src/docs/SwiftPackageUploadRequest.md +++ b/bindings/ruby/src/docs/SwiftPackageUploadRequest.md @@ -5,6 +5,7 @@ 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. | @@ -14,5 +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. | +**vulnerability_counts** | [**WebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] diff --git a/bindings/ruby/src/docs/TerraformPackageUpload.md b/bindings/ruby/src/docs/TerraformPackageUpload.md index 0a76b6ae..70bcbe82 100644 --- a/bindings/ruby/src/docs/TerraformPackageUpload.md +++ b/bindings/ruby/src/docs/TerraformPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 19f4c087..d0e3478b 100644 --- a/bindings/ruby/src/docs/TerraformPackageUploadRequest.md +++ b/bindings/ruby/src/docs/TerraformPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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 c5a59c29..d6c8782a 100644 --- a/bindings/ruby/src/docs/VagrantPackageUpload.md +++ b/bindings/ruby/src/docs/VagrantPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -83,12 +84,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | **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 5e93a431..cf0665b9 100644 --- a/bindings/ruby/src/docs/VagrantPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VagrantPackageUploadRequest.md @@ -3,11 +3,13 @@ ## 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 093647dd..bbccedc9 100644 --- a/bindings/ruby/src/docs/VsxPackageUpload.md +++ b/bindings/ruby/src/docs/VsxPackageUpload.md @@ -32,6 +32,7 @@ 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] @@ -82,12 +83,14 @@ Name | Type | Description | Notes **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional] **tags_automatic** | [**Tags**](Tags.md) | | [optional] **tags_immutable** | [**Tags**](Tags.md) | | [optional] +**tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional] **type_display** | **String** | | [optional] **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] **uploader** | **String** | | [optional] **uploader_url** | **String** | | [optional] **version** | **String** | The raw version for this package. | [optional] **version_orig** | **String** | | [optional] +**vulnerability_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 dcfab844..00baca8f 100644 --- a/bindings/ruby/src/docs/VsxPackageUploadRequest.md +++ b/bindings/ruby/src/docs/VsxPackageUploadRequest.md @@ -3,8 +3,10 @@ ## 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/WebOSVSeverityCounts.md b/bindings/ruby/src/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..2f6ca7d6 --- /dev/null +++ b/bindings/ruby/src/docs/WebOSVSeverityCounts.md @@ -0,0 +1,14 @@ +# CloudsmithApi::WebOSVSeverityCounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical** | **Integer** | | [optional] +**high** | **Integer** | | [optional] +**low** | **Integer** | | [optional] +**malware** | **Integer** | | [optional] +**medium** | **Integer** | | [optional] +**total** | **Integer** | | [optional] +**unknown** | **Integer** | | [optional] + + diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 1b35c217..59cf4992 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -184,6 +184,7 @@ require 'cloudsmith-api/models/package_deny_policy_request_patch' require 'cloudsmith-api/models/package_dependencies' require 'cloudsmith-api/models/package_dependency' +require 'cloudsmith-api/models/package_detail' require 'cloudsmith-api/models/package_file' require 'cloudsmith-api/models/package_file_parts_upload' require 'cloudsmith-api/models/package_file_upload' @@ -321,6 +322,7 @@ require 'cloudsmith-api/models/vulnerability_scan_results' require 'cloudsmith-api/models/vulnerability_scan_results_list' require 'cloudsmith-api/models/vulnerability_scan_version' +require 'cloudsmith-api/models/web_osv_severity_counts' require 'cloudsmith-api/models/webhook_template' # APIs 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 87a964f0..9120bd69 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -520,7 +520,7 @@ def packages_quarantine_with_http_info(owner, repo, identifier, opts = {}) # @param identifier # @param [Hash] opts the optional parameters # @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) - # @return [Package] + # @return [PackageDetail] def packages_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_read_with_http_info(owner, repo, identifier, opts) data @@ -533,7 +533,7 @@ def packages_read(owner, repo, identifier, opts = {}) # @param identifier # @param [Hash] opts the optional parameters # @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. - # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + # @return [Array<(PackageDetail, Fixnum, Hash)>] PackageDetail data, response status code and response headers def packages_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PackagesApi.packages_read ...' @@ -576,7 +576,7 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Package') + :return_type => 'PackageDetail') if @api_client.config.debugging @api_client.config.logger.debug "API called: PackagesApi#packages_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb index 54566d47..000d5081 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class AlpinePackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class AlpinePackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 67c25135..c21de2e1 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,6 +17,9 @@ 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 @@ -26,13 +29,17 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -40,9 +47,11 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -58,6 +67,10 @@ 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 @@ -69,6 +82,10 @@ 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? @@ -100,9 +117,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -114,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, package_file, republish, tags].hash + [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].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 c5d9ac6d..db8f9240 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class CargoPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class CargoPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 94b1712b..a6b7cd1b 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 4283bee8..69c988aa 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class CocoapodsPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class CocoapodsPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 6402fcf8..f85c2827 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 12853cb8..e1eb629b 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class ComposerPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class ComposerPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 0e20133f..3cd91a51 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,6 +14,9 @@ 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 @@ -26,23 +29,29 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -69,6 +82,10 @@ 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? @@ -94,10 +111,12 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags, version].hash + [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].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 45df0cb5..c52cacfd 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 @@ -84,6 +84,9 @@ 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 @@ -205,6 +208,9 @@ class ConanPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +225,8 @@ class ConanPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -277,6 +285,7 @@ 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', @@ -327,12 +336,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -371,6 +382,7 @@ 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', @@ -421,12 +433,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -569,6 +583,10 @@ 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 @@ -771,6 +789,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +819,10 @@ 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 @@ -861,6 +889,7 @@ 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 && @@ -911,12 +940,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,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, conan_channel, conan_prefix, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 fb50c78b..813ece12 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,6 +23,9 @@ 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 @@ -44,19 +47,23 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -66,13 +73,15 @@ 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' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -96,6 +105,10 @@ 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 @@ -123,6 +136,10 @@ 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? @@ -166,13 +183,15 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -184,7 +203,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [conan_channel, conan_prefix, info_file, manifest_file, metadata_file, name, package_file, republish, tags, version].hash + [conan_channel, conan_prefix, info_file, is_malware_detected, manifest_file, metadata_file, name, package_file, republish, tags, version, vulnerability_counts].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 93d80004..69d8c63d 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class CondaPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class CondaPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 583cbedb..6b9e3a8c 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash 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 7dfb5d07..e9980ac9 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 @@ -78,6 +78,9 @@ 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 @@ -202,6 +205,9 @@ class CranPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -216,6 +222,8 @@ class CranPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +280,7 @@ 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', @@ -323,12 +332,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +376,7 @@ 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', @@ -416,12 +428,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -556,6 +570,10 @@ 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 @@ -762,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -786,6 +810,10 @@ 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 @@ -850,6 +878,7 @@ 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 && @@ -901,12 +930,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -919,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, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, r_version, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 473a0af8..f6f03ef2 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,6 +17,9 @@ 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 @@ -29,14 +32,18 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -44,10 +51,12 @@ def self.attribute_map def self.swagger_types { :'architecture' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'r_version' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -63,6 +72,10 @@ 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 @@ -78,6 +91,10 @@ 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? @@ -104,10 +121,12 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -119,7 +138,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [architecture, package_file, r_version, republish, tags].hash + [architecture, is_malware_detected, package_file, r_version, republish, tags, vulnerability_counts].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 b6902043..b362e263 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class DartPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class DartPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 43332f46..3aa60a57 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 84a7f384..d3f21a2e 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class DebPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class DebPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 cc5ba04a..fb1c986a 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,6 +23,9 @@ 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 @@ -35,16 +38,20 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -54,10 +61,12 @@ 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' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -83,6 +92,10 @@ 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 @@ -98,6 +111,10 @@ 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? @@ -131,10 +148,12 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -146,7 +165,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [changes_file, component, distribution, package_file, republish, sources_file, tags].hash + [changes_file, component, distribution, is_malware_detected, package_file, republish, sources_file, tags, vulnerability_counts].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 2039148d..bc58f96a 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class DockerPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class DockerPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 8f86a6a7..a86bd7a0 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 09a75fad..ed503789 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class GenericPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class GenericPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 0c2929f4..bb934e9c 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,6 +17,9 @@ 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 @@ -32,15 +35,19 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -48,11 +55,13 @@ 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' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -68,6 +77,10 @@ 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 @@ -87,6 +100,10 @@ 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? @@ -118,11 +135,13 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -134,7 +153,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [filepath, name, package_file, republish, tags, version].hash + [filepath, is_malware_detected, name, package_file, republish, tags, version, vulnerability_counts].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 01915cc7..e47304a0 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class GoPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class GoPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 1fa593fb..6ae5718a 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 20e43abd..cca939da 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class HelmPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class HelmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 9c5ab9c6..0076deb6 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,6 +14,9 @@ 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 @@ -26,23 +29,29 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'provenance_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -69,6 +82,10 @@ 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? @@ -94,10 +111,12 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, provenance_file, republish, tags].hash + [is_malware_detected, package_file, provenance_file, republish, tags, vulnerability_counts].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 9f67a29c..dc023a94 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class HexPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class HexPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 eafbbe6f..8904d139 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 511068c7..cc630742 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class HuggingfacePackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class HuggingfacePackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 46ebe25c..39e4d138 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 12145de4..2863a630 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class LuarocksPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class LuarocksPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 3af112f6..b522fee8 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 6be19c6d..743d304b 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 @@ -84,6 +84,9 @@ 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 @@ -212,6 +215,9 @@ class MavenPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -226,6 +232,8 @@ class MavenPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -284,6 +292,7 @@ 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', @@ -337,12 +346,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -381,6 +392,7 @@ 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', @@ -434,12 +446,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -582,6 +596,10 @@ 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 @@ -796,6 +814,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -820,6 +844,10 @@ 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 @@ -886,6 +914,7 @@ 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 && @@ -939,12 +968,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -957,7 +988,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 cdc25493..7e08c2bf 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,6 +23,9 @@ 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 @@ -57,12 +60,15 @@ 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', @@ -74,7 +80,8 @@ def self.attribute_map :'sources_file' => :'sources_file', :'tags' => :'tags', :'tests_file' => :'tests_file', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -84,6 +91,7 @@ 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', @@ -95,7 +103,8 @@ def self.swagger_types :'sources_file' => :'String', :'tags' => :'String', :'tests_file' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -121,6 +130,10 @@ 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 @@ -168,6 +181,10 @@ 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? @@ -196,6 +213,7 @@ 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 && @@ -207,7 +225,8 @@ def ==(o) sources_file == o.sources_file && tags == o.tags && tests_file == o.tests_file && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -219,7 +238,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def 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 + [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 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 2c178e8a..80203f84 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class McpPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class McpPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 3fceb8d5..22f8454d 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,6 +14,9 @@ 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 @@ -26,23 +29,29 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -69,6 +82,10 @@ 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? @@ -94,10 +111,12 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags, version].hash + [is_malware_detected, package_file, republish, tags, version, vulnerability_counts].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 c1f4e5ce..895720d2 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class NpmPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class NpmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 cc7c9362..9db52e38 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,6 +14,9 @@ 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 @@ -26,23 +29,29 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'npm_dist_tag' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -71,6 +84,10 @@ 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? @@ -96,10 +113,12 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -111,7 +130,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [npm_dist_tag, package_file, republish, tags].hash + [is_malware_detected, npm_dist_tag, package_file, republish, tags, vulnerability_counts].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 f19656f2..d26ff56e 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class NugetPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class NugetPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 ed1f8939..3ac2a574 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,6 +14,9 @@ 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 @@ -26,23 +29,29 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', :'symbols_file' => :'String', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -54,6 +63,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -69,6 +82,10 @@ 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? @@ -94,10 +111,12 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -109,7 +128,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, symbols_file, tags].hash + [is_malware_detected, package_file, republish, symbols_file, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/p2_package_upload.rb index ac4ecedd..015daf20 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class P2PackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class P2PackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 1a02d8d3..287d4599 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 e8079f22..031df237 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb @@ -81,6 +81,9 @@ class Package 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 @@ -204,6 +207,9 @@ class Package attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -218,6 +224,8 @@ class Package attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -275,6 +283,7 @@ 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', @@ -326,12 +335,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -369,6 +380,7 @@ 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', @@ -420,12 +432,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -564,6 +578,10 @@ 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 @@ -770,6 +788,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -794,6 +818,10 @@ 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 +887,7 @@ 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 && @@ -910,12 +939,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -928,7 +959,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 33e58894..2c8671a8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb @@ -81,6 +81,9 @@ 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 @@ -205,6 +208,9 @@ class PackageCopy attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +225,8 @@ class PackageCopy attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -276,6 +284,7 @@ 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', @@ -327,12 +336,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -370,6 +381,7 @@ 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', @@ -421,12 +433,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -565,6 +579,10 @@ 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 @@ -771,6 +789,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +819,10 @@ 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 @@ -860,6 +888,7 @@ 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 && @@ -911,12 +940,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy_request.rb index bfbd9757..2a1a4d5d 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,14 +17,21 @@ 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', - :'republish' => :'republish' + :'is_malware_detected' => :'is_malware_detected', + :'republish' => :'republish', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -32,7 +39,9 @@ def self.attribute_map def self.swagger_types { :'destination' => :'String', - :'republish' => :'BOOLEAN' + :'is_malware_detected' => :'BOOLEAN', + :'republish' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -48,9 +57,17 @@ 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? @@ -77,7 +94,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && destination == o.destination && - republish == o.republish + is_malware_detected == o.is_malware_detected && + republish == o.republish && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -89,7 +108,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination, republish].hash + [destination, is_malware_detected, republish, vulnerability_counts].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 new file mode 100644 index 00000000..1ea2afcb --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb @@ -0,0 +1,1080 @@ +=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 PackageDetail + attr_accessor :architectures + + attr_accessor :cdn_url + + attr_accessor :checksum_md5 + + attr_accessor :checksum_sha1 + + attr_accessor :checksum_sha256 + + attr_accessor :checksum_sha512 + + # A checksum of all of the package's dependencies. + attr_accessor :dependencies_checksum_md5 + + attr_accessor :dependencies_url + + # A textual description of this package. + attr_accessor :description + + attr_accessor :display_name + + attr_accessor :distro + + attr_accessor :distro_version + + attr_accessor :downloads + + # The epoch of the package version (if any). + attr_accessor :epoch + + attr_accessor :extension + + attr_accessor :filename + + # Full path to the file, including filename e.g. bin/utils/tool.tar.gz + attr_accessor :filepath + + attr_accessor :files + + attr_accessor :format + + attr_accessor :format_url + + # Amount of storage that will be freed if this package is deleted + attr_accessor :freeable_storage + + attr_accessor :fully_qualified_name + + # Whether the package has any dependencies (top-level or from its SBOM). + attr_accessor :has_dependencies + + # Unique and permanent identifier for the package. + attr_accessor :identifier_perm + + # Return a map of identifier field names and their values. + attr_accessor :identifiers + + attr_accessor :indexed + + attr_accessor :is_cancellable + + attr_accessor :is_copyable + + attr_accessor :is_deleteable + + attr_accessor :is_downloadable + + attr_accessor :is_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 + + attr_accessor :is_quarantined + + attr_accessor :is_resyncable + + attr_accessor :is_security_scannable + + attr_accessor :is_sync_awaiting + + attr_accessor :is_sync_completed + + attr_accessor :is_sync_failed + + attr_accessor :is_sync_in_flight + + attr_accessor :is_sync_in_progress + + # The license of this package. + attr_accessor :license + + # The name of this package. + attr_accessor :name + + attr_accessor :namespace + + attr_accessor :namespace_url + + attr_accessor :num_files + + attr_accessor :origin_repository + + attr_accessor :origin_repository_url + + # Whether the package's SPDX license is OSI-approved. + attr_accessor :osi_approved + + # The type of package contents. + attr_accessor :package_type + + # Whether or not the package has violated any policy. + attr_accessor :policy_violated + + # The raw license string. + attr_accessor :raw_license + + # The release of the package version (if any). + attr_accessor :release + + attr_accessor :repository + + attr_accessor :repository_url + + # The datetime the security scanning was completed. + attr_accessor :security_scan_completed_at + + # The datetime the security scanning was started. + attr_accessor :security_scan_started_at + + attr_accessor :security_scan_status + + # The datetime the security scanning status was updated. + attr_accessor :security_scan_status_updated_at + + attr_accessor :self_html_url + + attr_accessor :self_url + + attr_accessor :self_webapp_url + + attr_accessor :signature_url + + # The calculated size of the package. + attr_accessor :size + + # The public unique identifier for the package. + attr_accessor :slug + + attr_accessor :slug_perm + + # The SPDX license identifier for this package. + attr_accessor :spdx_license + + # The synchronisation (in progress) stage of the package. + attr_accessor :stage + + attr_accessor :stage_str + + # The datetime the package stage was updated at. + attr_accessor :stage_updated_at + + # The synchronisation status of the package. + attr_accessor :status + + # A textual description for the synchronous status reason (if any + attr_accessor :status_reason + + attr_accessor :status_str + + # The datetime the package status was updated at. + attr_accessor :status_updated_at + + attr_accessor :status_url + + attr_accessor :subtype + + # A one-liner synopsis of this package. + attr_accessor :summary + + # The datetime the package sync was finished at. + attr_accessor :sync_finished_at + + # Synchronisation progress (from 0-100) + attr_accessor :sync_progress + + attr_accessor :tags + + attr_accessor :tags_automatic + + attr_accessor :tags_immutable + + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + + attr_accessor :type_display + + # The date this package was uploaded. + attr_accessor :uploaded_at + + attr_accessor :uploader + + attr_accessor :uploader_url + + # The raw version for this package. + attr_accessor :version + + attr_accessor :version_orig + + attr_accessor :vulnerability_counts + + attr_accessor :vulnerability_scan_results_url + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'architectures' => :'architectures', + :'cdn_url' => :'cdn_url', + :'checksum_md5' => :'checksum_md5', + :'checksum_sha1' => :'checksum_sha1', + :'checksum_sha256' => :'checksum_sha256', + :'checksum_sha512' => :'checksum_sha512', + :'dependencies_checksum_md5' => :'dependencies_checksum_md5', + :'dependencies_url' => :'dependencies_url', + :'description' => :'description', + :'display_name' => :'display_name', + :'distro' => :'distro', + :'distro_version' => :'distro_version', + :'downloads' => :'downloads', + :'epoch' => :'epoch', + :'extension' => :'extension', + :'filename' => :'filename', + :'filepath' => :'filepath', + :'files' => :'files', + :'format' => :'format', + :'format_url' => :'format_url', + :'freeable_storage' => :'freeable_storage', + :'fully_qualified_name' => :'fully_qualified_name', + :'has_dependencies' => :'has_dependencies', + :'identifier_perm' => :'identifier_perm', + :'identifiers' => :'identifiers', + :'indexed' => :'indexed', + :'is_cancellable' => :'is_cancellable', + :'is_copyable' => :'is_copyable', + :'is_deleteable' => :'is_deleteable', + :'is_downloadable' => :'is_downloadable', + :'is_hidden' => :'is_hidden', + :'is_malware_detected' => :'is_malware_detected', + :'is_moveable' => :'is_moveable', + :'is_quarantinable' => :'is_quarantinable', + :'is_quarantined' => :'is_quarantined', + :'is_resyncable' => :'is_resyncable', + :'is_security_scannable' => :'is_security_scannable', + :'is_sync_awaiting' => :'is_sync_awaiting', + :'is_sync_completed' => :'is_sync_completed', + :'is_sync_failed' => :'is_sync_failed', + :'is_sync_in_flight' => :'is_sync_in_flight', + :'is_sync_in_progress' => :'is_sync_in_progress', + :'license' => :'license', + :'name' => :'name', + :'namespace' => :'namespace', + :'namespace_url' => :'namespace_url', + :'num_files' => :'num_files', + :'origin_repository' => :'origin_repository', + :'origin_repository_url' => :'origin_repository_url', + :'osi_approved' => :'osi_approved', + :'package_type' => :'package_type', + :'policy_violated' => :'policy_violated', + :'raw_license' => :'raw_license', + :'release' => :'release', + :'repository' => :'repository', + :'repository_url' => :'repository_url', + :'security_scan_completed_at' => :'security_scan_completed_at', + :'security_scan_started_at' => :'security_scan_started_at', + :'security_scan_status' => :'security_scan_status', + :'security_scan_status_updated_at' => :'security_scan_status_updated_at', + :'self_html_url' => :'self_html_url', + :'self_url' => :'self_url', + :'self_webapp_url' => :'self_webapp_url', + :'signature_url' => :'signature_url', + :'size' => :'size', + :'slug' => :'slug', + :'slug_perm' => :'slug_perm', + :'spdx_license' => :'spdx_license', + :'stage' => :'stage', + :'stage_str' => :'stage_str', + :'stage_updated_at' => :'stage_updated_at', + :'status' => :'status', + :'status_reason' => :'status_reason', + :'status_str' => :'status_str', + :'status_updated_at' => :'status_updated_at', + :'status_url' => :'status_url', + :'subtype' => :'subtype', + :'summary' => :'summary', + :'sync_finished_at' => :'sync_finished_at', + :'sync_progress' => :'sync_progress', + :'tags' => :'tags', + :'tags_automatic' => :'tags_automatic', + :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', + :'type_display' => :'type_display', + :'uploaded_at' => :'uploaded_at', + :'uploader' => :'uploader', + :'uploader_url' => :'uploader_url', + :'version' => :'version', + :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'architectures' => :'Array', + :'cdn_url' => :'String', + :'checksum_md5' => :'String', + :'checksum_sha1' => :'String', + :'checksum_sha256' => :'String', + :'checksum_sha512' => :'String', + :'dependencies_checksum_md5' => :'String', + :'dependencies_url' => :'String', + :'description' => :'String', + :'display_name' => :'String', + :'distro' => :'Distribution', + :'distro_version' => :'DistributionVersion', + :'downloads' => :'Integer', + :'epoch' => :'Integer', + :'extension' => :'String', + :'filename' => :'String', + :'filepath' => :'String', + :'files' => :'Array', + :'format' => :'String', + :'format_url' => :'String', + :'freeable_storage' => :'Integer', + :'fully_qualified_name' => :'String', + :'has_dependencies' => :'BOOLEAN', + :'identifier_perm' => :'String', + :'identifiers' => :'Hash', + :'indexed' => :'BOOLEAN', + :'is_cancellable' => :'BOOLEAN', + :'is_copyable' => :'BOOLEAN', + :'is_deleteable' => :'BOOLEAN', + :'is_downloadable' => :'BOOLEAN', + :'is_hidden' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', + :'is_moveable' => :'BOOLEAN', + :'is_quarantinable' => :'BOOLEAN', + :'is_quarantined' => :'BOOLEAN', + :'is_resyncable' => :'BOOLEAN', + :'is_security_scannable' => :'BOOLEAN', + :'is_sync_awaiting' => :'BOOLEAN', + :'is_sync_completed' => :'BOOLEAN', + :'is_sync_failed' => :'BOOLEAN', + :'is_sync_in_flight' => :'BOOLEAN', + :'is_sync_in_progress' => :'BOOLEAN', + :'license' => :'String', + :'name' => :'String', + :'namespace' => :'String', + :'namespace_url' => :'String', + :'num_files' => :'Integer', + :'origin_repository' => :'String', + :'origin_repository_url' => :'String', + :'osi_approved' => :'BOOLEAN', + :'package_type' => :'Integer', + :'policy_violated' => :'BOOLEAN', + :'raw_license' => :'String', + :'release' => :'String', + :'repository' => :'String', + :'repository_url' => :'String', + :'security_scan_completed_at' => :'DateTime', + :'security_scan_started_at' => :'DateTime', + :'security_scan_status' => :'String', + :'security_scan_status_updated_at' => :'DateTime', + :'self_html_url' => :'String', + :'self_url' => :'String', + :'self_webapp_url' => :'String', + :'signature_url' => :'String', + :'size' => :'Integer', + :'slug' => :'String', + :'slug_perm' => :'String', + :'spdx_license' => :'String', + :'stage' => :'Integer', + :'stage_str' => :'String', + :'stage_updated_at' => :'DateTime', + :'status' => :'Integer', + :'status_reason' => :'String', + :'status_str' => :'String', + :'status_updated_at' => :'DateTime', + :'status_url' => :'String', + :'subtype' => :'String', + :'summary' => :'String', + :'sync_finished_at' => :'DateTime', + :'sync_progress' => :'Integer', + :'tags' => :'Tags', + :'tags_automatic' => :'Tags', + :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', + :'type_display' => :'String', + :'uploaded_at' => :'DateTime', + :'uploader' => :'String', + :'uploader_url' => :'String', + :'version' => :'String', + :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', + :'vulnerability_scan_results_url' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'architectures') + if (value = attributes[:'architectures']).is_a?(Array) + self.architectures = value + end + end + + if attributes.has_key?(:'cdn_url') + self.cdn_url = attributes[:'cdn_url'] + end + + if attributes.has_key?(:'checksum_md5') + self.checksum_md5 = attributes[:'checksum_md5'] + end + + if attributes.has_key?(:'checksum_sha1') + self.checksum_sha1 = attributes[:'checksum_sha1'] + end + + if attributes.has_key?(:'checksum_sha256') + self.checksum_sha256 = attributes[:'checksum_sha256'] + end + + if attributes.has_key?(:'checksum_sha512') + self.checksum_sha512 = attributes[:'checksum_sha512'] + end + + if attributes.has_key?(:'dependencies_checksum_md5') + self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] + end + + if attributes.has_key?(:'dependencies_url') + self.dependencies_url = attributes[:'dependencies_url'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.has_key?(:'distro') + self.distro = attributes[:'distro'] + end + + if attributes.has_key?(:'distro_version') + self.distro_version = attributes[:'distro_version'] + end + + if attributes.has_key?(:'downloads') + self.downloads = attributes[:'downloads'] + end + + if attributes.has_key?(:'epoch') + self.epoch = attributes[:'epoch'] + end + + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + end + + if attributes.has_key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.has_key?(:'filepath') + self.filepath = attributes[:'filepath'] + end + + if attributes.has_key?(:'files') + if (value = attributes[:'files']).is_a?(Array) + self.files = value + end + end + + if attributes.has_key?(:'format') + self.format = attributes[:'format'] + end + + if attributes.has_key?(:'format_url') + self.format_url = attributes[:'format_url'] + end + + if attributes.has_key?(:'freeable_storage') + self.freeable_storage = attributes[:'freeable_storage'] + end + + if attributes.has_key?(:'fully_qualified_name') + self.fully_qualified_name = attributes[:'fully_qualified_name'] + end + + if attributes.has_key?(:'has_dependencies') + self.has_dependencies = attributes[:'has_dependencies'] + end + + if attributes.has_key?(:'identifier_perm') + self.identifier_perm = attributes[:'identifier_perm'] + end + + if attributes.has_key?(:'identifiers') + if (value = attributes[:'identifiers']).is_a?(Hash) + self.identifiers = value + end + end + + if attributes.has_key?(:'indexed') + self.indexed = attributes[:'indexed'] + end + + if attributes.has_key?(:'is_cancellable') + self.is_cancellable = attributes[:'is_cancellable'] + end + + if attributes.has_key?(:'is_copyable') + self.is_copyable = attributes[:'is_copyable'] + end + + if attributes.has_key?(:'is_deleteable') + self.is_deleteable = attributes[:'is_deleteable'] + end + + if attributes.has_key?(:'is_downloadable') + self.is_downloadable = attributes[:'is_downloadable'] + end + + if attributes.has_key?(:'is_hidden') + 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 + + if attributes.has_key?(:'is_quarantinable') + self.is_quarantinable = attributes[:'is_quarantinable'] + end + + if attributes.has_key?(:'is_quarantined') + self.is_quarantined = attributes[:'is_quarantined'] + end + + if attributes.has_key?(:'is_resyncable') + self.is_resyncable = attributes[:'is_resyncable'] + end + + if attributes.has_key?(:'is_security_scannable') + self.is_security_scannable = attributes[:'is_security_scannable'] + end + + if attributes.has_key?(:'is_sync_awaiting') + self.is_sync_awaiting = attributes[:'is_sync_awaiting'] + end + + if attributes.has_key?(:'is_sync_completed') + self.is_sync_completed = attributes[:'is_sync_completed'] + end + + if attributes.has_key?(:'is_sync_failed') + self.is_sync_failed = attributes[:'is_sync_failed'] + end + + if attributes.has_key?(:'is_sync_in_flight') + self.is_sync_in_flight = attributes[:'is_sync_in_flight'] + end + + if attributes.has_key?(:'is_sync_in_progress') + self.is_sync_in_progress = attributes[:'is_sync_in_progress'] + end + + if attributes.has_key?(:'license') + self.license = attributes[:'license'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'namespace') + self.namespace = attributes[:'namespace'] + end + + if attributes.has_key?(:'namespace_url') + self.namespace_url = attributes[:'namespace_url'] + end + + if attributes.has_key?(:'num_files') + self.num_files = attributes[:'num_files'] + end + + if attributes.has_key?(:'origin_repository') + self.origin_repository = attributes[:'origin_repository'] + end + + if attributes.has_key?(:'origin_repository_url') + self.origin_repository_url = attributes[:'origin_repository_url'] + end + + if attributes.has_key?(:'osi_approved') + self.osi_approved = attributes[:'osi_approved'] + end + + if attributes.has_key?(:'package_type') + self.package_type = attributes[:'package_type'] + end + + if attributes.has_key?(:'policy_violated') + self.policy_violated = attributes[:'policy_violated'] + end + + if attributes.has_key?(:'raw_license') + self.raw_license = attributes[:'raw_license'] + end + + if attributes.has_key?(:'release') + self.release = attributes[:'release'] + end + + if attributes.has_key?(:'repository') + self.repository = attributes[:'repository'] + end + + if attributes.has_key?(:'repository_url') + self.repository_url = attributes[:'repository_url'] + end + + if attributes.has_key?(:'security_scan_completed_at') + self.security_scan_completed_at = attributes[:'security_scan_completed_at'] + end + + if attributes.has_key?(:'security_scan_started_at') + self.security_scan_started_at = attributes[:'security_scan_started_at'] + end + + if attributes.has_key?(:'security_scan_status') + self.security_scan_status = attributes[:'security_scan_status'] + else + self.security_scan_status = 'Awaiting Security Scan' + end + + if attributes.has_key?(:'security_scan_status_updated_at') + self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at'] + end + + if attributes.has_key?(:'self_html_url') + self.self_html_url = attributes[:'self_html_url'] + end + + if attributes.has_key?(:'self_url') + self.self_url = attributes[:'self_url'] + end + + if attributes.has_key?(:'self_webapp_url') + self.self_webapp_url = attributes[:'self_webapp_url'] + end + + if attributes.has_key?(:'signature_url') + self.signature_url = attributes[:'signature_url'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + + if attributes.has_key?(:'slug') + self.slug = attributes[:'slug'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'spdx_license') + self.spdx_license = attributes[:'spdx_license'] + end + + if attributes.has_key?(:'stage') + self.stage = attributes[:'stage'] + end + + if attributes.has_key?(:'stage_str') + self.stage_str = attributes[:'stage_str'] + end + + if attributes.has_key?(:'stage_updated_at') + self.stage_updated_at = attributes[:'stage_updated_at'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'status_reason') + self.status_reason = attributes[:'status_reason'] + end + + if attributes.has_key?(:'status_str') + self.status_str = attributes[:'status_str'] + end + + if attributes.has_key?(:'status_updated_at') + self.status_updated_at = attributes[:'status_updated_at'] + end + + if attributes.has_key?(:'status_url') + self.status_url = attributes[:'status_url'] + end + + if attributes.has_key?(:'subtype') + self.subtype = attributes[:'subtype'] + end + + if attributes.has_key?(:'summary') + self.summary = attributes[:'summary'] + end + + if attributes.has_key?(:'sync_finished_at') + self.sync_finished_at = attributes[:'sync_finished_at'] + end + + if attributes.has_key?(:'sync_progress') + self.sync_progress = attributes[:'sync_progress'] + end + + if attributes.has_key?(:'tags') + self.tags = attributes[:'tags'] + end + + if attributes.has_key?(:'tags_automatic') + self.tags_automatic = attributes[:'tags_automatic'] + end + + if attributes.has_key?(:'tags_immutable') + self.tags_immutable = attributes[:'tags_immutable'] + end + + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + + if attributes.has_key?(:'type_display') + self.type_display = attributes[:'type_display'] + end + + if attributes.has_key?(:'uploaded_at') + self.uploaded_at = attributes[:'uploaded_at'] + end + + if attributes.has_key?(:'uploader') + self.uploader = attributes[:'uploader'] + end + + if attributes.has_key?(:'uploader_url') + self.uploader_url = attributes[:'uploader_url'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'version_orig') + self.version_orig = attributes[:'version_orig'] + end + + if attributes.has_key?(:'vulnerability_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 + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + return false unless security_scan_status_validator.valid?(@security_scan_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] security_scan_status Object to be assigned + def security_scan_status=(security_scan_status) + validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + unless validator.valid?(security_scan_status) + fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.' + end + @security_scan_status = security_scan_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + architectures == o.architectures && + cdn_url == o.cdn_url && + checksum_md5 == o.checksum_md5 && + checksum_sha1 == o.checksum_sha1 && + checksum_sha256 == o.checksum_sha256 && + checksum_sha512 == o.checksum_sha512 && + dependencies_checksum_md5 == o.dependencies_checksum_md5 && + dependencies_url == o.dependencies_url && + description == o.description && + display_name == o.display_name && + distro == o.distro && + distro_version == o.distro_version && + downloads == o.downloads && + epoch == o.epoch && + extension == o.extension && + filename == o.filename && + filepath == o.filepath && + files == o.files && + format == o.format && + format_url == o.format_url && + freeable_storage == o.freeable_storage && + fully_qualified_name == o.fully_qualified_name && + has_dependencies == o.has_dependencies && + identifier_perm == o.identifier_perm && + identifiers == o.identifiers && + indexed == o.indexed && + is_cancellable == o.is_cancellable && + is_copyable == o.is_copyable && + is_deleteable == o.is_deleteable && + is_downloadable == o.is_downloadable && + is_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 && + is_resyncable == o.is_resyncable && + is_security_scannable == o.is_security_scannable && + is_sync_awaiting == o.is_sync_awaiting && + is_sync_completed == o.is_sync_completed && + is_sync_failed == o.is_sync_failed && + is_sync_in_flight == o.is_sync_in_flight && + is_sync_in_progress == o.is_sync_in_progress && + license == o.license && + name == o.name && + namespace == o.namespace && + namespace_url == o.namespace_url && + num_files == o.num_files && + origin_repository == o.origin_repository && + origin_repository_url == o.origin_repository_url && + osi_approved == o.osi_approved && + package_type == o.package_type && + policy_violated == o.policy_violated && + raw_license == o.raw_license && + release == o.release && + repository == o.repository && + repository_url == o.repository_url && + security_scan_completed_at == o.security_scan_completed_at && + security_scan_started_at == o.security_scan_started_at && + security_scan_status == o.security_scan_status && + security_scan_status_updated_at == o.security_scan_status_updated_at && + self_html_url == o.self_html_url && + self_url == o.self_url && + self_webapp_url == o.self_webapp_url && + signature_url == o.signature_url && + size == o.size && + slug == o.slug && + slug_perm == o.slug_perm && + spdx_license == o.spdx_license && + stage == o.stage && + stage_str == o.stage_str && + stage_updated_at == o.stage_updated_at && + status == o.status && + status_reason == o.status_reason && + status_str == o.status_str && + status_updated_at == o.status_updated_at && + status_url == o.status_url && + subtype == o.subtype && + summary == o.summary && + sync_finished_at == o.sync_finished_at && + sync_progress == o.sync_progress && + tags == o.tags && + tags_automatic == o.tags_automatic && + tags_immutable == o.tags_immutable && + tags_static == o.tags_static && + type_display == o.type_display && + uploaded_at == o.uploaded_at && + uploader == o.uploader && + uploader_url == o.uploader_url && + version == o.version && + version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && + vulnerability_scan_results_url == o.vulnerability_scan_results_url + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, 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, 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 + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb index 23fd45e3..fee05201 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_license.rb @@ -14,6 +14,9 @@ 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 @@ -22,6 +25,8 @@ class PackageLicense attr_accessor :spdx_license + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -47,20 +52,24 @@ 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' + :'spdx_license' => :'spdx_license', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'license_notes' => :'String', :'license_override' => :'String', :'license_url' => :'String', - :'spdx_license' => :'String' + :'spdx_license' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -72,6 +81,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -89,6 +102,10 @@ 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? @@ -126,10 +143,12 @@ 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 + spdx_license == o.spdx_license && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -141,7 +160,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [license_notes, license_override, license_url, spdx_license].hash + [is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].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 a6805449..0462ee91 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,6 +16,9 @@ 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 @@ -24,6 +27,8 @@ class PackageLicenseRequestPatch attr_accessor :spdx_license + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -50,10 +55,12 @@ 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' + :'spdx_license' => :'spdx_license', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -61,10 +68,12 @@ 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' + :'spdx_license' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,6 +91,10 @@ 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 @@ -99,12 +112,20 @@ 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? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @spdx_license.nil? + invalid_properties.push('invalid value for "spdx_license", spdx_license cannot be nil.') + end + invalid_properties end @@ -115,6 +136,7 @@ def valid? return false unless action_validator.valid?(@action) license_override_validator = EnumAttributeValidator.new('String', ['None', 'Ignored', 'Purchased']) return false unless license_override_validator.valid?(@license_override) + return false if @spdx_license.nil? true end @@ -144,10 +166,12 @@ 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 + spdx_license == o.spdx_license && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -159,7 +183,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, license_notes, license_override, license_url, spdx_license].hash + [action, is_malware_detected, license_notes, license_override, license_url, spdx_license, vulnerability_counts].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 f7e308d2..f456d885 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb @@ -81,6 +81,9 @@ 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 @@ -205,6 +208,9 @@ class PackageMove attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +225,8 @@ class PackageMove attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -276,6 +284,7 @@ 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', @@ -327,12 +336,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -370,6 +381,7 @@ 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', @@ -421,12 +433,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -565,6 +579,10 @@ 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 @@ -771,6 +789,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -795,6 +819,10 @@ 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 @@ -860,6 +888,7 @@ 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 && @@ -911,12 +940,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -929,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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_move_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move_request.rb index 25c41edc..d751540b 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,17 +17,26 @@ 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' + :'destination' => :'destination', + :'is_malware_detected' => :'is_malware_detected', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { - :'destination' => :'String' + :'destination' => :'String', + :'is_malware_detected' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -42,6 +51,14 @@ 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? @@ -67,7 +84,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - destination == o.destination + destination == o.destination && + is_malware_detected == o.is_malware_detected && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -79,7 +98,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [destination].hash + [destination, is_malware_detected, vulnerability_counts].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 0d195617..f529ca5f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine.rb @@ -81,6 +81,9 @@ 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 @@ -201,6 +204,9 @@ class PackageQuarantine attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -215,6 +221,8 @@ class PackageQuarantine attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +280,7 @@ 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', @@ -322,12 +331,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +376,7 @@ 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', @@ -415,12 +427,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -559,6 +573,10 @@ 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 @@ -761,6 +779,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -785,6 +809,10 @@ 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 @@ -850,6 +878,7 @@ 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 && @@ -900,12 +929,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -918,7 +949,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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_quarantine_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_quarantine_request.rb index d6c853e7..74e4fc0e 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,25 +14,34 @@ 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' + :'restore' => :'restore', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'release' => :'BOOLEAN', - :'restore' => :'BOOLEAN' + :'restore' => :'BOOLEAN', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -44,6 +53,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'release') self.release = attributes[:'release'] end @@ -51,6 +64,10 @@ 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? @@ -71,8 +88,10 @@ 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 + restore == o.restore && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -84,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [release, restore].hash + [is_malware_detected, release, restore, vulnerability_counts].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 bcab7672..36f19159 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_resync.rb @@ -81,6 +81,9 @@ 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 @@ -204,6 +207,9 @@ class PackageResync attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -218,6 +224,8 @@ class PackageResync attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -275,6 +283,7 @@ 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', @@ -326,12 +335,14 @@ def self.attribute_map :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -369,6 +380,7 @@ 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', @@ -420,12 +432,14 @@ def self.swagger_types :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -564,6 +578,10 @@ 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 @@ -770,6 +788,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -794,6 +818,10 @@ 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 +887,7 @@ 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 && @@ -910,12 +939,14 @@ def ==(o) tags == o.tags && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -928,7 +959,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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_tag.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb index f74defa9..b97fd26a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_tag.rb @@ -84,6 +84,9 @@ 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 @@ -205,6 +208,9 @@ class PackageTag attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -219,6 +225,8 @@ class PackageTag attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -277,6 +285,7 @@ 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', @@ -327,12 +336,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -371,6 +382,7 @@ 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', @@ -421,12 +433,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -571,6 +585,10 @@ 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 @@ -773,6 +791,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -797,6 +821,10 @@ 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 @@ -863,6 +891,7 @@ 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 && @@ -913,12 +942,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -931,7 +962,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 a561a14b..e3187586 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,9 +19,14 @@ 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 @@ -49,7 +54,9 @@ def self.attribute_map { :'action' => :'action', :'is_immutable' => :'is_immutable', - :'tags' => :'tags' + :'is_malware_detected' => :'is_malware_detected', + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -58,7 +65,9 @@ def self.swagger_types { :'action' => :'String', :'is_immutable' => :'BOOLEAN', - :'tags' => :'Array' + :'is_malware_detected' => :'BOOLEAN', + :'tags' => :'Array', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,11 +91,19 @@ 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? @@ -121,7 +138,9 @@ def ==(o) self.class == o.class && action == o.action && is_immutable == o.is_immutable && - tags == o.tags + is_malware_detected == o.is_malware_detected && + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -133,7 +152,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action, is_immutable, tags].hash + [action, is_immutable, is_malware_detected, tags, vulnerability_counts].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 6151ebde..a6ed93e6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_vulnerability.rb @@ -16,6 +16,9 @@ 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 @@ -24,13 +27,17 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -38,9 +45,11 @@ def self.attribute_map def self.swagger_types { :'identifier' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'name' => :'String', :'url' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -56,6 +65,10 @@ 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 @@ -67,6 +80,10 @@ 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? @@ -93,9 +110,11 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -107,7 +126,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [identifier, name, url, version].hash + [identifier, is_malware_detected, name, url, version, vulnerability_counts].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 5d2a80b8..2f38fa91 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class PythonPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class PythonPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 dc1bcf91..36cd9561 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 e4d8ee77..0d5a3fe1 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class RawPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class RawPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 d3031305..bc7aa494 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,6 +20,9 @@ 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 @@ -38,17 +41,21 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -57,12 +64,14 @@ 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' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -82,6 +91,10 @@ 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 @@ -105,6 +118,10 @@ 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? @@ -132,12 +149,14 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -149,7 +168,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [content_type, description, name, package_file, republish, summary, tags, version].hash + [content_type, description, is_malware_detected, name, package_file, republish, summary, tags, version, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb b/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb index 7e27293d..9823f232 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/recycle_bin_package.rb @@ -33,6 +33,9 @@ class RecycleBinPackage attr_accessor :is_deleteable + # Whether the package has been detected as containing malware. Requires Ultra plan. + attr_accessor :is_malware_detected + attr_accessor :is_quarantined attr_accessor :is_restorable @@ -73,6 +76,8 @@ class RecycleBinPackage # The raw version for this package. attr_accessor :version + attr_accessor :vulnerability_counts + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -106,6 +111,7 @@ def self.attribute_map :'identifiers' => :'identifiers', :'invoked_retention_rule' => :'invoked_retention_rule', :'is_deleteable' => :'is_deleteable', + :'is_malware_detected' => :'is_malware_detected', :'is_quarantined' => :'is_quarantined', :'is_restorable' => :'is_restorable', :'name' => :'name', @@ -121,7 +127,8 @@ def self.attribute_map :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -136,6 +143,7 @@ def self.swagger_types :'identifiers' => :'Hash', :'invoked_retention_rule' => :'Hash', :'is_deleteable' => :'BOOLEAN', + :'is_malware_detected' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', :'is_restorable' => :'BOOLEAN', :'name' => :'String', @@ -151,7 +159,8 @@ def self.swagger_types :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -199,6 +208,10 @@ def initialize(attributes = {}) self.is_deleteable = attributes[:'is_deleteable'] end + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'is_quarantined') self.is_quarantined = attributes[:'is_quarantined'] end @@ -264,6 +277,10 @@ 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? @@ -304,6 +321,7 @@ def ==(o) identifiers == o.identifiers && invoked_retention_rule == o.invoked_retention_rule && is_deleteable == o.is_deleteable && + is_malware_detected == o.is_malware_detected && is_quarantined == o.is_quarantined && is_restorable == o.is_restorable && name == o.name && @@ -319,7 +337,8 @@ def ==(o) type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -331,7 +350,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [action_by, downloads, filename, format, fully_qualified_name, identifiers, invoked_retention_rule, is_deleteable, is_quarantined, is_restorable, name, policy_violated, repository, security_scan_completed_at, security_scan_status, size, slug_perm, status, status_updated_at, tags, type_display, uploaded_at, uploader, version].hash + [action_by, downloads, filename, format, fully_qualified_name, identifiers, invoked_retention_rule, is_deleteable, is_malware_detected, is_quarantined, is_restorable, name, policy_violated, repository, security_scan_completed_at, security_scan_status, size, slug_perm, status, status_updated_at, tags, type_display, uploaded_at, uploader, version, vulnerability_counts].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 c63d9cee..9df724d7 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class RpmPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class RpmPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 eb3f6961..8681cc1a 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,6 +17,9 @@ 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 @@ -26,13 +29,17 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -40,9 +47,11 @@ def self.attribute_map def self.swagger_types { :'distribution' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -58,6 +67,10 @@ 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 @@ -69,6 +82,10 @@ 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? @@ -100,9 +117,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -114,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [distribution, package_file, republish, tags].hash + [distribution, is_malware_detected, package_file, republish, tags, vulnerability_counts].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 e90383ea..0eef7cee 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class RubyPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class RubyPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 e178976d..58728218 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 78f9883b..d6c7a8ad 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 @@ -84,6 +84,9 @@ 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 @@ -215,6 +218,9 @@ class SwiftPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -229,6 +235,8 @@ class SwiftPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -287,6 +295,7 @@ 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', @@ -340,12 +349,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', + :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end @@ -384,6 +395,7 @@ 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', @@ -437,12 +449,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -585,6 +599,10 @@ 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 @@ -799,6 +817,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -823,6 +847,10 @@ 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 @@ -904,6 +932,7 @@ 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,12 +986,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -975,7 +1006,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, license_url, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, readme_url, release, repository, repository_url, scope, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 efe5d770..6a262e96 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,6 +20,9 @@ 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 @@ -47,11 +50,14 @@ 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', @@ -60,7 +66,8 @@ def self.attribute_map :'republish' => :'republish', :'scope' => :'scope', :'tags' => :'tags', - :'version' => :'version' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } end @@ -69,6 +76,7 @@ def self.swagger_types { :'author_name' => :'String', :'author_org' => :'String', + :'is_malware_detected' => :'BOOLEAN', :'license_url' => :'String', :'name' => :'String', :'package_file' => :'String', @@ -77,7 +85,8 @@ def self.swagger_types :'republish' => :'BOOLEAN', :'scope' => :'String', :'tags' => :'String', - :'version' => :'String' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -97,6 +106,10 @@ 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 @@ -132,6 +145,10 @@ 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? @@ -174,6 +191,7 @@ 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 && @@ -182,7 +200,8 @@ def ==(o) republish == o.republish && scope == o.scope && tags == o.tags && - version == o.version + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -194,7 +213,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [author_name, author_org, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version].hash + [author_name, author_org, is_malware_detected, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version, vulnerability_counts].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 cc08ef8b..2dfda9c9 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class TerraformPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class TerraformPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 ebb83bb7..780a52d9 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].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 81a1a690..8cc0a004 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 @@ -78,6 +78,9 @@ 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 @@ -202,6 +205,9 @@ class VagrantPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -216,6 +222,8 @@ class VagrantPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -272,6 +280,7 @@ 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', @@ -323,12 +332,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +376,7 @@ 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', @@ -416,12 +428,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -556,6 +570,10 @@ 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 @@ -762,6 +780,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -786,6 +810,10 @@ 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 @@ -865,6 +893,7 @@ 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 && @@ -916,12 +945,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -934,7 +965,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, provider, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 e9b8e5b5..ff52aa5d 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,6 +14,9 @@ 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 @@ -32,27 +35,33 @@ 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' + :'version' => :'version', + :'vulnerability_counts' => :'vulnerability_counts' } 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' + :'version' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -64,6 +73,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'is_malware_detected') + self.is_malware_detected = attributes[:'is_malware_detected'] + end + if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -87,6 +100,10 @@ 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? @@ -127,12 +144,14 @@ 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 + version == o.version && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -144,7 +163,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [name, package_file, provider, republish, tags, version].hash + [is_malware_detected, name, package_file, provider, republish, tags, version, vulnerability_counts].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 3177084d..5f05d9c6 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 @@ -78,6 +78,9 @@ 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 @@ -199,6 +202,9 @@ class VsxPackageUpload attr_accessor :tags_immutable + # All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. + attr_accessor :tags_static + attr_accessor :type_display # The date this package was uploaded. @@ -213,6 +219,8 @@ class VsxPackageUpload attr_accessor :version_orig + attr_accessor :vulnerability_counts + attr_accessor :vulnerability_scan_results_url class EnumAttributeValidator @@ -269,6 +277,7 @@ 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', @@ -319,12 +328,14 @@ def self.attribute_map :'sync_progress' => :'sync_progress', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', + :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'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 +372,7 @@ 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', @@ -411,12 +423,14 @@ def self.swagger_types :'sync_progress' => :'Integer', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', + :'tags_static' => :'Hash>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end @@ -551,6 +565,10 @@ 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 @@ -753,6 +771,12 @@ def initialize(attributes = {}) self.tags_immutable = attributes[:'tags_immutable'] end + if attributes.has_key?(:'tags_static') + if (value = attributes[:'tags_static']).is_a?(Hash) + self.tags_static = value + end + end + if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end @@ -777,6 +801,10 @@ 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 @@ -841,6 +869,7 @@ 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 && @@ -891,12 +920,14 @@ def ==(o) sync_progress == o.sync_progress && tags_automatic == o.tags_automatic && tags_immutable == o.tags_immutable && + tags_static == o.tags_static && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && + vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end @@ -909,7 +940,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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + [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, 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 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 09f7c9ce..2586804f 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,6 +14,9 @@ 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 @@ -23,21 +26,27 @@ 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' + :'tags' => :'tags', + :'vulnerability_counts' => :'vulnerability_counts' } end # Attribute type mapping. def self.swagger_types { + :'is_malware_detected' => :'BOOLEAN', :'package_file' => :'String', :'republish' => :'BOOLEAN', - :'tags' => :'String' + :'tags' => :'String', + :'vulnerability_counts' => :'WebOSVSeverityCounts' } end @@ -49,6 +58,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'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 @@ -60,6 +73,10 @@ 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? @@ -85,9 +102,11 @@ 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 + tags == o.tags && + vulnerability_counts == o.vulnerability_counts end # @see the `==` method @@ -99,7 +118,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [package_file, republish, tags].hash + [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb b/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb new file mode 100644 index 00000000..601f7e80 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/web_osv_severity_counts.rb @@ -0,0 +1,239 @@ +=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 +# Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan. +class WebOSVSeverityCounts + attr_accessor :critical + + attr_accessor :high + + attr_accessor :low + + attr_accessor :malware + + attr_accessor :medium + + attr_accessor :total + + attr_accessor :unknown + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'critical' => :'critical', + :'high' => :'high', + :'low' => :'low', + :'malware' => :'malware', + :'medium' => :'medium', + :'total' => :'total', + :'unknown' => :'unknown' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'critical' => :'Integer', + :'high' => :'Integer', + :'low' => :'Integer', + :'malware' => :'Integer', + :'medium' => :'Integer', + :'total' => :'Integer', + :'unknown' => :'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?(:'critical') + self.critical = attributes[:'critical'] + end + + if attributes.has_key?(:'high') + self.high = attributes[:'high'] + end + + if attributes.has_key?(:'low') + self.low = attributes[:'low'] + end + + if attributes.has_key?(:'malware') + self.malware = attributes[:'malware'] + end + + if attributes.has_key?(:'medium') + self.medium = attributes[:'medium'] + end + + if attributes.has_key?(:'total') + self.total = attributes[:'total'] + end + + if attributes.has_key?(:'unknown') + self.unknown = attributes[:'unknown'] + 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 && + critical == o.critical && + high == o.high && + low == o.low && + malware == o.malware && + medium == o.medium && + total == o.total && + unknown == o.unknown + 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 + [critical, high, low, malware, medium, total, unknown].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/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index 4c545dd2..cf4554ae 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.29' + VERSION = '2.0.30' end diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index dd1e5e6d..08f81211 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -152,7 +152,7 @@ # @param identifier # @param [Hash] opts the optional parameters # @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. - # @return [Package] + # @return [PackageDetail] describe 'packages_read test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_request_spec.rb index 71ce1aca..a898c7dd 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,6 +38,12 @@ 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,4 +62,10 @@ 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 82a0c541..d35cf3bb 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 f1457b0b..ce493954 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 a7f0b004..75a174c1 100644 --- a/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cargo_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 d0575bed..a86c1572 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 83cd73b9..a92c6c1a 100644 --- a/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cocoapods_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 1a47f072..ef6e8219 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,6 +32,12 @@ 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 @@ -56,4 +62,10 @@ 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 67b5acfa..7e0d96bc 100644 --- a/bindings/ruby/src/spec/models/composer_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/composer_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 5589ff88..ecd9f727 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,6 +50,12 @@ 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 @@ -92,4 +98,10 @@ 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 778eb3de..9002cd84 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb @@ -218,6 +218,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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 acd13807..859a04ab 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 1e605148..879bcd08 100644 --- a/bindings/ruby/src/spec/models/conda_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conda_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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/cran_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/cran_package_upload_request_spec.rb index fe20ae94..0d696dfa 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,6 +38,12 @@ 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,4 +68,10 @@ 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 7822f3bd..6f842d68 100644 --- a/bindings/ruby/src/spec/models/cran_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/cran_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -516,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +564,12 @@ 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 3fbfaf8f..e927501a 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 94a90201..d253ae74 100644 --- a/bindings/ruby/src/spec/models/dart_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/dart_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 ddfe8a2c..136a832d 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,6 +50,12 @@ 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 @@ -74,4 +80,10 @@ 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 63f100b6..90ac1914 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 b2d880e7..e7576500 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 12ef45e1..96e5909a 100644 --- a/bindings/ruby/src/spec/models/docker_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/docker_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 774ab93d..2474b51d 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,6 +38,12 @@ 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 @@ -68,4 +74,10 @@ 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 bc24e81e..afb91ee6 100644 --- a/bindings/ruby/src/spec/models/generic_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/generic_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 3112ecbc..8e13db4e 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 63788b8a..e07b3196 100644 --- a/bindings/ruby/src/spec/models/go_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/go_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 0799d92b..9a033f3a 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,6 +32,12 @@ 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 @@ -56,4 +62,10 @@ 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 55b4501a..55836a9d 100644 --- a/bindings/ruby/src/spec/models/helm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/helm_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 605e9a9f..e2ed984d 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 646d8678..66784dfd 100644 --- a/bindings/ruby/src/spec/models/hex_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/hex_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 99c8209c..c7dc1298 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 514be615..6862e17b 100644 --- a/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/huggingface_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 2883344f..0d461e36 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 5f82df35..b8de3e70 100644 --- a/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/luarocks_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 3832d141..29135f2b 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,6 +50,12 @@ 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 @@ -122,4 +128,10 @@ 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 ac94db4f..f240b863 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb @@ -218,6 +218,12 @@ 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 @@ -540,6 +546,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -576,6 +588,12 @@ 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 19fd180d..66cb00fd 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,6 +32,12 @@ 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 @@ -56,4 +62,10 @@ 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 e66d5382..b67eb8a1 100644 --- a/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/mcp_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 eda889af..14e57f86 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,6 +32,12 @@ 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 @@ -56,4 +62,10 @@ 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 e95b7592..e5dadeb8 100644 --- a/bindings/ruby/src/spec/models/npm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/npm_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 84a6c7df..7e70ac50 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,6 +32,12 @@ 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 @@ -56,4 +62,10 @@ 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 c7de23e6..43e784ff 100644 --- a/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/nuget_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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/p2_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/p2_package_upload_request_spec.rb index 953d7753..78ad7ecc 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 4bea2841..d5a33d7d 100644 --- a/bindings/ruby/src/spec/models/p2_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/p2_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 345a1d3b..dba57d57 100644 --- a/bindings/ruby/src/spec/models/package_copy_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_request_spec.rb @@ -38,10 +38,22 @@ 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 6598d423..747bc141 100644 --- a/bindings/ruby/src/spec/models/package_copy_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_spec.rb @@ -212,6 +212,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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 new file mode 100644 index 00000000..edb43e33 --- /dev/null +++ b/bindings/ruby/src/spec/models/package_detail_spec.rb @@ -0,0 +1,591 @@ +=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::PackageDetail +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackageDetail' do + before do + # run before each test + @instance = CloudsmithApi::PackageDetail.new + end + + after do + # run after each test + end + + describe 'test an instance of PackageDetail' do + it 'should create an instance of PackageDetail' do + expect(@instance).to be_instance_of(CloudsmithApi::PackageDetail) + end + end + describe 'test attribute "architectures"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cdn_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha256"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "checksum_sha512"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_checksum_md5"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "dependencies_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "distro_version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "downloads"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "epoch"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extension"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filename"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "filepath"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "format_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "freeable_storage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "fully_qualified_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "has_dependencies"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifier_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "identifiers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "indexed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_cancellable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_copyable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_deleteable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_downloadable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_hidden"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_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 + end + end + + describe 'test attribute "is_quarantinable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_quarantined"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_resyncable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_security_scannable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_awaiting"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_completed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_failed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_flight"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_sync_in_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "namespace_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "num_files"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "origin_repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "osi_approved"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "policy_violated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "raw_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "release"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "repository_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_completed_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_started_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "security_scan_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Awaiting Security Scan", "Security Scanning in Progress", "Scan Detected Vulnerabilities", "Scan Detected No Vulnerabilities", "Security Scanning Disabled", "Security Scanning Failed", "Security Scanning Skipped", "Security Scanning Not Supported"]) + # validator.allowable_values.each do |value| + # expect { @instance.security_scan_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "security_scan_status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_html_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_webapp_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "signature_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "slug_perm"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "spdx_license"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "stage_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_reason"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_str"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_updated_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "subtype"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "summary"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_finished_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sync_progress"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags"' 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_automatic"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_immutable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type_display"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploaded_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version_orig"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_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 + end + end + +end 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 7de70278..27b131d6 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,6 +42,12 @@ 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 @@ -70,4 +76,10 @@ 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 f6e39ef1..de9edd26 100644 --- a/bindings/ruby/src/spec/models/package_license_spec.rb +++ b/bindings/ruby/src/spec/models/package_license_spec.rb @@ -32,6 +32,12 @@ 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 @@ -60,4 +66,10 @@ 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 cd484ac6..9c4f3f3d 100644 --- a/bindings/ruby/src/spec/models/package_move_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_request_spec.rb @@ -38,4 +38,16 @@ 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 2ba939d0..4dd4856c 100644 --- a/bindings/ruby/src/spec/models/package_move_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_spec.rb @@ -212,6 +212,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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 09d0e611..ad395abd 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_request_spec.rb @@ -32,6 +32,12 @@ 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 @@ -44,4 +50,10 @@ 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 f5a6dfe5..780a44ed 100644 --- a/bindings/ruby/src/spec/models/package_quarantine_spec.rb +++ b/bindings/ruby/src/spec/models/package_quarantine_spec.rb @@ -212,6 +212,12 @@ 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 @@ -516,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +564,12 @@ 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 ce606666..404a8909 100644 --- a/bindings/ruby/src/spec/models/package_resync_spec.rb +++ b/bindings/ruby/src/spec/models/package_resync_spec.rb @@ -212,6 +212,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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 10f88d01..fc770fd0 100644 --- a/bindings/ruby/src/spec/models/package_spec.rb +++ b/bindings/ruby/src/spec/models/package_spec.rb @@ -212,6 +212,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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_tag_request_spec.rb b/bindings/ruby/src/spec/models/package_tag_request_spec.rb index 710eccfb..4626b2bd 100644 --- a/bindings/ruby/src/spec/models/package_tag_request_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_request_spec.rb @@ -48,10 +48,22 @@ 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 00ebfdc7..89bfce5a 100644 --- a/bindings/ruby/src/spec/models/package_tag_spec.rb +++ b/bindings/ruby/src/spec/models/package_tag_spec.rb @@ -218,6 +218,12 @@ 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 @@ -522,6 +528,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -558,6 +570,12 @@ 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 e1acc570..52900c60 100644 --- a/bindings/ruby/src/spec/models/package_vulnerability_spec.rb +++ b/bindings/ruby/src/spec/models/package_vulnerability_spec.rb @@ -38,6 +38,12 @@ 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 @@ -56,4 +62,10 @@ 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 cd88003a..43831904 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 bcf8b5f5..99aac012 100644 --- a/bindings/ruby/src/spec/models/python_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/python_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 65133d2c..599552ce 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,6 +44,12 @@ 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 @@ -80,4 +86,10 @@ 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 35c35c0a..048e0bd7 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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/recycle_bin_package_spec.rb b/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb index 09477e6d..404c8110 100644 --- a/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb +++ b/bindings/ruby/src/spec/models/recycle_bin_package_spec.rb @@ -80,6 +80,12 @@ 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_quarantined"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -180,4 +186,10 @@ 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_request_spec.rb b/bindings/ruby/src/spec/models/rpm_package_upload_request_spec.rb index 7a25435d..7270d711 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,6 +38,12 @@ 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,4 +62,10 @@ 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 5e58016a..40a5be73 100644 --- a/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/rpm_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 7db22695..9e08c7d3 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 92c400ef..8879332e 100644 --- a/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/ruby_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 f6a5a53b..edf1715e 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,6 +44,12 @@ 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 @@ -98,4 +104,10 @@ 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 50c7067c..c2ecc98c 100644 --- a/bindings/ruby/src/spec/models/swift_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/swift_package_upload_spec.rb @@ -218,6 +218,12 @@ 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 @@ -540,6 +546,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -576,6 +588,12 @@ 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 ae305dc3..2a258b16 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 3c902a0e..57405fd8 100644 --- a/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/terraform_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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 baae4b26..ad742194 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,6 +32,12 @@ 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 @@ -68,4 +74,10 @@ 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 3904085f..634d4c5a 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -516,6 +522,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -552,6 +564,12 @@ 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 a6ce9664..551e2dea 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,6 +32,12 @@ 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 @@ -50,4 +56,10 @@ 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 0310b1ee..69dff0ad 100644 --- a/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vsx_package_upload_spec.rb @@ -206,6 +206,12 @@ 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 @@ -510,6 +516,12 @@ end end + describe 'test attribute "tags_static"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "type_display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -546,6 +558,12 @@ 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/web_osv_severity_counts_spec.rb b/bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb new file mode 100644 index 00000000..b7b3f3a0 --- /dev/null +++ b/bindings/ruby/src/spec/models/web_osv_severity_counts_spec.rb @@ -0,0 +1,77 @@ +=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::WebOSVSeverityCounts +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'WebOSVSeverityCounts' do + before do + # run before each test + @instance = CloudsmithApi::WebOSVSeverityCounts.new + end + + after do + # run after each test + end + + describe 'test an instance of WebOSVSeverityCounts' do + it 'should create an instance of WebOSVSeverityCounts' do + expect(@instance).to be_instance_of(CloudsmithApi::WebOSVSeverityCounts) + end + end + describe 'test attribute "critical"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "high"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "low"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "malware"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "medium"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "total"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "unknown"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/scripts/common.sh b/scripts/common.sh index d2d9cd63..bf64397e 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.29" +package_version="2.0.30" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:v2.4.50" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2)