lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-1.120.3 vs lib/cloudsmith-api/models/package_copy.rb in cloudsmith-api-1.142.3
- old
+ new
@@ -108,10 +108,16 @@
attr_accessor :namespace_url
#
attr_accessor :num_files
+ #
+ attr_accessor :origin_repository
+
+ #
+ attr_accessor :origin_repository_url
+
# The type of package contents.
attr_accessor :package_type
# The release of the package version (if any).
attr_accessor :release
@@ -270,10 +276,12 @@
:'license' => :'license',
:'name' => :'name',
:'namespace' => :'namespace',
:'namespace_url' => :'namespace_url',
:'num_files' => :'num_files',
+ :'origin_repository' => :'origin_repository',
+ :'origin_repository_url' => :'origin_repository_url',
:'package_type' => :'package_type',
:'release' => :'release',
:'repository' => :'repository',
:'repository_url' => :'repository_url',
:'security_scan_completed_at' => :'security_scan_completed_at',
@@ -343,10 +351,12 @@
:'license' => :'String',
:'name' => :'String',
:'namespace' => :'String',
:'namespace_url' => :'String',
:'num_files' => :'Integer',
+ :'origin_repository' => :'String',
+ :'origin_repository_url' => :'String',
:'package_type' => :'Integer',
:'release' => :'String',
:'repository' => :'String',
:'repository_url' => :'String',
:'security_scan_completed_at' => :'String',
@@ -521,10 +531,18 @@
if attributes.has_key?(:'num_files')
self.num_files = attributes[:'num_files']
end
+ if attributes.has_key?(:'origin_repository')
+ self.origin_repository = attributes[:'origin_repository']
+ end
+
+ if attributes.has_key?(:'origin_repository_url')
+ self.origin_repository_url = attributes[:'origin_repository_url']
+ end
+
if attributes.has_key?(:'package_type')
self.package_type = attributes[:'package_type']
end
if attributes.has_key?(:'release')
@@ -724,10 +742,12 @@
license == o.license &&
name == o.name &&
namespace == o.namespace &&
namespace_url == o.namespace_url &&
num_files == o.num_files &&
+ origin_repository == o.origin_repository &&
+ origin_repository_url == o.origin_repository_url &&
package_type == o.package_type &&
release == o.release &&
repository == o.repository &&
repository_url == o.repository_url &&
security_scan_completed_at == o.security_scan_completed_at &&
@@ -770,10 +790,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_downloadable, is_quarantined, 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
+ [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_downloadable, is_quarantined, 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