lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-0.54.15 vs lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-0.57.1
- old
+ new
@@ -31,10 +31,13 @@
attr_accessor :checksum_sha256
#
attr_accessor :checksum_sha512
+ # A checksum of all of the package's dependencies.
+ attr_accessor :dependencies_checksum_md5
+
# A textual description of this package.
attr_accessor :description
#
attr_accessor :distro
@@ -127,10 +130,13 @@
attr_accessor :self_html_url
#
attr_accessor :self_url
+ #
+ attr_accessor :signature_url
+
# The calculated size of the package.
attr_accessor :size
# The public unique identifier for the package.
attr_accessor :slug
@@ -209,10 +215,11 @@
:'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',
:'description' => :'description',
:'distro' => :'distro',
:'distro_version' => :'distro_version',
:'downloads' => :'downloads',
:'epoch' => :'epoch',
@@ -241,10 +248,11 @@
:'security_scan_started_at' => :'security_scan_started_at',
:'security_scan_status' => :'security_scan_status',
:'security_scan_status_updated_at' => :'security_scan_status_updated_at',
:'self_html_url' => :'self_html_url',
:'self_url' => :'self_url',
+ :'signature_url' => :'signature_url',
:'size' => :'size',
:'slug' => :'slug',
:'slug_perm' => :'slug_perm',
:'stage' => :'stage',
:'stage_str' => :'stage_str',
@@ -277,10 +285,11 @@
:'cdn_url' => :'String',
:'checksum_md5' => :'String',
:'checksum_sha1' => :'String',
:'checksum_sha256' => :'String',
:'checksum_sha512' => :'String',
+ :'dependencies_checksum_md5' => :'String',
:'description' => :'String',
:'distro' => :'Object',
:'distro_version' => :'Object',
:'downloads' => :'Integer',
:'epoch' => :'Integer',
@@ -309,10 +318,11 @@
:'security_scan_started_at' => :'String',
:'security_scan_status' => :'String',
:'security_scan_status_updated_at' => :'String',
:'self_html_url' => :'String',
:'self_url' => :'String',
+ :'signature_url' => :'String',
:'size' => :'Integer',
:'slug' => :'String',
:'slug_perm' => :'String',
:'stage' => :'String',
:'stage_str' => :'String',
@@ -370,10 +380,14 @@
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?(:'description')
self.description = attributes[:'description']
end
if attributes.has_key?(:'distro')
@@ -500,10 +514,14 @@
if attributes.has_key?(:'self_url')
self.self_url = attributes[:'self_url']
end
+ if attributes.has_key?(:'signature_url')
+ self.signature_url = attributes[:'signature_url']
+ end
+
if attributes.has_key?(:'size')
self.size = attributes[:'size']
end
if attributes.has_key?(:'slug')
@@ -622,10 +640,11 @@
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 &&
description == o.description &&
distro == o.distro &&
distro_version == o.distro_version &&
downloads == o.downloads &&
epoch == o.epoch &&
@@ -654,10 +673,11 @@
security_scan_started_at == o.security_scan_started_at &&
security_scan_status == o.security_scan_status &&
security_scan_status_updated_at == o.security_scan_status_updated_at &&
self_html_url == o.self_html_url &&
self_url == o.self_url &&
+ signature_url == o.signature_url &&
size == o.size &&
slug == o.slug &&
slug_perm == o.slug_perm &&
stage == o.stage &&
stage_str == o.stage_str &&
@@ -689,10 +709,10 @@
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, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, 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, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, 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