lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-0.51.38 vs lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-0.51.93

- old
+ new

@@ -160,10 +160,16 @@ attr_accessor :sync_finished_at # Synchronisation progress (from 0-100) attr_accessor :sync_progress + # All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + attr_accessor :tags + + # All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + attr_accessor :tags_immutable + # attr_accessor :type_display # The date this package was uploaded. attr_accessor :uploaded_at @@ -231,10 +237,12 @@ :'status_url' => :'status_url', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', + :'tags' => :'tags', + :'tags_immutable' => :'tags_immutable', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', @@ -292,10 +300,12 @@ :'status_url' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'String', :'sync_progress' => :'Integer', + :'tags' => :'Object', + :'tags_immutable' => :'Object', :'type_display' => :'String', :'uploaded_at' => :'String', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', @@ -509,10 +519,18 @@ 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_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') @@ -602,10 +620,12 @@ 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_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 && @@ -619,10 +639,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, 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, tags, tags_immutable, 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