lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-2.0.13 vs lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-2.0.14

- old
+ new

@@ -32,10 +32,12 @@ 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 @@ -222,10 +224,11 @@ :'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', @@ -304,10 +307,11 @@ :'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', @@ -420,10 +424,14 @@ 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') @@ -732,10 +740,11 @@ 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 && @@ -810,10 +819,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, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, 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, 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 + [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, 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, 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