lib/cloudsmith-api/models/package.rb in cloudsmith-api-0.49.118 vs lib/cloudsmith-api/models/package.rb in cloudsmith-api-0.51.22
- old
+ new
@@ -61,12 +61,12 @@
attr_accessor :format
#
attr_accessor :format_url
- #
- attr_accessor :identifier
+ # Unique and permanent identifier for the package.
+ attr_accessor :identifier_perm
#
attr_accessor :indexed
#
@@ -198,11 +198,11 @@
:'extension' => :'extension',
:'filename' => :'filename',
:'files' => :'files',
:'format' => :'format',
:'format_url' => :'format_url',
- :'identifier' => :'identifier',
+ :'identifier_perm' => :'identifier_perm',
:'indexed' => :'indexed',
:'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',
@@ -259,11 +259,11 @@
:'extension' => :'String',
:'filename' => :'String',
:'files' => :'Array<PackagesownerrepoFiles>',
:'format' => :'String',
:'format_url' => :'String',
- :'identifier' => :'Integer',
+ :'identifier_perm' => :'String',
:'indexed' => :'BOOLEAN',
:'is_sync_awaiting' => :'BOOLEAN',
:'is_sync_completed' => :'BOOLEAN',
:'is_sync_failed' => :'BOOLEAN',
:'is_sync_in_flight' => :'BOOLEAN',
@@ -377,12 +377,12 @@
if attributes.has_key?(:'format_url')
self.format_url = attributes[:'format_url']
end
- if attributes.has_key?(:'identifier')
- self.identifier = attributes[:'identifier']
+ if attributes.has_key?(:'identifier_perm')
+ self.identifier_perm = attributes[:'identifier_perm']
end
if attributes.has_key?(:'indexed')
self.indexed = attributes[:'indexed']
end
@@ -569,11 +569,11 @@
extension == o.extension &&
filename == o.filename &&
files == o.files &&
format == o.format &&
format_url == o.format_url &&
- identifier == o.identifier &&
+ identifier_perm == o.identifier_perm &&
indexed == o.indexed &&
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 &&
@@ -619,10 +619,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, 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, 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, type_display, uploaded_at, uploader, uploader_url, version, version_orig].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, 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, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself