cloudsmith-api 2.0.23 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -4
- data/build.json +1 -1
- data/docs/FormatSupport.md +1 -0
- data/docs/GenericPackageUpload.md +90 -0
- data/docs/GenericPackageUploadRequest.md +13 -0
- data/docs/GenericUpstream.md +33 -0
- data/docs/GenericUpstreamRequest.md +21 -0
- data/docs/GenericUpstreamRequestPatch.md +21 -0
- data/docs/MavenUpstream.md +1 -0
- data/docs/MavenUpstreamRequest.md +1 -0
- data/docs/MavenUpstreamRequestPatch.md +1 -0
- data/docs/OrganizationTeam.md +1 -1
- data/docs/OrganizationTeamRequest.md +1 -1
- data/docs/OrganizationTeamRequestPatch.md +1 -1
- data/docs/Package.md +1 -0
- data/docs/PackageCopy.md +1 -0
- data/docs/PackageCopyRequest.md +1 -1
- data/docs/PackageMove.md +1 -0
- data/docs/PackageMoveRequest.md +1 -1
- data/docs/PackageQuarantine.md +1 -0
- data/docs/PackageResync.md +1 -0
- data/docs/PackageTag.md +1 -0
- data/docs/PackagesApi.md +131 -0
- data/docs/ReposApi.md +401 -0
- data/lib/cloudsmith-api/api/packages_api.rb +123 -0
- data/lib/cloudsmith-api/api/repos_api.rb +395 -0
- data/lib/cloudsmith-api/models/format_support.rb +16 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +992 -0
- data/lib/cloudsmith-api/models/generic_package_upload_request.rb +245 -0
- data/lib/cloudsmith-api/models/generic_upstream.rb +503 -0
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +375 -0
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +365 -0
- data/lib/cloudsmith-api/models/maven_upstream.rb +25 -1
- data/lib/cloudsmith-api/models/maven_upstream_request.rb +25 -1
- data/lib/cloudsmith-api/models/maven_upstream_request_patch.rb +25 -1
- data/lib/cloudsmith-api/models/organization_team.rb +1 -0
- data/lib/cloudsmith-api/models/organization_team_request.rb +1 -0
- data/lib/cloudsmith-api/models/organization_team_request_patch.rb +1 -0
- data/lib/cloudsmith-api/models/package.rb +11 -1
- data/lib/cloudsmith-api/models/package_copy.rb +11 -1
- data/lib/cloudsmith-api/models/package_copy_request.rb +1 -0
- data/lib/cloudsmith-api/models/package_move.rb +11 -1
- data/lib/cloudsmith-api/models/package_move_request.rb +1 -0
- data/lib/cloudsmith-api/models/package_quarantine.rb +11 -1
- data/lib/cloudsmith-api/models/package_resync.rb +11 -1
- data/lib/cloudsmith-api/models/package_tag.rb +11 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +5 -0
- data/spec/api/packages_api_spec.rb +28 -0
- data/spec/api/repos_api_spec.rb +87 -0
- data/spec/models/format_support_spec.rb +6 -0
- data/spec/models/generic_package_upload_request_spec.rb +71 -0
- data/spec/models/generic_package_upload_spec.rb +537 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +127 -0
- data/spec/models/generic_upstream_request_spec.rb +127 -0
- data/spec/models/generic_upstream_spec.rb +203 -0
- data/spec/models/maven_upstream_request_patch_spec.rb +10 -0
- data/spec/models/maven_upstream_request_spec.rb +10 -0
- data/spec/models/maven_upstream_spec.rb +10 -0
- data/spec/models/package_copy_spec.rb +6 -0
- data/spec/models/package_move_spec.rb +6 -0
- data/spec/models/package_quarantine_spec.rb +6 -0
- data/spec/models/package_resync_spec.rb +6 -0
- data/spec/models/package_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.0.1/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.3/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +25 -5
|
@@ -49,6 +49,9 @@ class PackageCopy
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :filename
|
|
51
51
|
|
|
52
|
+
# Full path to the file, including filename e.g. bin/utils/tool.tar.gz
|
|
53
|
+
attr_accessor :filepath
|
|
54
|
+
|
|
52
55
|
attr_accessor :files
|
|
53
56
|
|
|
54
57
|
attr_accessor :format
|
|
@@ -252,6 +255,7 @@ class PackageCopy
|
|
|
252
255
|
:'epoch' => :'epoch',
|
|
253
256
|
:'extension' => :'extension',
|
|
254
257
|
:'filename' => :'filename',
|
|
258
|
+
:'filepath' => :'filepath',
|
|
255
259
|
:'files' => :'files',
|
|
256
260
|
:'format' => :'format',
|
|
257
261
|
:'format_url' => :'format_url',
|
|
@@ -342,6 +346,7 @@ class PackageCopy
|
|
|
342
346
|
:'epoch' => :'Integer',
|
|
343
347
|
:'extension' => :'String',
|
|
344
348
|
:'filename' => :'String',
|
|
349
|
+
:'filepath' => :'String',
|
|
345
350
|
:'files' => :'Array<PackageFile>',
|
|
346
351
|
:'format' => :'String',
|
|
347
352
|
:'format_url' => :'String',
|
|
@@ -487,6 +492,10 @@ class PackageCopy
|
|
|
487
492
|
self.filename = attributes[:'filename']
|
|
488
493
|
end
|
|
489
494
|
|
|
495
|
+
if attributes.has_key?(:'filepath')
|
|
496
|
+
self.filepath = attributes[:'filepath']
|
|
497
|
+
end
|
|
498
|
+
|
|
490
499
|
if attributes.has_key?(:'files')
|
|
491
500
|
if (value = attributes[:'files']).is_a?(Array)
|
|
492
501
|
self.files = value
|
|
@@ -812,6 +821,7 @@ class PackageCopy
|
|
|
812
821
|
epoch == o.epoch &&
|
|
813
822
|
extension == o.extension &&
|
|
814
823
|
filename == o.filename &&
|
|
824
|
+
filepath == o.filepath &&
|
|
815
825
|
files == o.files &&
|
|
816
826
|
format == o.format &&
|
|
817
827
|
format_url == o.format_url &&
|
|
@@ -891,7 +901,7 @@ class PackageCopy
|
|
|
891
901
|
# Calculates hash code according to all attributes.
|
|
892
902
|
# @return [Fixnum] Hash code
|
|
893
903
|
def hash
|
|
894
|
-
[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, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
904
|
+
[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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
895
905
|
end
|
|
896
906
|
|
|
897
907
|
# Builds the object from hash
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
16
|
class PackageCopyRequest
|
|
17
|
+
# The name of the destination repository without the namespace.
|
|
17
18
|
attr_accessor :destination
|
|
18
19
|
|
|
19
20
|
# If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
|
|
@@ -49,6 +49,9 @@ class PackageMove
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :filename
|
|
51
51
|
|
|
52
|
+
# Full path to the file, including filename e.g. bin/utils/tool.tar.gz
|
|
53
|
+
attr_accessor :filepath
|
|
54
|
+
|
|
52
55
|
attr_accessor :files
|
|
53
56
|
|
|
54
57
|
attr_accessor :format
|
|
@@ -252,6 +255,7 @@ class PackageMove
|
|
|
252
255
|
:'epoch' => :'epoch',
|
|
253
256
|
:'extension' => :'extension',
|
|
254
257
|
:'filename' => :'filename',
|
|
258
|
+
:'filepath' => :'filepath',
|
|
255
259
|
:'files' => :'files',
|
|
256
260
|
:'format' => :'format',
|
|
257
261
|
:'format_url' => :'format_url',
|
|
@@ -342,6 +346,7 @@ class PackageMove
|
|
|
342
346
|
:'epoch' => :'Integer',
|
|
343
347
|
:'extension' => :'String',
|
|
344
348
|
:'filename' => :'String',
|
|
349
|
+
:'filepath' => :'String',
|
|
345
350
|
:'files' => :'Array<PackageFile>',
|
|
346
351
|
:'format' => :'String',
|
|
347
352
|
:'format_url' => :'String',
|
|
@@ -487,6 +492,10 @@ class PackageMove
|
|
|
487
492
|
self.filename = attributes[:'filename']
|
|
488
493
|
end
|
|
489
494
|
|
|
495
|
+
if attributes.has_key?(:'filepath')
|
|
496
|
+
self.filepath = attributes[:'filepath']
|
|
497
|
+
end
|
|
498
|
+
|
|
490
499
|
if attributes.has_key?(:'files')
|
|
491
500
|
if (value = attributes[:'files']).is_a?(Array)
|
|
492
501
|
self.files = value
|
|
@@ -812,6 +821,7 @@ class PackageMove
|
|
|
812
821
|
epoch == o.epoch &&
|
|
813
822
|
extension == o.extension &&
|
|
814
823
|
filename == o.filename &&
|
|
824
|
+
filepath == o.filepath &&
|
|
815
825
|
files == o.files &&
|
|
816
826
|
format == o.format &&
|
|
817
827
|
format_url == o.format_url &&
|
|
@@ -891,7 +901,7 @@ class PackageMove
|
|
|
891
901
|
# Calculates hash code according to all attributes.
|
|
892
902
|
# @return [Fixnum] Hash code
|
|
893
903
|
def hash
|
|
894
|
-
[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, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
904
|
+
[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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
895
905
|
end
|
|
896
906
|
|
|
897
907
|
# Builds the object from hash
|
|
@@ -49,6 +49,9 @@ class PackageQuarantine
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :filename
|
|
51
51
|
|
|
52
|
+
# Full path to the file, including filename e.g. bin/utils/tool.tar.gz
|
|
53
|
+
attr_accessor :filepath
|
|
54
|
+
|
|
52
55
|
attr_accessor :files
|
|
53
56
|
|
|
54
57
|
attr_accessor :format
|
|
@@ -248,6 +251,7 @@ class PackageQuarantine
|
|
|
248
251
|
:'epoch' => :'epoch',
|
|
249
252
|
:'extension' => :'extension',
|
|
250
253
|
:'filename' => :'filename',
|
|
254
|
+
:'filepath' => :'filepath',
|
|
251
255
|
:'files' => :'files',
|
|
252
256
|
:'format' => :'format',
|
|
253
257
|
:'format_url' => :'format_url',
|
|
@@ -337,6 +341,7 @@ class PackageQuarantine
|
|
|
337
341
|
:'epoch' => :'Integer',
|
|
338
342
|
:'extension' => :'String',
|
|
339
343
|
:'filename' => :'String',
|
|
344
|
+
:'filepath' => :'String',
|
|
340
345
|
:'files' => :'Array<PackageFile>',
|
|
341
346
|
:'format' => :'String',
|
|
342
347
|
:'format_url' => :'String',
|
|
@@ -481,6 +486,10 @@ class PackageQuarantine
|
|
|
481
486
|
self.filename = attributes[:'filename']
|
|
482
487
|
end
|
|
483
488
|
|
|
489
|
+
if attributes.has_key?(:'filepath')
|
|
490
|
+
self.filepath = attributes[:'filepath']
|
|
491
|
+
end
|
|
492
|
+
|
|
484
493
|
if attributes.has_key?(:'files')
|
|
485
494
|
if (value = attributes[:'files']).is_a?(Array)
|
|
486
495
|
self.files = value
|
|
@@ -802,6 +811,7 @@ class PackageQuarantine
|
|
|
802
811
|
epoch == o.epoch &&
|
|
803
812
|
extension == o.extension &&
|
|
804
813
|
filename == o.filename &&
|
|
814
|
+
filepath == o.filepath &&
|
|
805
815
|
files == o.files &&
|
|
806
816
|
format == o.format &&
|
|
807
817
|
format_url == o.format_url &&
|
|
@@ -880,7 +890,7 @@ class PackageQuarantine
|
|
|
880
890
|
# Calculates hash code according to all attributes.
|
|
881
891
|
# @return [Fixnum] Hash code
|
|
882
892
|
def hash
|
|
883
|
-
[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, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
893
|
+
[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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
884
894
|
end
|
|
885
895
|
|
|
886
896
|
# Builds the object from hash
|
|
@@ -49,6 +49,9 @@ class PackageResync
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :filename
|
|
51
51
|
|
|
52
|
+
# Full path to the file, including filename e.g. bin/utils/tool.tar.gz
|
|
53
|
+
attr_accessor :filepath
|
|
54
|
+
|
|
52
55
|
attr_accessor :files
|
|
53
56
|
|
|
54
57
|
attr_accessor :format
|
|
@@ -251,6 +254,7 @@ class PackageResync
|
|
|
251
254
|
:'epoch' => :'epoch',
|
|
252
255
|
:'extension' => :'extension',
|
|
253
256
|
:'filename' => :'filename',
|
|
257
|
+
:'filepath' => :'filepath',
|
|
254
258
|
:'files' => :'files',
|
|
255
259
|
:'format' => :'format',
|
|
256
260
|
:'format_url' => :'format_url',
|
|
@@ -341,6 +345,7 @@ class PackageResync
|
|
|
341
345
|
:'epoch' => :'Integer',
|
|
342
346
|
:'extension' => :'String',
|
|
343
347
|
:'filename' => :'String',
|
|
348
|
+
:'filepath' => :'String',
|
|
344
349
|
:'files' => :'Array<PackageFile>',
|
|
345
350
|
:'format' => :'String',
|
|
346
351
|
:'format_url' => :'String',
|
|
@@ -486,6 +491,10 @@ class PackageResync
|
|
|
486
491
|
self.filename = attributes[:'filename']
|
|
487
492
|
end
|
|
488
493
|
|
|
494
|
+
if attributes.has_key?(:'filepath')
|
|
495
|
+
self.filepath = attributes[:'filepath']
|
|
496
|
+
end
|
|
497
|
+
|
|
489
498
|
if attributes.has_key?(:'files')
|
|
490
499
|
if (value = attributes[:'files']).is_a?(Array)
|
|
491
500
|
self.files = value
|
|
@@ -811,6 +820,7 @@ class PackageResync
|
|
|
811
820
|
epoch == o.epoch &&
|
|
812
821
|
extension == o.extension &&
|
|
813
822
|
filename == o.filename &&
|
|
823
|
+
filepath == o.filepath &&
|
|
814
824
|
files == o.files &&
|
|
815
825
|
format == o.format &&
|
|
816
826
|
format_url == o.format_url &&
|
|
@@ -890,7 +900,7 @@ class PackageResync
|
|
|
890
900
|
# Calculates hash code according to all attributes.
|
|
891
901
|
# @return [Fixnum] Hash code
|
|
892
902
|
def hash
|
|
893
|
-
[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, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
903
|
+
[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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, 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, policy_violated, raw_license, 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, spdx_license, 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_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
894
904
|
end
|
|
895
905
|
|
|
896
906
|
# Builds the object from hash
|
|
@@ -49,6 +49,9 @@ class PackageTag
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :filename
|
|
51
51
|
|
|
52
|
+
# Full path to the file, including filename e.g. bin/utils/tool.tar.gz
|
|
53
|
+
attr_accessor :filepath
|
|
54
|
+
|
|
52
55
|
attr_accessor :files
|
|
53
56
|
|
|
54
57
|
attr_accessor :format
|
|
@@ -252,6 +255,7 @@ class PackageTag
|
|
|
252
255
|
:'epoch' => :'epoch',
|
|
253
256
|
:'extension' => :'extension',
|
|
254
257
|
:'filename' => :'filename',
|
|
258
|
+
:'filepath' => :'filepath',
|
|
255
259
|
:'files' => :'files',
|
|
256
260
|
:'format' => :'format',
|
|
257
261
|
:'format_url' => :'format_url',
|
|
@@ -342,6 +346,7 @@ class PackageTag
|
|
|
342
346
|
:'epoch' => :'Integer',
|
|
343
347
|
:'extension' => :'String',
|
|
344
348
|
:'filename' => :'String',
|
|
349
|
+
:'filepath' => :'String',
|
|
345
350
|
:'files' => :'Array<PackageFile>',
|
|
346
351
|
:'format' => :'String',
|
|
347
352
|
:'format_url' => :'String',
|
|
@@ -487,6 +492,10 @@ class PackageTag
|
|
|
487
492
|
self.filename = attributes[:'filename']
|
|
488
493
|
end
|
|
489
494
|
|
|
495
|
+
if attributes.has_key?(:'filepath')
|
|
496
|
+
self.filepath = attributes[:'filepath']
|
|
497
|
+
end
|
|
498
|
+
|
|
490
499
|
if attributes.has_key?(:'files')
|
|
491
500
|
if (value = attributes[:'files']).is_a?(Array)
|
|
492
501
|
self.files = value
|
|
@@ -814,6 +823,7 @@ class PackageTag
|
|
|
814
823
|
epoch == o.epoch &&
|
|
815
824
|
extension == o.extension &&
|
|
816
825
|
filename == o.filename &&
|
|
826
|
+
filepath == o.filepath &&
|
|
817
827
|
files == o.files &&
|
|
818
828
|
format == o.format &&
|
|
819
829
|
format_url == o.format_url &&
|
|
@@ -893,7 +903,7 @@ class PackageTag
|
|
|
893
903
|
# Calculates hash code according to all attributes.
|
|
894
904
|
# @return [Fixnum] Hash code
|
|
895
905
|
def hash
|
|
896
|
-
[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, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_immutable, 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, policy_violated, raw_license, 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, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
906
|
+
[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, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_immutable, 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, policy_violated, raw_license, 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, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
|
897
907
|
end
|
|
898
908
|
|
|
899
909
|
# Builds the object from hash
|
data/lib/cloudsmith-api.rb
CHANGED
|
@@ -78,6 +78,11 @@ require 'cloudsmith-api/models/eula'
|
|
|
78
78
|
require 'cloudsmith-api/models/format'
|
|
79
79
|
require 'cloudsmith-api/models/format_support'
|
|
80
80
|
require 'cloudsmith-api/models/format_support_upstream'
|
|
81
|
+
require 'cloudsmith-api/models/generic_package_upload'
|
|
82
|
+
require 'cloudsmith-api/models/generic_package_upload_request'
|
|
83
|
+
require 'cloudsmith-api/models/generic_upstream'
|
|
84
|
+
require 'cloudsmith-api/models/generic_upstream_request'
|
|
85
|
+
require 'cloudsmith-api/models/generic_upstream_request_patch'
|
|
81
86
|
require 'cloudsmith-api/models/geo_ip_location'
|
|
82
87
|
require 'cloudsmith-api/models/go_package_upload'
|
|
83
88
|
require 'cloudsmith-api/models/go_package_upload_request'
|
|
@@ -367,6 +367,20 @@ describe 'PackagesApi' do
|
|
|
367
367
|
end
|
|
368
368
|
end
|
|
369
369
|
|
|
370
|
+
# unit tests for packages_upload_generic
|
|
371
|
+
# Create a new Generic package
|
|
372
|
+
# Create a new Generic package
|
|
373
|
+
# @param owner
|
|
374
|
+
# @param repo
|
|
375
|
+
# @param [Hash] opts the optional parameters
|
|
376
|
+
# @option opts [GenericPackageUploadRequest] :data
|
|
377
|
+
# @return [GenericPackageUpload]
|
|
378
|
+
describe 'packages_upload_generic test' do
|
|
379
|
+
it 'should work' do
|
|
380
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
381
|
+
end
|
|
382
|
+
end
|
|
383
|
+
|
|
370
384
|
# unit tests for packages_upload_go
|
|
371
385
|
# Create a new Go package
|
|
372
386
|
# Create a new Go package
|
|
@@ -731,6 +745,20 @@ describe 'PackagesApi' do
|
|
|
731
745
|
end
|
|
732
746
|
end
|
|
733
747
|
|
|
748
|
+
# unit tests for packages_validate_upload_generic
|
|
749
|
+
# Validate parameters for create Generic package
|
|
750
|
+
# Validate parameters for create Generic package
|
|
751
|
+
# @param owner
|
|
752
|
+
# @param repo
|
|
753
|
+
# @param [Hash] opts the optional parameters
|
|
754
|
+
# @option opts [GenericPackageUploadRequest] :data
|
|
755
|
+
# @return [nil]
|
|
756
|
+
describe 'packages_validate_upload_generic test' do
|
|
757
|
+
it 'should work' do
|
|
758
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
759
|
+
end
|
|
760
|
+
end
|
|
761
|
+
|
|
734
762
|
# unit tests for packages_validate_upload_go
|
|
735
763
|
# Validate parameters for create Go package
|
|
736
764
|
# Validate parameters for create Go package
|
data/spec/api/repos_api_spec.rb
CHANGED
|
@@ -1008,6 +1008,93 @@ describe 'ReposApi' do
|
|
|
1008
1008
|
end
|
|
1009
1009
|
end
|
|
1010
1010
|
|
|
1011
|
+
# unit tests for repos_upstream_generic_create
|
|
1012
|
+
# Create a Generic upstream config for this repository.
|
|
1013
|
+
# Create a Generic upstream config for this repository.
|
|
1014
|
+
# @param owner
|
|
1015
|
+
# @param identifier
|
|
1016
|
+
# @param [Hash] opts the optional parameters
|
|
1017
|
+
# @option opts [GenericUpstreamRequest] :data
|
|
1018
|
+
# @return [GenericUpstream]
|
|
1019
|
+
describe 'repos_upstream_generic_create test' do
|
|
1020
|
+
it 'should work' do
|
|
1021
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1022
|
+
end
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# unit tests for repos_upstream_generic_delete
|
|
1026
|
+
# Delete a Generic upstream config for this repository.
|
|
1027
|
+
# Delete a Generic upstream config for this repository.
|
|
1028
|
+
# @param owner
|
|
1029
|
+
# @param identifier
|
|
1030
|
+
# @param slug_perm
|
|
1031
|
+
# @param [Hash] opts the optional parameters
|
|
1032
|
+
# @return [nil]
|
|
1033
|
+
describe 'repos_upstream_generic_delete test' do
|
|
1034
|
+
it 'should work' do
|
|
1035
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1036
|
+
end
|
|
1037
|
+
end
|
|
1038
|
+
|
|
1039
|
+
# unit tests for repos_upstream_generic_list
|
|
1040
|
+
# List Generic upstream configs for this repository.
|
|
1041
|
+
# List Generic upstream configs for this repository.
|
|
1042
|
+
# @param owner
|
|
1043
|
+
# @param identifier
|
|
1044
|
+
# @param [Hash] opts the optional parameters
|
|
1045
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1046
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1047
|
+
# @return [Array<GenericUpstream>]
|
|
1048
|
+
describe 'repos_upstream_generic_list test' do
|
|
1049
|
+
it 'should work' do
|
|
1050
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1051
|
+
end
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# unit tests for repos_upstream_generic_partial_update
|
|
1055
|
+
# Partially update a Generic upstream config for this repository.
|
|
1056
|
+
# Partially update a Generic upstream config for this repository.
|
|
1057
|
+
# @param owner
|
|
1058
|
+
# @param identifier
|
|
1059
|
+
# @param slug_perm
|
|
1060
|
+
# @param [Hash] opts the optional parameters
|
|
1061
|
+
# @option opts [GenericUpstreamRequestPatch] :data
|
|
1062
|
+
# @return [GenericUpstream]
|
|
1063
|
+
describe 'repos_upstream_generic_partial_update test' do
|
|
1064
|
+
it 'should work' do
|
|
1065
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1066
|
+
end
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# unit tests for repos_upstream_generic_read
|
|
1070
|
+
# Retrieve a Generic upstream config for this repository.
|
|
1071
|
+
# Retrieve a Generic upstream config for this repository.
|
|
1072
|
+
# @param owner
|
|
1073
|
+
# @param identifier
|
|
1074
|
+
# @param slug_perm
|
|
1075
|
+
# @param [Hash] opts the optional parameters
|
|
1076
|
+
# @return [GenericUpstream]
|
|
1077
|
+
describe 'repos_upstream_generic_read test' do
|
|
1078
|
+
it 'should work' do
|
|
1079
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1080
|
+
end
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
# unit tests for repos_upstream_generic_update
|
|
1084
|
+
# Update a Generic upstream config for this repository.
|
|
1085
|
+
# Update a Generic upstream config for this repository.
|
|
1086
|
+
# @param owner
|
|
1087
|
+
# @param identifier
|
|
1088
|
+
# @param slug_perm
|
|
1089
|
+
# @param [Hash] opts the optional parameters
|
|
1090
|
+
# @option opts [GenericUpstreamRequest] :data
|
|
1091
|
+
# @return [GenericUpstream]
|
|
1092
|
+
describe 'repos_upstream_generic_update test' do
|
|
1093
|
+
it 'should work' do
|
|
1094
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1095
|
+
end
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1011
1098
|
# unit tests for repos_upstream_go_create
|
|
1012
1099
|
# Create a Go upstream config for this repository.
|
|
1013
1100
|
# Create a Go upstream config for this repository.
|
|
@@ -50,6 +50,12 @@ describe 'FormatSupport' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
describe 'test attribute "filepaths"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
53
59
|
describe 'test attribute "metadata"' do
|
|
54
60
|
it 'should work' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::GenericPackageUploadRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'GenericPackageUploadRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::GenericPackageUploadRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of GenericPackageUploadRequest' do
|
|
31
|
+
it 'should create an instance of GenericPackageUploadRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::GenericPackageUploadRequest)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "filepath"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "name"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "package_file"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "republish"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "tags"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "version"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|