cloudsmith-api 2.0.26 → 2.0.29
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 +14 -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/FormatSupportUpstream.md +1 -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/OrganizationSAMLAuth.md +2 -0
- data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
- data/docs/OrgsApi.md +68 -1
- 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/PackagesApi.md +22 -6
- data/docs/PythonPackageUpload.md +2 -0
- data/docs/RawPackageUpload.md +2 -0
- data/docs/RecycleBinApi.md +24 -24
- data/docs/ReposApi.md +594 -3
- data/docs/Repository.md +2 -0
- data/docs/RepositoryCreate.md +2 -0
- data/docs/RepositoryCreateRequest.md +1 -0
- data/docs/RepositoryEd25519Key.md +14 -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 +63 -0
- data/lib/cloudsmith-api/api/packages_api.rb +15 -0
- data/lib/cloudsmith-api/api/recycle_bin_api.rb +41 -41
- data/lib/cloudsmith-api/api/repos_api.rb +581 -4
- 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/cargo_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
- 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/composer_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
- 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/conda_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/connected_repository.rb +285 -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/cran_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/dart_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/deb_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/docker_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
- 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/helm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/hex_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
- 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/npm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
- 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/organization_saml_auth.rb +24 -4
- data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
- 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/python_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/raw_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/repository.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +243 -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 +15 -0
- data/spec/api/packages_api_spec.rb +5 -0
- data/spec/api/recycle_bin_api_spec.rb +12 -12
- data/spec/api/repos_api_spec.rb +129 -2
- 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/cargo_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_spec.rb +1 -1
- data/spec/models/cargo_upstream_spec.rb +1 -1
- data/spec/models/cocoapods_package_upload_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +12 -0
- data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
- data/spec/models/composer_upstream_request_spec.rb +1 -1
- data/spec/models/composer_upstream_spec.rb +1 -1
- data/spec/models/conan_package_upload_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +12 -0
- data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
- data/spec/models/conda_upstream_request_spec.rb +1 -1
- data/spec/models/conda_upstream_spec.rb +1 -1
- 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 +81 -0
- data/spec/models/cran_package_upload_spec.rb +12 -0
- data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cran_upstream_request_spec.rb +1 -1
- data/spec/models/cran_upstream_spec.rb +1 -1
- data/spec/models/dart_package_upload_spec.rb +12 -0
- data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
- data/spec/models/dart_upstream_request_spec.rb +1 -1
- data/spec/models/dart_upstream_spec.rb +1 -1
- data/spec/models/deb_package_upload_spec.rb +12 -0
- data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
- data/spec/models/deb_upstream_request_spec.rb +1 -1
- data/spec/models/deb_upstream_spec.rb +1 -1
- data/spec/models/docker_package_upload_spec.rb +12 -0
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_package_upload_spec.rb +12 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
- data/spec/models/generic_upstream_request_spec.rb +1 -1
- data/spec/models/generic_upstream_spec.rb +1 -1
- data/spec/models/go_package_upload_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +12 -0
- data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/helm_upstream_request_spec.rb +1 -1
- data/spec/models/helm_upstream_spec.rb +1 -1
- data/spec/models/hex_package_upload_spec.rb +12 -0
- data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
- data/spec/models/hex_upstream_request_spec.rb +1 -1
- data/spec/models/hex_upstream_spec.rb +1 -1
- 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/npm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/npm_upstream_request_spec.rb +1 -1
- data/spec/models/npm_upstream_spec.rb +1 -1
- data/spec/models/nuget_package_upload_spec.rb +12 -0
- data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_spec.rb +1 -1
- data/spec/models/nuget_upstream_spec.rb +1 -1
- 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/organization_saml_auth_request_patch_spec.rb +12 -0
- data/spec/models/organization_saml_auth_spec.rb +12 -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/python_upstream_request_patch_spec.rb +1 -1
- data/spec/models/python_upstream_request_spec.rb +1 -1
- data/spec/models/python_upstream_spec.rb +1 -1
- 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 +12 -0
- data/spec/models/repository_ed25519_key_create_spec.rb +47 -0
- data/spec/models/repository_ed25519_key_spec.rb +77 -0
- data/spec/models/repository_request_patch_spec.rb +6 -0
- data/spec/models/repository_spec.rb +12 -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
|
@@ -22,6 +22,8 @@ class PackageStatus
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :is_downloadable
|
|
24
24
|
|
|
25
|
+
attr_accessor :is_hidden
|
|
26
|
+
|
|
25
27
|
attr_accessor :is_moveable
|
|
26
28
|
|
|
27
29
|
attr_accessor :is_quarantinable
|
|
@@ -76,6 +78,7 @@ class PackageStatus
|
|
|
76
78
|
:'is_copyable' => :'is_copyable',
|
|
77
79
|
:'is_deleteable' => :'is_deleteable',
|
|
78
80
|
:'is_downloadable' => :'is_downloadable',
|
|
81
|
+
:'is_hidden' => :'is_hidden',
|
|
79
82
|
:'is_moveable' => :'is_moveable',
|
|
80
83
|
:'is_quarantinable' => :'is_quarantinable',
|
|
81
84
|
:'is_quarantined' => :'is_quarantined',
|
|
@@ -106,6 +109,7 @@ class PackageStatus
|
|
|
106
109
|
:'is_copyable' => :'BOOLEAN',
|
|
107
110
|
:'is_deleteable' => :'BOOLEAN',
|
|
108
111
|
:'is_downloadable' => :'BOOLEAN',
|
|
112
|
+
:'is_hidden' => :'BOOLEAN',
|
|
109
113
|
:'is_moveable' => :'BOOLEAN',
|
|
110
114
|
:'is_quarantinable' => :'BOOLEAN',
|
|
111
115
|
:'is_quarantined' => :'BOOLEAN',
|
|
@@ -153,6 +157,10 @@ class PackageStatus
|
|
|
153
157
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
154
158
|
end
|
|
155
159
|
|
|
160
|
+
if attributes.has_key?(:'is_hidden')
|
|
161
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
162
|
+
end
|
|
163
|
+
|
|
156
164
|
if attributes.has_key?(:'is_moveable')
|
|
157
165
|
self.is_moveable = attributes[:'is_moveable']
|
|
158
166
|
end
|
|
@@ -256,6 +264,7 @@ class PackageStatus
|
|
|
256
264
|
is_copyable == o.is_copyable &&
|
|
257
265
|
is_deleteable == o.is_deleteable &&
|
|
258
266
|
is_downloadable == o.is_downloadable &&
|
|
267
|
+
is_hidden == o.is_hidden &&
|
|
259
268
|
is_moveable == o.is_moveable &&
|
|
260
269
|
is_quarantinable == o.is_quarantinable &&
|
|
261
270
|
is_quarantined == o.is_quarantined &&
|
|
@@ -287,7 +296,7 @@ class PackageStatus
|
|
|
287
296
|
# Calculates hash code according to all attributes.
|
|
288
297
|
# @return [Fixnum] Hash code
|
|
289
298
|
def hash
|
|
290
|
-
[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, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash
|
|
299
|
+
[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, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash
|
|
291
300
|
end
|
|
292
301
|
|
|
293
302
|
# Builds the object from hash
|
|
@@ -79,6 +79,8 @@ class PackageTag
|
|
|
79
79
|
|
|
80
80
|
attr_accessor :is_downloadable
|
|
81
81
|
|
|
82
|
+
attr_accessor :is_hidden
|
|
83
|
+
|
|
82
84
|
# If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package.
|
|
83
85
|
attr_accessor :is_immutable
|
|
84
86
|
|
|
@@ -118,6 +120,9 @@ class PackageTag
|
|
|
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
|
|
|
@@ -270,6 +275,7 @@ class PackageTag
|
|
|
270
275
|
:'is_copyable' => :'is_copyable',
|
|
271
276
|
:'is_deleteable' => :'is_deleteable',
|
|
272
277
|
:'is_downloadable' => :'is_downloadable',
|
|
278
|
+
:'is_hidden' => :'is_hidden',
|
|
273
279
|
:'is_immutable' => :'is_immutable',
|
|
274
280
|
:'is_moveable' => :'is_moveable',
|
|
275
281
|
:'is_quarantinable' => :'is_quarantinable',
|
|
@@ -288,6 +294,7 @@ class PackageTag
|
|
|
288
294
|
:'num_files' => :'num_files',
|
|
289
295
|
:'origin_repository' => :'origin_repository',
|
|
290
296
|
:'origin_repository_url' => :'origin_repository_url',
|
|
297
|
+
:'osi_approved' => :'osi_approved',
|
|
291
298
|
:'package_type' => :'package_type',
|
|
292
299
|
:'policy_violated' => :'policy_violated',
|
|
293
300
|
:'raw_license' => :'raw_license',
|
|
@@ -362,6 +369,7 @@ class PackageTag
|
|
|
362
369
|
:'is_copyable' => :'BOOLEAN',
|
|
363
370
|
:'is_deleteable' => :'BOOLEAN',
|
|
364
371
|
:'is_downloadable' => :'BOOLEAN',
|
|
372
|
+
:'is_hidden' => :'BOOLEAN',
|
|
365
373
|
:'is_immutable' => :'BOOLEAN',
|
|
366
374
|
:'is_moveable' => :'BOOLEAN',
|
|
367
375
|
:'is_quarantinable' => :'BOOLEAN',
|
|
@@ -380,6 +388,7 @@ class PackageTag
|
|
|
380
388
|
:'num_files' => :'Integer',
|
|
381
389
|
:'origin_repository' => :'String',
|
|
382
390
|
:'origin_repository_url' => :'String',
|
|
391
|
+
:'osi_approved' => :'BOOLEAN',
|
|
383
392
|
:'package_type' => :'Integer',
|
|
384
393
|
:'policy_violated' => :'BOOLEAN',
|
|
385
394
|
:'raw_license' => :'String',
|
|
@@ -552,6 +561,10 @@ class PackageTag
|
|
|
552
561
|
self.is_downloadable = attributes[:'is_downloadable']
|
|
553
562
|
end
|
|
554
563
|
|
|
564
|
+
if attributes.has_key?(:'is_hidden')
|
|
565
|
+
self.is_hidden = attributes[:'is_hidden']
|
|
566
|
+
end
|
|
567
|
+
|
|
555
568
|
if attributes.has_key?(:'is_immutable')
|
|
556
569
|
self.is_immutable = attributes[:'is_immutable']
|
|
557
570
|
else
|
|
@@ -626,6 +639,10 @@ class PackageTag
|
|
|
626
639
|
self.origin_repository_url = attributes[:'origin_repository_url']
|
|
627
640
|
end
|
|
628
641
|
|
|
642
|
+
if attributes.has_key?(:'osi_approved')
|
|
643
|
+
self.osi_approved = attributes[:'osi_approved']
|
|
644
|
+
end
|
|
645
|
+
|
|
629
646
|
if attributes.has_key?(:'package_type')
|
|
630
647
|
self.package_type = attributes[:'package_type']
|
|
631
648
|
end
|
|
@@ -844,6 +861,7 @@ class PackageTag
|
|
|
844
861
|
is_copyable == o.is_copyable &&
|
|
845
862
|
is_deleteable == o.is_deleteable &&
|
|
846
863
|
is_downloadable == o.is_downloadable &&
|
|
864
|
+
is_hidden == o.is_hidden &&
|
|
847
865
|
is_immutable == o.is_immutable &&
|
|
848
866
|
is_moveable == o.is_moveable &&
|
|
849
867
|
is_quarantinable == o.is_quarantinable &&
|
|
@@ -862,6 +880,7 @@ class PackageTag
|
|
|
862
880
|
num_files == o.num_files &&
|
|
863
881
|
origin_repository == o.origin_repository &&
|
|
864
882
|
origin_repository_url == o.origin_repository_url &&
|
|
883
|
+
osi_approved == o.osi_approved &&
|
|
865
884
|
package_type == o.package_type &&
|
|
866
885
|
policy_violated == o.policy_violated &&
|
|
867
886
|
raw_license == o.raw_license &&
|
|
@@ -912,7 +931,7 @@ class PackageTag
|
|
|
912
931
|
# Calculates hash code according to all attributes.
|
|
913
932
|
# @return [Fixnum] Hash code
|
|
914
933
|
def hash
|
|
915
|
-
[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, 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
|
|
934
|
+
[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_hidden, 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, 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
|
|
916
935
|
end
|
|
917
936
|
|
|
918
937
|
# Builds the object from hash
|
|
@@ -76,6 +76,8 @@ class PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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 PythonPackageUpload
|
|
|
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
|
|
@@ -318,7 +318,7 @@ class PythonUpstream
|
|
|
318
318
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
319
319
|
disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
|
|
320
320
|
return false unless disable_reason_validator.valid?(@disable_reason)
|
|
321
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
321
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
322
322
|
return false unless mode_validator.valid?(@mode)
|
|
323
323
|
return false if @name.nil?
|
|
324
324
|
trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
|
|
@@ -350,7 +350,7 @@ class PythonUpstream
|
|
|
350
350
|
# Custom attribute writer method checking allowed values (enum).
|
|
351
351
|
# @param [Object] mode Object to be assigned
|
|
352
352
|
def mode=(mode)
|
|
353
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
353
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
354
354
|
unless validator.valid?(mode)
|
|
355
355
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
356
356
|
end
|
|
@@ -209,7 +209,7 @@ class PythonUpstreamRequest
|
|
|
209
209
|
def valid?
|
|
210
210
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
211
211
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
212
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
212
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
213
213
|
return false unless mode_validator.valid?(@mode)
|
|
214
214
|
return false if @name.nil?
|
|
215
215
|
trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
|
|
@@ -231,7 +231,7 @@ class PythonUpstreamRequest
|
|
|
231
231
|
# Custom attribute writer method checking allowed values (enum).
|
|
232
232
|
# @param [Object] mode Object to be assigned
|
|
233
233
|
def mode=(mode)
|
|
234
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
234
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
235
235
|
unless validator.valid?(mode)
|
|
236
236
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
237
237
|
end
|
|
@@ -201,7 +201,7 @@ class PythonUpstreamRequestPatch
|
|
|
201
201
|
def valid?
|
|
202
202
|
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
203
203
|
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
204
|
-
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
204
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
205
205
|
return false unless mode_validator.valid?(@mode)
|
|
206
206
|
trust_level_validator = EnumAttributeValidator.new('String', ['Trusted', 'Untrusted'])
|
|
207
207
|
return false unless trust_level_validator.valid?(@trust_level)
|
|
@@ -221,7 +221,7 @@ class PythonUpstreamRequestPatch
|
|
|
221
221
|
# Custom attribute writer method checking allowed values (enum).
|
|
222
222
|
# @param [Object] mode Object to be assigned
|
|
223
223
|
def mode=(mode)
|
|
224
|
-
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
224
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
|
|
225
225
|
unless validator.valid?(mode)
|
|
226
226
|
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
227
227
|
end
|
|
@@ -76,6 +76,8 @@ class RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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 RawPackageUpload
|
|
|
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
|
|
@@ -14,6 +14,9 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
16
|
class Repository
|
|
17
|
+
# Number of active connections for the repository
|
|
18
|
+
attr_accessor :active_connection_count
|
|
19
|
+
|
|
17
20
|
# Broadcasting status of a repository.
|
|
18
21
|
attr_accessor :broadcast_state
|
|
19
22
|
|
|
@@ -98,6 +101,9 @@ class Repository
|
|
|
98
101
|
# API endpoint where data about this namespace can be retrieved.
|
|
99
102
|
attr_accessor :namespace_url
|
|
100
103
|
|
|
104
|
+
# If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.
|
|
105
|
+
attr_accessor :npm_upstream_tags_take_precedence
|
|
106
|
+
|
|
101
107
|
# When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams.
|
|
102
108
|
attr_accessor :nuget_native_signing_enabled
|
|
103
109
|
|
|
@@ -243,6 +249,7 @@ class Repository
|
|
|
243
249
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
244
250
|
def self.attribute_map
|
|
245
251
|
{
|
|
252
|
+
:'active_connection_count' => :'active_connection_count',
|
|
246
253
|
:'broadcast_state' => :'broadcast_state',
|
|
247
254
|
:'cdn_url' => :'cdn_url',
|
|
248
255
|
:'content_kind' => :'content_kind',
|
|
@@ -273,6 +280,7 @@ class Repository
|
|
|
273
280
|
:'name' => :'name',
|
|
274
281
|
:'namespace' => :'namespace',
|
|
275
282
|
:'namespace_url' => :'namespace_url',
|
|
283
|
+
:'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence',
|
|
276
284
|
:'nuget_native_signing_enabled' => :'nuget_native_signing_enabled',
|
|
277
285
|
:'num_downloads' => :'num_downloads',
|
|
278
286
|
:'num_policy_violated_packages' => :'num_policy_violated_packages',
|
|
@@ -319,6 +327,7 @@ class Repository
|
|
|
319
327
|
# Attribute type mapping.
|
|
320
328
|
def self.swagger_types
|
|
321
329
|
{
|
|
330
|
+
:'active_connection_count' => :'Integer',
|
|
322
331
|
:'broadcast_state' => :'String',
|
|
323
332
|
:'cdn_url' => :'String',
|
|
324
333
|
:'content_kind' => :'String',
|
|
@@ -349,6 +358,7 @@ class Repository
|
|
|
349
358
|
:'name' => :'String',
|
|
350
359
|
:'namespace' => :'String',
|
|
351
360
|
:'namespace_url' => :'String',
|
|
361
|
+
:'npm_upstream_tags_take_precedence' => :'BOOLEAN',
|
|
352
362
|
:'nuget_native_signing_enabled' => :'BOOLEAN',
|
|
353
363
|
:'num_downloads' => :'Integer',
|
|
354
364
|
:'num_policy_violated_packages' => :'Integer',
|
|
@@ -400,6 +410,10 @@ class Repository
|
|
|
400
410
|
# convert string to symbol for hash key
|
|
401
411
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
402
412
|
|
|
413
|
+
if attributes.has_key?(:'active_connection_count')
|
|
414
|
+
self.active_connection_count = attributes[:'active_connection_count']
|
|
415
|
+
end
|
|
416
|
+
|
|
403
417
|
if attributes.has_key?(:'broadcast_state')
|
|
404
418
|
self.broadcast_state = attributes[:'broadcast_state']
|
|
405
419
|
else
|
|
@@ -540,6 +554,10 @@ class Repository
|
|
|
540
554
|
self.namespace_url = attributes[:'namespace_url']
|
|
541
555
|
end
|
|
542
556
|
|
|
557
|
+
if attributes.has_key?(:'npm_upstream_tags_take_precedence')
|
|
558
|
+
self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence']
|
|
559
|
+
end
|
|
560
|
+
|
|
543
561
|
if attributes.has_key?(:'nuget_native_signing_enabled')
|
|
544
562
|
self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled']
|
|
545
563
|
end
|
|
@@ -894,6 +912,7 @@ class Repository
|
|
|
894
912
|
def ==(o)
|
|
895
913
|
return true if self.equal?(o)
|
|
896
914
|
self.class == o.class &&
|
|
915
|
+
active_connection_count == o.active_connection_count &&
|
|
897
916
|
broadcast_state == o.broadcast_state &&
|
|
898
917
|
cdn_url == o.cdn_url &&
|
|
899
918
|
content_kind == o.content_kind &&
|
|
@@ -924,6 +943,7 @@ class Repository
|
|
|
924
943
|
name == o.name &&
|
|
925
944
|
namespace == o.namespace &&
|
|
926
945
|
namespace_url == o.namespace_url &&
|
|
946
|
+
npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence &&
|
|
927
947
|
nuget_native_signing_enabled == o.nuget_native_signing_enabled &&
|
|
928
948
|
num_downloads == o.num_downloads &&
|
|
929
949
|
num_policy_violated_packages == o.num_policy_violated_packages &&
|
|
@@ -975,7 +995,7 @@ class Repository
|
|
|
975
995
|
# Calculates hash code according to all attributes.
|
|
976
996
|
# @return [Fixnum] Hash code
|
|
977
997
|
def hash
|
|
978
|
-
[broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
|
|
998
|
+
[active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
|
|
979
999
|
end
|
|
980
1000
|
|
|
981
1001
|
# Builds the object from hash
|
|
@@ -14,6 +14,9 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
16
|
class RepositoryCreate
|
|
17
|
+
# Number of active connections for the repository
|
|
18
|
+
attr_accessor :active_connection_count
|
|
19
|
+
|
|
17
20
|
# Broadcasting status of a repository.
|
|
18
21
|
attr_accessor :broadcast_state
|
|
19
22
|
|
|
@@ -98,6 +101,9 @@ class RepositoryCreate
|
|
|
98
101
|
# API endpoint where data about this namespace can be retrieved.
|
|
99
102
|
attr_accessor :namespace_url
|
|
100
103
|
|
|
104
|
+
# If checked, npm distribution tags from configured upstreams will take precedence over matching local tags. When both upstream and local repositories have the same tag name (e.g., 'latest'), the upstream tag will be used instead of the local one, even if the local repository has a semantically higher version.
|
|
105
|
+
attr_accessor :npm_upstream_tags_take_precedence
|
|
106
|
+
|
|
101
107
|
# When enabled, all pushed (or pulled from upstream) nuget packages and artifacts will be signed using the repository's X.509 RSA certificate. Additionally, the nuget RepositorySignature index will list all of the repository's signing certificates including the ones from configured upstreams.
|
|
102
108
|
attr_accessor :nuget_native_signing_enabled
|
|
103
109
|
|
|
@@ -243,6 +249,7 @@ class RepositoryCreate
|
|
|
243
249
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
244
250
|
def self.attribute_map
|
|
245
251
|
{
|
|
252
|
+
:'active_connection_count' => :'active_connection_count',
|
|
246
253
|
:'broadcast_state' => :'broadcast_state',
|
|
247
254
|
:'cdn_url' => :'cdn_url',
|
|
248
255
|
:'content_kind' => :'content_kind',
|
|
@@ -273,6 +280,7 @@ class RepositoryCreate
|
|
|
273
280
|
:'name' => :'name',
|
|
274
281
|
:'namespace' => :'namespace',
|
|
275
282
|
:'namespace_url' => :'namespace_url',
|
|
283
|
+
:'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence',
|
|
276
284
|
:'nuget_native_signing_enabled' => :'nuget_native_signing_enabled',
|
|
277
285
|
:'num_downloads' => :'num_downloads',
|
|
278
286
|
:'num_policy_violated_packages' => :'num_policy_violated_packages',
|
|
@@ -319,6 +327,7 @@ class RepositoryCreate
|
|
|
319
327
|
# Attribute type mapping.
|
|
320
328
|
def self.swagger_types
|
|
321
329
|
{
|
|
330
|
+
:'active_connection_count' => :'Integer',
|
|
322
331
|
:'broadcast_state' => :'String',
|
|
323
332
|
:'cdn_url' => :'String',
|
|
324
333
|
:'content_kind' => :'String',
|
|
@@ -349,6 +358,7 @@ class RepositoryCreate
|
|
|
349
358
|
:'name' => :'String',
|
|
350
359
|
:'namespace' => :'String',
|
|
351
360
|
:'namespace_url' => :'String',
|
|
361
|
+
:'npm_upstream_tags_take_precedence' => :'BOOLEAN',
|
|
352
362
|
:'nuget_native_signing_enabled' => :'BOOLEAN',
|
|
353
363
|
:'num_downloads' => :'Integer',
|
|
354
364
|
:'num_policy_violated_packages' => :'Integer',
|
|
@@ -400,6 +410,10 @@ class RepositoryCreate
|
|
|
400
410
|
# convert string to symbol for hash key
|
|
401
411
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
402
412
|
|
|
413
|
+
if attributes.has_key?(:'active_connection_count')
|
|
414
|
+
self.active_connection_count = attributes[:'active_connection_count']
|
|
415
|
+
end
|
|
416
|
+
|
|
403
417
|
if attributes.has_key?(:'broadcast_state')
|
|
404
418
|
self.broadcast_state = attributes[:'broadcast_state']
|
|
405
419
|
else
|
|
@@ -540,6 +554,10 @@ class RepositoryCreate
|
|
|
540
554
|
self.namespace_url = attributes[:'namespace_url']
|
|
541
555
|
end
|
|
542
556
|
|
|
557
|
+
if attributes.has_key?(:'npm_upstream_tags_take_precedence')
|
|
558
|
+
self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence']
|
|
559
|
+
end
|
|
560
|
+
|
|
543
561
|
if attributes.has_key?(:'nuget_native_signing_enabled')
|
|
544
562
|
self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled']
|
|
545
563
|
end
|
|
@@ -894,6 +912,7 @@ class RepositoryCreate
|
|
|
894
912
|
def ==(o)
|
|
895
913
|
return true if self.equal?(o)
|
|
896
914
|
self.class == o.class &&
|
|
915
|
+
active_connection_count == o.active_connection_count &&
|
|
897
916
|
broadcast_state == o.broadcast_state &&
|
|
898
917
|
cdn_url == o.cdn_url &&
|
|
899
918
|
content_kind == o.content_kind &&
|
|
@@ -924,6 +943,7 @@ class RepositoryCreate
|
|
|
924
943
|
name == o.name &&
|
|
925
944
|
namespace == o.namespace &&
|
|
926
945
|
namespace_url == o.namespace_url &&
|
|
946
|
+
npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence &&
|
|
927
947
|
nuget_native_signing_enabled == o.nuget_native_signing_enabled &&
|
|
928
948
|
num_downloads == o.num_downloads &&
|
|
929
949
|
num_policy_violated_packages == o.num_policy_violated_packages &&
|
|
@@ -975,7 +995,7 @@ class RepositoryCreate
|
|
|
975
995
|
# Calculates hash code according to all attributes.
|
|
976
996
|
# @return [Fixnum] Hash code
|
|
977
997
|
def hash
|
|
978
|
-
[broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
|
|
998
|
+
[active_connection_count, broadcast_state, cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, ecdsa_keys, enforce_eula, generic_package_index_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, namespace, namespace_url, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, num_downloads, num_policy_violated_packages, num_quarantined_packages, open_source_license, open_source_project_url, package_count, package_count_excl_subcomponents, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, self_webapp_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, tag_pre_releases_as_latest, use_debian_labels, use_default_cargo_upstream, use_entitlements_privilege, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
|
|
979
999
|
end
|
|
980
1000
|
|
|
981
1001
|
# Builds the object from hash
|