diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 94452b75..c051c677 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) 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/PackageDetail.md b/bindings/java/src/docs/PackageDetail.md new file mode 100644 index 00000000..e087822c --- /dev/null +++ b/bindings/java/src/docs/PackageDetail.md @@ -0,0 +1,112 @@ + +# 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] +**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] +**typeDisplay** | **String** | | [optional] +**uploadedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploaderUrl** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**versionOrig** | **String** | | [optional] +**vulnerabilityScanResultsUrl** | **String** | | [optional] + + + +## Enum: SecurityScanStatusEnum +Name | Value +---- | ----- +AWAITING_SECURITY_SCAN | "Awaiting Security Scan" +SECURITY_SCANNING_IN_PROGRESS | "Security Scanning in Progress" +SCAN_DETECTED_VULNERABILITIES | "Scan Detected Vulnerabilities" +SCAN_DETECTED_NO_VULNERABILITIES | "Scan Detected No Vulnerabilities" +SECURITY_SCANNING_DISABLED | "Security Scanning Disabled" +SECURITY_SCANNING_FAILED | "Security Scanning Failed" +SECURITY_SCANNING_SKIPPED | "Security Scanning Skipped" +SECURITY_SCANNING_NOT_SUPPORTED | "Security Scanning Not Supported" + + + diff --git a/bindings/java/src/docs/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/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..ec7de4ad 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,7 @@ 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/PackageDetail.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java new file mode 100644 index 00000000..87adb7ad --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDetail.java @@ -0,0 +1,1450 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package io.cloudsmith.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.Architecture; +import io.cloudsmith.api.models.Distribution; +import io.cloudsmith.api.models.DistributionVersion; +import io.cloudsmith.api.models.PackageFile; +import io.cloudsmith.api.models.Tags; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * 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_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("type_display") + private String typeDisplay = null; + + @SerializedName("uploaded_at") + private OffsetDateTime uploadedAt = null; + + @SerializedName("uploader") + private String uploader = null; + + @SerializedName("uploader_url") + private String uploaderUrl = null; + + @SerializedName("version") + private String version = null; + + @SerializedName("version_orig") + private String versionOrig = null; + + @SerializedName("vulnerability_scan_results_url") + private String vulnerabilityScanResultsUrl = null; + + /** + * Get architectures + * @return architectures + **/ + @Valid + @ApiModelProperty(value = "") + public List getArchitectures() { + return architectures; + } + + /** + * Get cdnUrl + * @return cdnUrl + **/ + @ApiModelProperty(value = "") + public String getCdnUrl() { + return cdnUrl; + } + + /** + * Get checksumMd5 + * @return checksumMd5 + **/ + @ApiModelProperty(value = "") + public String getChecksumMd5() { + return checksumMd5; + } + + /** + * Get checksumSha1 + * @return checksumSha1 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha1() { + return checksumSha1; + } + + /** + * Get checksumSha256 + * @return checksumSha256 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha256() { + return checksumSha256; + } + + /** + * Get checksumSha512 + * @return checksumSha512 + **/ + @ApiModelProperty(value = "") + public String getChecksumSha512() { + return checksumSha512; + } + + /** + * A checksum of all of the package's dependencies. + * @return dependenciesChecksumMd5 + **/ + @ApiModelProperty(value = "A checksum of all of the package's dependencies.") + public String getDependenciesChecksumMd5() { + return dependenciesChecksumMd5; + } + + /** + * Get dependenciesUrl + * @return dependenciesUrl + **/ + @ApiModelProperty(value = "") + public String getDependenciesUrl() { + return dependenciesUrl; + } + + /** + * A textual description of this package. + * @return description + **/ + @ApiModelProperty(value = "A textual description of this package.") + public String getDescription() { + return description; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(value = "") + public String getDisplayName() { + return displayName; + } + + public 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; + } + + /** + * 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; + } + + /** + * Get typeDisplay + * @return typeDisplay + **/ + @ApiModelProperty(value = "") + public String getTypeDisplay() { + return typeDisplay; + } + + /** + * The date this package was uploaded. + * @return uploadedAt + **/ + @Valid + @ApiModelProperty(value = "The date this package was uploaded.") + public OffsetDateTime getUploadedAt() { + return uploadedAt; + } + + /** + * Get uploader + * @return uploader + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getUploader() { + return uploader; + } + + /** + * Get uploaderUrl + * @return uploaderUrl + **/ + @ApiModelProperty(value = "") + public String getUploaderUrl() { + return uploaderUrl; + } + + /** + * The raw version for this package. + * @return version + **/ + @ApiModelProperty(value = "The raw version for this package.") + public String getVersion() { + return version; + } + + /** + * Get versionOrig + * @return versionOrig + **/ + @ApiModelProperty(value = "") + public String getVersionOrig() { + return versionOrig; + } + + /** + * Get vulnerabilityScanResultsUrl + * @return vulnerabilityScanResultsUrl + **/ + @ApiModelProperty(value = "") + public String getVulnerabilityScanResultsUrl() { + return vulnerabilityScanResultsUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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.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.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.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, 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); + } + + + @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(" 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(" typeDisplay: ").append(toIndentedString(typeDisplay)).append("\n"); + sb.append(" uploadedAt: ").append(toIndentedString(uploadedAt)).append("\n"); + sb.append(" uploader: ").append(toIndentedString(uploader)).append("\n"); + sb.append(" uploaderUrl: ").append(toIndentedString(uploaderUrl)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versionOrig: ").append(toIndentedString(versionOrig)).append("\n"); + sb.append(" vulnerabilityScanResultsUrl: ").append(toIndentedString(vulnerabilityScanResultsUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/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/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..000150e7 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) 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..6c892299 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 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..d99a6d9b 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 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..5939cac5 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/package_detail.py @@ -0,0 +1,2532 @@ +# 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_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', + 'type_display': 'str', + 'uploaded_at': 'datetime', + 'uploader': 'str', + 'uploader_url': 'str', + 'version': 'str', + 'version_orig': 'str', + 'vulnerability_scan_results_url': 'str' + } + + attribute_map = { + 'architectures': 'architectures', + 'cdn_url': 'cdn_url', + 'checksum_md5': 'checksum_md5', + 'checksum_sha1': 'checksum_sha1', + 'checksum_sha256': 'checksum_sha256', + 'checksum_sha512': 'checksum_sha512', + 'dependencies_checksum_md5': 'dependencies_checksum_md5', + 'dependencies_url': 'dependencies_url', + 'description': 'description', + 'display_name': 'display_name', + 'distro': 'distro', + 'distro_version': 'distro_version', + 'downloads': 'downloads', + 'epoch': 'epoch', + 'extension': 'extension', + 'filename': 'filename', + '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_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', + 'type_display': 'type_display', + 'uploaded_at': 'uploaded_at', + 'uploader': 'uploader', + 'uploader_url': 'uploader_url', + 'version': 'version', + 'version_orig': 'version_orig', + 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' + } + + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, display_name=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, 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_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 + """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_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._type_display = None + self._uploaded_at = None + self._uploader = None + self._uploader_url = None + self._version = None + self._version_orig = None + self._vulnerability_scan_results_url = None + self.discriminator = None + + if architectures is not None: + self.architectures = architectures + if cdn_url is not None: + self.cdn_url = cdn_url + if checksum_md5 is not None: + self.checksum_md5 = checksum_md5 + if checksum_sha1 is not None: + self.checksum_sha1 = checksum_sha1 + if checksum_sha256 is not None: + self.checksum_sha256 = checksum_sha256 + if checksum_sha512 is not None: + self.checksum_sha512 = checksum_sha512 + if dependencies_checksum_md5 is not None: + self.dependencies_checksum_md5 = dependencies_checksum_md5 + if dependencies_url is not None: + self.dependencies_url = dependencies_url + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if distro is not None: + self.distro = distro + if distro_version is not None: + self.distro_version = distro_version + if downloads is not None: + self.downloads = downloads + if epoch is not None: + self.epoch = epoch + if extension is not None: + self.extension = extension + if filename is not None: + self.filename = filename + if 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_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 type_display is not None: + self.type_display = type_display + if uploaded_at is not None: + self.uploaded_at = uploaded_at + if uploader is not None: + self.uploader = uploader + if uploader_url is not None: + self.uploader_url = uploader_url + if version is not None: + self.version = version + if version_orig is not None: + self.version_orig = version_orig + if vulnerability_scan_results_url is not None: + self.vulnerability_scan_results_url = vulnerability_scan_results_url + + @property + def architectures(self): + """Gets the architectures of this 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_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 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_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/docs/PackageDetail.md b/bindings/python/src/docs/PackageDetail.md new file mode 100644 index 00000000..f03483ac --- /dev/null +++ b/bindings/python/src/docs/PackageDetail.md @@ -0,0 +1,98 @@ +# 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_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] +**type_display** | **str** | | [optional] +**uploaded_at** | **datetime** | The date this package was uploaded. | [optional] +**uploader** | **str** | | [optional] +**uploader_url** | **str** | | [optional] +**version** | **str** | The raw version for this package. | [optional] +**version_orig** | **str** | | [optional] +**vulnerability_scan_results_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/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/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/ruby/src/README.md b/bindings/ruby/src/README.md index 0a1e054e..e0ea6a3b 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) 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/PackageDetail.md b/bindings/ruby/src/docs/PackageDetail.md new file mode 100644 index 00000000..4358ef66 --- /dev/null +++ b/bindings/ruby/src/docs/PackageDetail.md @@ -0,0 +1,96 @@ +# 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_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] +**type_display** | **String** | | [optional] +**uploaded_at** | **DateTime** | The date this package was uploaded. | [optional] +**uploader** | **String** | | [optional] +**uploader_url** | **String** | | [optional] +**version** | **String** | The raw version for this package. | [optional] +**version_orig** | **String** | | [optional] +**vulnerability_scan_results_url** | **String** | | [optional] + + diff --git a/bindings/ruby/src/docs/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/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 1b35c217..fa3f0cd2 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' 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/package_detail.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb new file mode 100644 index 00000000..087d4d2c --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_detail.rb @@ -0,0 +1,1049 @@ +=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 + + 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 + + attr_accessor :type_display + + # The date this package was uploaded. + attr_accessor :uploaded_at + + attr_accessor :uploader + + attr_accessor :uploader_url + + # The raw version for this package. + attr_accessor :version + + attr_accessor :version_orig + + attr_accessor :vulnerability_scan_results_url + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'architectures' => :'architectures', + :'cdn_url' => :'cdn_url', + :'checksum_md5' => :'checksum_md5', + :'checksum_sha1' => :'checksum_sha1', + :'checksum_sha256' => :'checksum_sha256', + :'checksum_sha512' => :'checksum_sha512', + :'dependencies_checksum_md5' => :'dependencies_checksum_md5', + :'dependencies_url' => :'dependencies_url', + :'description' => :'description', + :'display_name' => :'display_name', + :'distro' => :'distro', + :'distro_version' => :'distro_version', + :'downloads' => :'downloads', + :'epoch' => :'epoch', + :'extension' => :'extension', + :'filename' => :'filename', + :'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_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', + :'type_display' => :'type_display', + :'uploaded_at' => :'uploaded_at', + :'uploader' => :'uploader', + :'uploader_url' => :'uploader_url', + :'version' => :'version', + :'version_orig' => :'version_orig', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'architectures' => :'Array', + :'cdn_url' => :'String', + :'checksum_md5' => :'String', + :'checksum_sha1' => :'String', + :'checksum_sha256' => :'String', + :'checksum_sha512' => :'String', + :'dependencies_checksum_md5' => :'String', + :'dependencies_url' => :'String', + :'description' => :'String', + :'display_name' => :'String', + :'distro' => :'Distribution', + :'distro_version' => :'DistributionVersion', + :'downloads' => :'Integer', + :'epoch' => :'Integer', + :'extension' => :'String', + :'filename' => :'String', + :'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_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', + :'type_display' => :'String', + :'uploaded_at' => :'DateTime', + :'uploader' => :'String', + :'uploader_url' => :'String', + :'version' => :'String', + :'version_orig' => :'String', + :'vulnerability_scan_results_url' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'architectures') + if (value = attributes[:'architectures']).is_a?(Array) + self.architectures = value + end + end + + if attributes.has_key?(:'cdn_url') + self.cdn_url = attributes[:'cdn_url'] + end + + if attributes.has_key?(:'checksum_md5') + self.checksum_md5 = attributes[:'checksum_md5'] + end + + if attributes.has_key?(:'checksum_sha1') + self.checksum_sha1 = attributes[:'checksum_sha1'] + end + + if attributes.has_key?(:'checksum_sha256') + self.checksum_sha256 = attributes[:'checksum_sha256'] + end + + if attributes.has_key?(:'checksum_sha512') + self.checksum_sha512 = attributes[:'checksum_sha512'] + end + + if attributes.has_key?(:'dependencies_checksum_md5') + self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] + end + + if attributes.has_key?(:'dependencies_url') + self.dependencies_url = attributes[:'dependencies_url'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.has_key?(:'distro') + self.distro = attributes[:'distro'] + end + + if attributes.has_key?(:'distro_version') + self.distro_version = attributes[:'distro_version'] + end + + if attributes.has_key?(:'downloads') + self.downloads = attributes[:'downloads'] + end + + if attributes.has_key?(:'epoch') + self.epoch = attributes[:'epoch'] + end + + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + end + + if attributes.has_key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.has_key?(:'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_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?(:'type_display') + self.type_display = attributes[:'type_display'] + end + + if attributes.has_key?(:'uploaded_at') + self.uploaded_at = attributes[:'uploaded_at'] + end + + if attributes.has_key?(:'uploader') + self.uploader = attributes[:'uploader'] + end + + if attributes.has_key?(:'uploader_url') + self.uploader_url = attributes[:'uploader_url'] + end + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'version_orig') + self.version_orig = attributes[:'version_orig'] + end + + if attributes.has_key?(:'vulnerability_scan_results_url') + self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + return false unless security_scan_status_validator.valid?(@security_scan_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] security_scan_status Object to be assigned + def security_scan_status=(security_scan_status) + validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported']) + unless validator.valid?(security_scan_status) + fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.' + end + @security_scan_status = security_scan_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + architectures == o.architectures && + cdn_url == o.cdn_url && + checksum_md5 == o.checksum_md5 && + checksum_sha1 == o.checksum_sha1 && + checksum_sha256 == o.checksum_sha256 && + checksum_sha512 == o.checksum_sha512 && + dependencies_checksum_md5 == o.dependencies_checksum_md5 && + dependencies_url == o.dependencies_url && + description == o.description && + display_name == o.display_name && + distro == o.distro && + distro_version == o.distro_version && + downloads == o.downloads && + epoch == o.epoch && + extension == o.extension && + filename == o.filename && + 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_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 && + type_display == o.type_display && + uploaded_at == o.uploaded_at && + uploader == o.uploader && + uploader_url == o.uploader_url && + version == o.version && + version_orig == o.version_orig && + vulnerability_scan_results_url == o.vulnerability_scan_results_url + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, 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_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash + end + + # Builds the object from hash + # @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/package_detail_spec.rb b/bindings/ruby/src/spec/models/package_detail_spec.rb new file mode 100644 index 00000000..74d52c10 --- /dev/null +++ b/bindings/ruby/src/spec/models/package_detail_spec.rb @@ -0,0 +1,573 @@ +=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_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 "type_display"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploaded_at"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "uploader_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "version_orig"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vulnerability_scan_results_url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/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)