cloudsmith-api 2.0.26 → 2.0.27
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 +24 -5
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +2 -0
- data/docs/CargoPackageUpload.md +2 -0
- data/docs/CocoapodsPackageUpload.md +2 -0
- data/docs/ComposerPackageUpload.md +2 -0
- data/docs/ConanPackageUpload.md +2 -0
- data/docs/CondaPackageUpload.md +2 -0
- data/docs/ConnectedRepository.md +12 -0
- data/docs/ConnectedRepositoryRequest.md +10 -0
- data/docs/ConnectedRepositoryRequestPatch.md +10 -0
- data/docs/CranPackageUpload.md +2 -0
- data/docs/DartPackageUpload.md +2 -0
- data/docs/DebPackageUpload.md +2 -0
- data/docs/DockerPackageUpload.md +2 -0
- data/docs/EntitlementsApi.md +2 -0
- data/docs/GenericPackageUpload.md +2 -0
- data/docs/GoPackageUpload.md +2 -0
- data/docs/HelmPackageUpload.md +2 -0
- data/docs/HexPackageUpload.md +2 -0
- data/docs/HuggingfacePackageUpload.md +2 -0
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +8 -0
- data/docs/LuarocksPackageUpload.md +2 -0
- data/docs/MavenPackageUpload.md +2 -0
- data/docs/McpPackageUpload.md +2 -0
- data/docs/MemberTeams.md +10 -0
- data/docs/NpmPackageUpload.md +2 -0
- data/docs/NugetPackageUpload.md +2 -0
- data/docs/OrganizationCustomDomainNestedRepo.md +9 -0
- data/docs/OrganizationCustomDomains.md +25 -0
- data/docs/OrganizationMembership.md +1 -0
- data/docs/OrgsApi.md +65 -0
- data/docs/P2PackageUpload.md +2 -0
- data/docs/Package.md +2 -0
- data/docs/PackageCopy.md +2 -0
- data/docs/PackageMove.md +2 -0
- data/docs/PackageQuarantine.md +2 -0
- data/docs/PackageResync.md +2 -0
- data/docs/PackageStatus.md +1 -0
- data/docs/PackageTag.md +2 -0
- data/docs/PythonPackageUpload.md +2 -0
- data/docs/RawPackageUpload.md +2 -0
- data/docs/RecycleBinApi.md +24 -24
- data/docs/ReposApi.md +592 -1
- data/docs/Repository.md +1 -0
- data/docs/RepositoryCreate.md +1 -0
- data/docs/RepositoryCreateRequest.md +1 -0
- data/docs/RepositoryEd25519Key.md +13 -0
- data/docs/RepositoryEd25519KeyCreate.md +9 -0
- data/docs/RepositoryRequestPatch.md +1 -0
- data/docs/RpmPackageUpload.md +2 -0
- data/docs/RubyPackageUpload.md +2 -0
- data/docs/ServiceTeams.md +1 -0
- data/docs/SwiftPackageUpload.md +2 -0
- data/docs/TerraformPackageUpload.md +2 -0
- data/docs/UserApi.md +2 -2
- data/docs/VagrantPackageUpload.md +2 -0
- data/docs/VsxPackageUpload.md +2 -0
- data/lib/cloudsmith-api/api/entitlements_api.rb +3 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +60 -0
- data/lib/cloudsmith-api/api/recycle_bin_api.rb +41 -41
- data/lib/cloudsmith-api/api/repos_api.rb +579 -2
- data/lib/cloudsmith-api/api/user_api.rb +3 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/composer_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conan_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conda_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/connected_repository.rb +230 -0
- data/lib/cloudsmith-api/models/connected_repository_request.rb +211 -0
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +206 -0
- data/lib/cloudsmith-api/models/cran_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/dart_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/deb_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/docker_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/go_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/helm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/hex_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/inline_response_200_1.rb +1 -1
- data/lib/cloudsmith-api/models/inline_response_200_2.rb +191 -0
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/maven_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/mcp_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/member_teams.rb +238 -0
- data/lib/cloudsmith-api/models/npm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb +195 -0
- data/lib/cloudsmith-api/models/organization_custom_domains.rb +355 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +12 -1
- data/lib/cloudsmith-api/models/p2_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/package.rb +20 -1
- data/lib/cloudsmith-api/models/package_copy.rb +20 -1
- data/lib/cloudsmith-api/models/package_move.rb +20 -1
- data/lib/cloudsmith-api/models/package_quarantine.rb +20 -1
- data/lib/cloudsmith-api/models/package_resync.rb +20 -1
- data/lib/cloudsmith-api/models/package_status.rb +10 -1
- data/lib/cloudsmith-api/models/package_tag.rb +20 -1
- data/lib/cloudsmith-api/models/python_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/raw_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/repository.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +233 -0
- data/lib/cloudsmith-api/models/repository_ed25519_key_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/service_teams.rb +11 -1
- data/lib/cloudsmith-api/models/swift_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +20 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +9 -0
- data/spec/api/entitlements_api_spec.rb +1 -0
- data/spec/api/orgs_api_spec.rb +14 -0
- data/spec/api/recycle_bin_api_spec.rb +12 -12
- data/spec/api/repos_api_spec.rb +128 -1
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/models/alpine_package_upload_spec.rb +12 -0
- data/spec/models/cargo_package_upload_spec.rb +12 -0
- data/spec/models/cocoapods_package_upload_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +12 -0
- data/spec/models/conan_package_upload_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +12 -0
- data/spec/models/connected_repository_request_patch_spec.rb +53 -0
- data/spec/models/connected_repository_request_spec.rb +53 -0
- data/spec/models/connected_repository_spec.rb +65 -0
- data/spec/models/cran_package_upload_spec.rb +12 -0
- data/spec/models/dart_package_upload_spec.rb +12 -0
- data/spec/models/deb_package_upload_spec.rb +12 -0
- data/spec/models/docker_package_upload_spec.rb +12 -0
- data/spec/models/generic_package_upload_spec.rb +12 -0
- data/spec/models/go_package_upload_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +12 -0
- data/spec/models/hex_package_upload_spec.rb +12 -0
- data/spec/models/huggingface_package_upload_spec.rb +12 -0
- data/spec/models/inline_response_200_2_spec.rb +41 -0
- data/spec/models/luarocks_package_upload_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +12 -0
- data/spec/models/mcp_package_upload_spec.rb +12 -0
- data/spec/models/member_teams_spec.rb +57 -0
- data/spec/models/npm_package_upload_spec.rb +12 -0
- data/spec/models/nuget_package_upload_spec.rb +12 -0
- data/spec/models/organization_custom_domain_nested_repo_spec.rb +47 -0
- data/spec/models/organization_custom_domains_spec.rb +143 -0
- data/spec/models/organization_membership_spec.rb +6 -0
- data/spec/models/p2_package_upload_spec.rb +12 -0
- data/spec/models/package_copy_spec.rb +12 -0
- data/spec/models/package_move_spec.rb +12 -0
- data/spec/models/package_quarantine_spec.rb +12 -0
- data/spec/models/package_resync_spec.rb +12 -0
- data/spec/models/package_spec.rb +12 -0
- data/spec/models/package_status_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +12 -0
- data/spec/models/python_package_upload_spec.rb +12 -0
- data/spec/models/raw_package_upload_spec.rb +12 -0
- data/spec/models/repository_create_request_spec.rb +6 -0
- data/spec/models/repository_create_spec.rb +6 -0
- data/spec/models/repository_ed25519_key_create_spec.rb +47 -0
- data/spec/models/repository_ed25519_key_spec.rb +71 -0
- data/spec/models/repository_request_patch_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- data/spec/models/rpm_package_upload_spec.rb +12 -0
- data/spec/models/ruby_package_upload_spec.rb +12 -0
- data/spec/models/service_teams_spec.rb +6 -0
- data/spec/models/swift_package_upload_spec.rb +12 -0
- data/spec/models/terraform_package_upload_spec.rb +12 -0
- data/spec/models/vagrant_package_upload_spec.rb +12 -0
- data/spec/models/vsx_package_upload_spec.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/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.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/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 +41 -5
|
@@ -82,6 +82,8 @@ class MavenPackageUpload
|
|
|
82
82
|
|
|
83
83
|
attr_accessor :is_downloadable
|
|
84
84
|
|
|
85
|
+
attr_accessor :is_hidden
|
|
86
|
+
|
|
85
87
|
attr_accessor :is_moveable
|
|
86
88
|
|
|
87
89
|
attr_accessor :is_quarantinable
|
|
@@ -118,6 +120,9 @@ class MavenPackageUpload
|
|
|
118
120
|
|
|
119
121
|
attr_accessor :origin_repository_url
|
|
120
122
|
|
|
123
|
+
# Whether the package's SPDX license is OSI-approved.
|
|
124
|
+
attr_accessor :osi_approved
|
|
125
|
+
|
|
121
126
|
# The type of package contents.
|
|
122
127
|
attr_accessor :package_type
|
|
123
128
|
|
|
@@ -278,6 +283,7 @@ class MavenPackageUpload
|
|
|
278
283
|
:'is_copyable' => :'is_copyable',
|
|
279
284
|
:'is_deleteable' => :'is_deleteable',
|
|
280
285
|
:'is_downloadable' => :'is_downloadable',
|
|
286
|
+
:'is_hidden' => :'is_hidden',
|
|
281
287
|
:'is_moveable' => :'is_moveable',
|
|
282
288
|
:'is_quarantinable' => :'is_quarantinable',
|
|
283
289
|
:'is_quarantined' => :'is_quarantined',
|
|
@@ -295,6 +301,7 @@ class MavenPackageUpload
|
|
|
295
301
|
:'num_files' => :'num_files',
|
|
296
302
|
:'origin_repository' => :'origin_repository',
|
|
297
303
|
:'origin_repository_url' => :'origin_repository_url',
|
|
304
|
+
:'osi_approved' => :'osi_approved',
|
|
298
305
|
:'package_type' => :'package_type',
|
|
299
306
|
:'packaging' => :'packaging',
|
|
300
307
|
:'policy_violated' => :'policy_violated',
|
|
@@ -373,6 +380,7 @@ class MavenPackageUpload
|
|
|
373
380
|
:'is_copyable' => :'BOOLEAN',
|
|
374
381
|
:'is_deleteable' => :'BOOLEAN',
|
|
375
382
|
:'is_downloadable' => :'BOOLEAN',
|
|
383
|
+
:'is_hidden' => :'BOOLEAN',
|
|
376
384
|
:'is_moveable' => :'BOOLEAN',
|
|
377
385
|
:'is_quarantinable' => :'BOOLEAN',
|
|
378
386
|
:'is_quarantined' => :'BOOLEAN',
|
|
@@ -390,6 +398,7 @@ class MavenPackageUpload
|
|
|
390
398
|
:'num_files' => :'Integer',
|
|
391
399
|
:'origin_repository' => :'String',
|
|
392
400
|
:'origin_repository_url' => :'String',
|
|
401
|
+
:'osi_approved' => :'BOOLEAN',
|
|
393
402
|
:'package_type' => :'Integer',
|
|
394
403
|
:'packaging' => :'String',
|
|
395
404
|
:'policy_violated' => :'BOOLEAN',
|
|
@@ -569,6 +578,10 @@ class MavenPackageUpload
|
|
|
569
578
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
570
579
|
end
|
|
571
580
|
|
|
581
|
+
if attributes.has_key?(:'is_hidden')
|
|
582
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
583
|
+
end
|
|
584
|
+
|
|
572
585
|
if attributes.has_key?(:'is_moveable')
|
|
573
586
|
self.is_moveable = attributes[:'is_moveable']
|
|
574
587
|
end
|
|
@@ -637,6 +650,10 @@ class MavenPackageUpload
|
|
|
637
650
|
self.origin_repository_url = attributes[:'origin_repository_url']
|
|
638
651
|
end
|
|
639
652
|
|
|
653
|
+
if attributes.has_key?(:'osi_approved')
|
|
654
|
+
self.osi_approved = attributes[:'osi_approved']
|
|
655
|
+
end
|
|
656
|
+
|
|
640
657
|
if attributes.has_key?(:'package_type')
|
|
641
658
|
self.package_type = attributes[:'package_type']
|
|
642
659
|
end
|
|
@@ -868,6 +885,7 @@ class MavenPackageUpload
|
|
|
868
885
|
is_copyable == o.is_copyable &&
|
|
869
886
|
is_deleteable == o.is_deleteable &&
|
|
870
887
|
is_downloadable == o.is_downloadable &&
|
|
888
|
+
is_hidden == o.is_hidden &&
|
|
871
889
|
is_moveable == o.is_moveable &&
|
|
872
890
|
is_quarantinable == o.is_quarantinable &&
|
|
873
891
|
is_quarantined == o.is_quarantined &&
|
|
@@ -885,6 +903,7 @@ class MavenPackageUpload
|
|
|
885
903
|
num_files == o.num_files &&
|
|
886
904
|
origin_repository == o.origin_repository &&
|
|
887
905
|
origin_repository_url == o.origin_repository_url &&
|
|
906
|
+
osi_approved == o.osi_approved &&
|
|
888
907
|
package_type == o.package_type &&
|
|
889
908
|
packaging == o.packaging &&
|
|
890
909
|
policy_violated == o.policy_violated &&
|
|
@@ -938,7 +957,7 @@ class MavenPackageUpload
|
|
|
938
957
|
# Calculates hash code according to all attributes.
|
|
939
958
|
# @return [Fixnum] Hash code
|
|
940
959
|
def hash
|
|
941
|
-
[architectures, artifact_id, 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, group_id, 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, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_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
|
|
960
|
+
[architectures, artifact_id, 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, group_id, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, 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, osi_approved, package_type, packaging, policy_violated, raw_license, release, repository, repository_url, sbt_version, scala_version, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_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
|
|
942
961
|
end
|
|
943
962
|
|
|
944
963
|
# Builds the object from hash
|
|
@@ -76,6 +76,8 @@ class McpPackageUpload
|
|
|
76
76
|
|
|
77
77
|
attr_accessor :is_downloadable
|
|
78
78
|
|
|
79
|
+
attr_accessor :is_hidden
|
|
80
|
+
|
|
79
81
|
attr_accessor :is_moveable
|
|
80
82
|
|
|
81
83
|
attr_accessor :is_quarantinable
|
|
@@ -112,6 +114,9 @@ class McpPackageUpload
|
|
|
112
114
|
|
|
113
115
|
attr_accessor :origin_repository_url
|
|
114
116
|
|
|
117
|
+
# Whether the package's SPDX license is OSI-approved.
|
|
118
|
+
attr_accessor :osi_approved
|
|
119
|
+
|
|
115
120
|
# The type of package contents.
|
|
116
121
|
attr_accessor :package_type
|
|
117
122
|
|
|
@@ -263,6 +268,7 @@ class McpPackageUpload
|
|
|
263
268
|
:'is_copyable' => :'is_copyable',
|
|
264
269
|
:'is_deleteable' => :'is_deleteable',
|
|
265
270
|
:'is_downloadable' => :'is_downloadable',
|
|
271
|
+
:'is_hidden' => :'is_hidden',
|
|
266
272
|
:'is_moveable' => :'is_moveable',
|
|
267
273
|
:'is_quarantinable' => :'is_quarantinable',
|
|
268
274
|
:'is_quarantined' => :'is_quarantined',
|
|
@@ -280,6 +286,7 @@ class McpPackageUpload
|
|
|
280
286
|
:'num_files' => :'num_files',
|
|
281
287
|
:'origin_repository' => :'origin_repository',
|
|
282
288
|
:'origin_repository_url' => :'origin_repository_url',
|
|
289
|
+
:'osi_approved' => :'osi_approved',
|
|
283
290
|
:'package_type' => :'package_type',
|
|
284
291
|
:'policy_violated' => :'policy_violated',
|
|
285
292
|
:'raw_license' => :'raw_license',
|
|
@@ -353,6 +360,7 @@ class McpPackageUpload
|
|
|
353
360
|
:'is_copyable' => :'BOOLEAN',
|
|
354
361
|
:'is_deleteable' => :'BOOLEAN',
|
|
355
362
|
:'is_downloadable' => :'BOOLEAN',
|
|
363
|
+
:'is_hidden' => :'BOOLEAN',
|
|
356
364
|
:'is_moveable' => :'BOOLEAN',
|
|
357
365
|
:'is_quarantinable' => :'BOOLEAN',
|
|
358
366
|
:'is_quarantined' => :'BOOLEAN',
|
|
@@ -370,6 +378,7 @@ class McpPackageUpload
|
|
|
370
378
|
:'num_files' => :'Integer',
|
|
371
379
|
:'origin_repository' => :'String',
|
|
372
380
|
:'origin_repository_url' => :'String',
|
|
381
|
+
:'osi_approved' => :'BOOLEAN',
|
|
373
382
|
:'package_type' => :'Integer',
|
|
374
383
|
:'policy_violated' => :'BOOLEAN',
|
|
375
384
|
:'raw_license' => :'String',
|
|
@@ -538,6 +547,10 @@ class McpPackageUpload
|
|
|
538
547
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
539
548
|
end
|
|
540
549
|
|
|
550
|
+
if attributes.has_key?(:'is_hidden')
|
|
551
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
552
|
+
end
|
|
553
|
+
|
|
541
554
|
if attributes.has_key?(:'is_moveable')
|
|
542
555
|
self.is_moveable = attributes[:'is_moveable']
|
|
543
556
|
end
|
|
@@ -606,6 +619,10 @@ class McpPackageUpload
|
|
|
606
619
|
self.origin_repository_url = attributes[:'origin_repository_url']
|
|
607
620
|
end
|
|
608
621
|
|
|
622
|
+
if attributes.has_key?(:'osi_approved')
|
|
623
|
+
self.osi_approved = attributes[:'osi_approved']
|
|
624
|
+
end
|
|
625
|
+
|
|
609
626
|
if attributes.has_key?(:'package_type')
|
|
610
627
|
self.package_type = attributes[:'package_type']
|
|
611
628
|
end
|
|
@@ -823,6 +840,7 @@ class McpPackageUpload
|
|
|
823
840
|
is_copyable == o.is_copyable &&
|
|
824
841
|
is_deleteable == o.is_deleteable &&
|
|
825
842
|
is_downloadable == o.is_downloadable &&
|
|
843
|
+
is_hidden == o.is_hidden &&
|
|
826
844
|
is_moveable == o.is_moveable &&
|
|
827
845
|
is_quarantinable == o.is_quarantinable &&
|
|
828
846
|
is_quarantined == o.is_quarantined &&
|
|
@@ -840,6 +858,7 @@ class McpPackageUpload
|
|
|
840
858
|
num_files == o.num_files &&
|
|
841
859
|
origin_repository == o.origin_repository &&
|
|
842
860
|
origin_repository_url == o.origin_repository_url &&
|
|
861
|
+
osi_approved == o.osi_approved &&
|
|
843
862
|
package_type == o.package_type &&
|
|
844
863
|
policy_violated == o.policy_violated &&
|
|
845
864
|
raw_license == o.raw_license &&
|
|
@@ -890,7 +909,7 @@ class McpPackageUpload
|
|
|
890
909
|
# Calculates hash code according to all attributes.
|
|
891
910
|
# @return [Fixnum] Hash code
|
|
892
911
|
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, self_webapp_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
|
|
912
|
+
[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_hidden, 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, osi_approved, 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, self_webapp_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
|
|
894
913
|
end
|
|
895
914
|
|
|
896
915
|
# Builds the object from hash
|
|
@@ -0,0 +1,238 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module CloudsmithApi
|
|
16
|
+
class MemberTeams
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
attr_accessor :role
|
|
20
|
+
|
|
21
|
+
attr_accessor :slug
|
|
22
|
+
|
|
23
|
+
class EnumAttributeValidator
|
|
24
|
+
attr_reader :datatype
|
|
25
|
+
attr_reader :allowable_values
|
|
26
|
+
|
|
27
|
+
def initialize(datatype, allowable_values)
|
|
28
|
+
@allowable_values = allowable_values.map do |value|
|
|
29
|
+
case datatype.to_s
|
|
30
|
+
when /Integer/i
|
|
31
|
+
value.to_i
|
|
32
|
+
when /Float/i
|
|
33
|
+
value.to_f
|
|
34
|
+
else
|
|
35
|
+
value
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def valid?(value)
|
|
41
|
+
!value || allowable_values.include?(value)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'name' => :'name',
|
|
49
|
+
:'role' => :'role',
|
|
50
|
+
:'slug' => :'slug'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.swagger_types
|
|
56
|
+
{
|
|
57
|
+
:'name' => :'String',
|
|
58
|
+
:'role' => :'String',
|
|
59
|
+
:'slug' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
65
|
+
def initialize(attributes = {})
|
|
66
|
+
return unless attributes.is_a?(Hash)
|
|
67
|
+
|
|
68
|
+
# convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'name')
|
|
72
|
+
self.name = attributes[:'name']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'role')
|
|
76
|
+
self.role = attributes[:'role']
|
|
77
|
+
else
|
|
78
|
+
self.role = 'Manager'
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'slug')
|
|
82
|
+
self.slug = attributes[:'slug']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
role_validator = EnumAttributeValidator.new('String', ['Manager', 'Member'])
|
|
97
|
+
return false unless role_validator.valid?(@role)
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
102
|
+
# @param [Object] role Object to be assigned
|
|
103
|
+
def role=(role)
|
|
104
|
+
validator = EnumAttributeValidator.new('String', ['Manager', 'Member'])
|
|
105
|
+
unless validator.valid?(role)
|
|
106
|
+
fail ArgumentError, 'invalid value for "role", must be one of #{validator.allowable_values}.'
|
|
107
|
+
end
|
|
108
|
+
@role = role
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def ==(o)
|
|
114
|
+
return true if self.equal?(o)
|
|
115
|
+
self.class == o.class &&
|
|
116
|
+
name == o.name &&
|
|
117
|
+
role == o.role &&
|
|
118
|
+
slug == o.slug
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @see the `==` method
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def eql?(o)
|
|
124
|
+
self == o
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Calculates hash code according to all attributes.
|
|
128
|
+
# @return [Fixnum] Hash code
|
|
129
|
+
def hash
|
|
130
|
+
[name, role, slug].hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def build_from_hash(attributes)
|
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
|
140
|
+
# check to ensure the input is an array given that the attribute
|
|
141
|
+
# is documented as an array but the input is not
|
|
142
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
143
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
144
|
+
end
|
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
146
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
147
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
self
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Deserializes the data based on type
|
|
154
|
+
# @param string type Data type
|
|
155
|
+
# @param string value Value to be deserialized
|
|
156
|
+
# @return [Object] Deserialized data
|
|
157
|
+
def _deserialize(type, value)
|
|
158
|
+
case type.to_sym
|
|
159
|
+
when :DateTime
|
|
160
|
+
DateTime.parse(value)
|
|
161
|
+
when :Date
|
|
162
|
+
Date.parse(value)
|
|
163
|
+
when :String
|
|
164
|
+
value.to_s
|
|
165
|
+
when :Integer
|
|
166
|
+
value.to_i
|
|
167
|
+
when :Float
|
|
168
|
+
value.to_f
|
|
169
|
+
when :BOOLEAN
|
|
170
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
171
|
+
true
|
|
172
|
+
else
|
|
173
|
+
false
|
|
174
|
+
end
|
|
175
|
+
when :Object
|
|
176
|
+
# generic object (usually a Hash), return directly
|
|
177
|
+
value
|
|
178
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
179
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
180
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
181
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
182
|
+
k_type = Regexp.last_match[:k_type]
|
|
183
|
+
v_type = Regexp.last_match[:v_type]
|
|
184
|
+
{}.tap do |hash|
|
|
185
|
+
value.each do |k, v|
|
|
186
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
else # model
|
|
190
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
191
|
+
temp_model.build_from_hash(value)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Returns the string representation of the object
|
|
196
|
+
# @return [String] String presentation of the object
|
|
197
|
+
def to_s
|
|
198
|
+
to_hash.to_s
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_body
|
|
204
|
+
to_hash
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Returns the object in the form of hash
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_hash
|
|
210
|
+
hash = {}
|
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
212
|
+
value = self.send(attr)
|
|
213
|
+
next if value.nil?
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Outputs non-array value in the form of hash
|
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
+
# @param [Object] value Any valid value
|
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
|
223
|
+
def _to_hash(value)
|
|
224
|
+
if value.is_a?(Array)
|
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
|
226
|
+
elsif value.is_a?(Hash)
|
|
227
|
+
{}.tap do |hash|
|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
+
end
|
|
230
|
+
elsif value.respond_to? :to_hash
|
|
231
|
+
value.to_hash
|
|
232
|
+
else
|
|
233
|
+
value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
238
|
+
end
|
|
@@ -76,6 +76,8 @@ class NpmPackageUpload
|
|
|
76
76
|
|
|
77
77
|
attr_accessor :is_downloadable
|
|
78
78
|
|
|
79
|
+
attr_accessor :is_hidden
|
|
80
|
+
|
|
79
81
|
attr_accessor :is_moveable
|
|
80
82
|
|
|
81
83
|
attr_accessor :is_quarantinable
|
|
@@ -112,6 +114,9 @@ class NpmPackageUpload
|
|
|
112
114
|
|
|
113
115
|
attr_accessor :origin_repository_url
|
|
114
116
|
|
|
117
|
+
# Whether the package's SPDX license is OSI-approved.
|
|
118
|
+
attr_accessor :osi_approved
|
|
119
|
+
|
|
115
120
|
# The type of package contents.
|
|
116
121
|
attr_accessor :package_type
|
|
117
122
|
|
|
@@ -263,6 +268,7 @@ class NpmPackageUpload
|
|
|
263
268
|
:'is_copyable' => :'is_copyable',
|
|
264
269
|
:'is_deleteable' => :'is_deleteable',
|
|
265
270
|
:'is_downloadable' => :'is_downloadable',
|
|
271
|
+
:'is_hidden' => :'is_hidden',
|
|
266
272
|
:'is_moveable' => :'is_moveable',
|
|
267
273
|
:'is_quarantinable' => :'is_quarantinable',
|
|
268
274
|
:'is_quarantined' => :'is_quarantined',
|
|
@@ -280,6 +286,7 @@ class NpmPackageUpload
|
|
|
280
286
|
:'num_files' => :'num_files',
|
|
281
287
|
:'origin_repository' => :'origin_repository',
|
|
282
288
|
:'origin_repository_url' => :'origin_repository_url',
|
|
289
|
+
:'osi_approved' => :'osi_approved',
|
|
283
290
|
:'package_type' => :'package_type',
|
|
284
291
|
:'policy_violated' => :'policy_violated',
|
|
285
292
|
:'raw_license' => :'raw_license',
|
|
@@ -353,6 +360,7 @@ class NpmPackageUpload
|
|
|
353
360
|
:'is_copyable' => :'BOOLEAN',
|
|
354
361
|
:'is_deleteable' => :'BOOLEAN',
|
|
355
362
|
:'is_downloadable' => :'BOOLEAN',
|
|
363
|
+
:'is_hidden' => :'BOOLEAN',
|
|
356
364
|
:'is_moveable' => :'BOOLEAN',
|
|
357
365
|
:'is_quarantinable' => :'BOOLEAN',
|
|
358
366
|
:'is_quarantined' => :'BOOLEAN',
|
|
@@ -370,6 +378,7 @@ class NpmPackageUpload
|
|
|
370
378
|
:'num_files' => :'Integer',
|
|
371
379
|
:'origin_repository' => :'String',
|
|
372
380
|
:'origin_repository_url' => :'String',
|
|
381
|
+
:'osi_approved' => :'BOOLEAN',
|
|
373
382
|
:'package_type' => :'Integer',
|
|
374
383
|
:'policy_violated' => :'BOOLEAN',
|
|
375
384
|
:'raw_license' => :'String',
|
|
@@ -538,6 +547,10 @@ class NpmPackageUpload
|
|
|
538
547
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
539
548
|
end
|
|
540
549
|
|
|
550
|
+
if attributes.has_key?(:'is_hidden')
|
|
551
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
552
|
+
end
|
|
553
|
+
|
|
541
554
|
if attributes.has_key?(:'is_moveable')
|
|
542
555
|
self.is_moveable = attributes[:'is_moveable']
|
|
543
556
|
end
|
|
@@ -606,6 +619,10 @@ class NpmPackageUpload
|
|
|
606
619
|
self.origin_repository_url = attributes[:'origin_repository_url']
|
|
607
620
|
end
|
|
608
621
|
|
|
622
|
+
if attributes.has_key?(:'osi_approved')
|
|
623
|
+
self.osi_approved = attributes[:'osi_approved']
|
|
624
|
+
end
|
|
625
|
+
|
|
609
626
|
if attributes.has_key?(:'package_type')
|
|
610
627
|
self.package_type = attributes[:'package_type']
|
|
611
628
|
end
|
|
@@ -823,6 +840,7 @@ class NpmPackageUpload
|
|
|
823
840
|
is_copyable == o.is_copyable &&
|
|
824
841
|
is_deleteable == o.is_deleteable &&
|
|
825
842
|
is_downloadable == o.is_downloadable &&
|
|
843
|
+
is_hidden == o.is_hidden &&
|
|
826
844
|
is_moveable == o.is_moveable &&
|
|
827
845
|
is_quarantinable == o.is_quarantinable &&
|
|
828
846
|
is_quarantined == o.is_quarantined &&
|
|
@@ -840,6 +858,7 @@ class NpmPackageUpload
|
|
|
840
858
|
num_files == o.num_files &&
|
|
841
859
|
origin_repository == o.origin_repository &&
|
|
842
860
|
origin_repository_url == o.origin_repository_url &&
|
|
861
|
+
osi_approved == o.osi_approved &&
|
|
843
862
|
package_type == o.package_type &&
|
|
844
863
|
policy_violated == o.policy_violated &&
|
|
845
864
|
raw_license == o.raw_license &&
|
|
@@ -890,7 +909,7 @@ class NpmPackageUpload
|
|
|
890
909
|
# Calculates hash code according to all attributes.
|
|
891
910
|
# @return [Fixnum] Hash code
|
|
892
911
|
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, self_webapp_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
|
|
912
|
+
[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_hidden, 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, osi_approved, 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, self_webapp_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
|
|
894
913
|
end
|
|
895
914
|
|
|
896
915
|
# Builds the object from hash
|
|
@@ -76,6 +76,8 @@ class NugetPackageUpload
|
|
|
76
76
|
|
|
77
77
|
attr_accessor :is_downloadable
|
|
78
78
|
|
|
79
|
+
attr_accessor :is_hidden
|
|
80
|
+
|
|
79
81
|
attr_accessor :is_moveable
|
|
80
82
|
|
|
81
83
|
attr_accessor :is_quarantinable
|
|
@@ -112,6 +114,9 @@ class NugetPackageUpload
|
|
|
112
114
|
|
|
113
115
|
attr_accessor :origin_repository_url
|
|
114
116
|
|
|
117
|
+
# Whether the package's SPDX license is OSI-approved.
|
|
118
|
+
attr_accessor :osi_approved
|
|
119
|
+
|
|
115
120
|
# The type of package contents.
|
|
116
121
|
attr_accessor :package_type
|
|
117
122
|
|
|
@@ -263,6 +268,7 @@ class NugetPackageUpload
|
|
|
263
268
|
:'is_copyable' => :'is_copyable',
|
|
264
269
|
:'is_deleteable' => :'is_deleteable',
|
|
265
270
|
:'is_downloadable' => :'is_downloadable',
|
|
271
|
+
:'is_hidden' => :'is_hidden',
|
|
266
272
|
:'is_moveable' => :'is_moveable',
|
|
267
273
|
:'is_quarantinable' => :'is_quarantinable',
|
|
268
274
|
:'is_quarantined' => :'is_quarantined',
|
|
@@ -280,6 +286,7 @@ class NugetPackageUpload
|
|
|
280
286
|
:'num_files' => :'num_files',
|
|
281
287
|
:'origin_repository' => :'origin_repository',
|
|
282
288
|
:'origin_repository_url' => :'origin_repository_url',
|
|
289
|
+
:'osi_approved' => :'osi_approved',
|
|
283
290
|
:'package_type' => :'package_type',
|
|
284
291
|
:'policy_violated' => :'policy_violated',
|
|
285
292
|
:'raw_license' => :'raw_license',
|
|
@@ -353,6 +360,7 @@ class NugetPackageUpload
|
|
|
353
360
|
:'is_copyable' => :'BOOLEAN',
|
|
354
361
|
:'is_deleteable' => :'BOOLEAN',
|
|
355
362
|
:'is_downloadable' => :'BOOLEAN',
|
|
363
|
+
:'is_hidden' => :'BOOLEAN',
|
|
356
364
|
:'is_moveable' => :'BOOLEAN',
|
|
357
365
|
:'is_quarantinable' => :'BOOLEAN',
|
|
358
366
|
:'is_quarantined' => :'BOOLEAN',
|
|
@@ -370,6 +378,7 @@ class NugetPackageUpload
|
|
|
370
378
|
:'num_files' => :'Integer',
|
|
371
379
|
:'origin_repository' => :'String',
|
|
372
380
|
:'origin_repository_url' => :'String',
|
|
381
|
+
:'osi_approved' => :'BOOLEAN',
|
|
373
382
|
:'package_type' => :'Integer',
|
|
374
383
|
:'policy_violated' => :'BOOLEAN',
|
|
375
384
|
:'raw_license' => :'String',
|
|
@@ -538,6 +547,10 @@ class NugetPackageUpload
|
|
|
538
547
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
539
548
|
end
|
|
540
549
|
|
|
550
|
+
if attributes.has_key?(:'is_hidden')
|
|
551
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
552
|
+
end
|
|
553
|
+
|
|
541
554
|
if attributes.has_key?(:'is_moveable')
|
|
542
555
|
self.is_moveable = attributes[:'is_moveable']
|
|
543
556
|
end
|
|
@@ -606,6 +619,10 @@ class NugetPackageUpload
|
|
|
606
619
|
self.origin_repository_url = attributes[:'origin_repository_url']
|
|
607
620
|
end
|
|
608
621
|
|
|
622
|
+
if attributes.has_key?(:'osi_approved')
|
|
623
|
+
self.osi_approved = attributes[:'osi_approved']
|
|
624
|
+
end
|
|
625
|
+
|
|
609
626
|
if attributes.has_key?(:'package_type')
|
|
610
627
|
self.package_type = attributes[:'package_type']
|
|
611
628
|
end
|
|
@@ -823,6 +840,7 @@ class NugetPackageUpload
|
|
|
823
840
|
is_copyable == o.is_copyable &&
|
|
824
841
|
is_deleteable == o.is_deleteable &&
|
|
825
842
|
is_downloadable == o.is_downloadable &&
|
|
843
|
+
is_hidden == o.is_hidden &&
|
|
826
844
|
is_moveable == o.is_moveable &&
|
|
827
845
|
is_quarantinable == o.is_quarantinable &&
|
|
828
846
|
is_quarantined == o.is_quarantined &&
|
|
@@ -840,6 +858,7 @@ class NugetPackageUpload
|
|
|
840
858
|
num_files == o.num_files &&
|
|
841
859
|
origin_repository == o.origin_repository &&
|
|
842
860
|
origin_repository_url == o.origin_repository_url &&
|
|
861
|
+
osi_approved == o.osi_approved &&
|
|
843
862
|
package_type == o.package_type &&
|
|
844
863
|
policy_violated == o.policy_violated &&
|
|
845
864
|
raw_license == o.raw_license &&
|
|
@@ -890,7 +909,7 @@ class NugetPackageUpload
|
|
|
890
909
|
# Calculates hash code according to all attributes.
|
|
891
910
|
# @return [Fixnum] Hash code
|
|
892
911
|
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, self_webapp_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
|
|
912
|
+
[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_hidden, 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, osi_approved, 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, self_webapp_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
|
|
894
913
|
end
|
|
895
914
|
|
|
896
915
|
# Builds the object from hash
|