lib/cloudsmith-api/models/package.rb in cloudsmith-api-0.53.17 vs lib/cloudsmith-api/models/package.rb in cloudsmith-api-0.53.79

- old
+ new

@@ -118,11 +118,11 @@ attr_accessor :self_url # The calculated size of the package. attr_accessor :size - # + # The public unique identifier for the package. attr_accessor :slug # attr_accessor :slug_perm @@ -184,11 +184,14 @@ attr_accessor :version # attr_accessor :version_orig + # + attr_accessor :vulnerability_scan_results_url + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'architectures' => :'architectures', :'cdn_url' => :'cdn_url', @@ -244,11 +247,12 @@ :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', - :'version_orig' => :'version_orig' + :'version_orig' => :'version_orig', + :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end # Attribute type mapping. def self.swagger_types @@ -307,11 +311,12 @@ :'type_display' => :'String', :'uploaded_at' => :'String', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', - :'version_orig' => :'String' + :'version_orig' => :'String', + :'vulnerability_scan_results_url' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -551,10 +556,14 @@ 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 properies with the reasons def list_invalid_properties @@ -627,11 +636,12 @@ 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 + 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) @@ -639,10 +649,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, tags, tags_immutable, 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, 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