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
|
@@ -74,6 +74,9 @@ class RepositoryCreateRequest
|
|
|
74
74
|
# A descriptive name for the repository.
|
|
75
75
|
attr_accessor :name
|
|
76
76
|
|
|
77
|
+
# 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.
|
|
78
|
+
attr_accessor :npm_upstream_tags_take_precedence
|
|
79
|
+
|
|
77
80
|
# 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.
|
|
78
81
|
attr_accessor :nuget_native_signing_enabled
|
|
79
82
|
|
|
@@ -200,6 +203,7 @@ class RepositoryCreateRequest
|
|
|
200
203
|
:'move_own' => :'move_own',
|
|
201
204
|
:'move_packages' => :'move_packages',
|
|
202
205
|
:'name' => :'name',
|
|
206
|
+
:'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence',
|
|
203
207
|
:'nuget_native_signing_enabled' => :'nuget_native_signing_enabled',
|
|
204
208
|
:'open_source_license' => :'open_source_license',
|
|
205
209
|
:'open_source_project_url' => :'open_source_project_url',
|
|
@@ -253,6 +257,7 @@ class RepositoryCreateRequest
|
|
|
253
257
|
:'move_own' => :'BOOLEAN',
|
|
254
258
|
:'move_packages' => :'String',
|
|
255
259
|
:'name' => :'String',
|
|
260
|
+
:'npm_upstream_tags_take_precedence' => :'BOOLEAN',
|
|
256
261
|
:'nuget_native_signing_enabled' => :'BOOLEAN',
|
|
257
262
|
:'open_source_license' => :'String',
|
|
258
263
|
:'open_source_project_url' => :'String',
|
|
@@ -387,6 +392,10 @@ class RepositoryCreateRequest
|
|
|
387
392
|
self.name = attributes[:'name']
|
|
388
393
|
end
|
|
389
394
|
|
|
395
|
+
if attributes.has_key?(:'npm_upstream_tags_take_precedence')
|
|
396
|
+
self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence']
|
|
397
|
+
end
|
|
398
|
+
|
|
390
399
|
if attributes.has_key?(:'nuget_native_signing_enabled')
|
|
391
400
|
self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled']
|
|
392
401
|
end
|
|
@@ -709,6 +718,7 @@ class RepositoryCreateRequest
|
|
|
709
718
|
move_own == o.move_own &&
|
|
710
719
|
move_packages == o.move_packages &&
|
|
711
720
|
name == o.name &&
|
|
721
|
+
npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence &&
|
|
712
722
|
nuget_native_signing_enabled == o.nuget_native_signing_enabled &&
|
|
713
723
|
open_source_license == o.open_source_license &&
|
|
714
724
|
open_source_project_url == o.open_source_project_url &&
|
|
@@ -747,7 +757,7 @@ class RepositoryCreateRequest
|
|
|
747
757
|
# Calculates hash code according to all attributes.
|
|
748
758
|
# @return [Fixnum] Hash code
|
|
749
759
|
def hash
|
|
750
|
-
[broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, 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
|
|
760
|
+
[broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, 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
|
|
751
761
|
end
|
|
752
762
|
|
|
753
763
|
# Builds the object from hash
|
|
@@ -0,0 +1,243 @@
|
|
|
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 RepositoryEd25519Key
|
|
17
|
+
# If selected this is the active key for this repository.
|
|
18
|
+
attr_accessor :active
|
|
19
|
+
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
|
|
22
|
+
# If selected this is the default key for this repository.
|
|
23
|
+
attr_accessor :default
|
|
24
|
+
|
|
25
|
+
# Uppercase hex-encoded SHA-256 fingerprint of the public key.
|
|
26
|
+
attr_accessor :fingerprint
|
|
27
|
+
|
|
28
|
+
attr_accessor :fingerprint_short
|
|
29
|
+
|
|
30
|
+
# The public key given to repository users.
|
|
31
|
+
attr_accessor :public_key
|
|
32
|
+
|
|
33
|
+
# The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`.
|
|
34
|
+
attr_accessor :public_key_wire
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'active' => :'active',
|
|
40
|
+
:'created_at' => :'created_at',
|
|
41
|
+
:'default' => :'default',
|
|
42
|
+
:'fingerprint' => :'fingerprint',
|
|
43
|
+
:'fingerprint_short' => :'fingerprint_short',
|
|
44
|
+
:'public_key' => :'public_key',
|
|
45
|
+
:'public_key_wire' => :'public_key_wire'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.swagger_types
|
|
51
|
+
{
|
|
52
|
+
:'active' => :'BOOLEAN',
|
|
53
|
+
:'created_at' => :'DateTime',
|
|
54
|
+
:'default' => :'BOOLEAN',
|
|
55
|
+
:'fingerprint' => :'String',
|
|
56
|
+
:'fingerprint_short' => :'String',
|
|
57
|
+
:'public_key' => :'String',
|
|
58
|
+
:'public_key_wire' => :'String'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
return unless attributes.is_a?(Hash)
|
|
66
|
+
|
|
67
|
+
# convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'active')
|
|
71
|
+
self.active = attributes[:'active']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'created_at')
|
|
75
|
+
self.created_at = attributes[:'created_at']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.has_key?(:'default')
|
|
79
|
+
self.default = attributes[:'default']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.has_key?(:'fingerprint')
|
|
83
|
+
self.fingerprint = attributes[:'fingerprint']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.has_key?(:'fingerprint_short')
|
|
87
|
+
self.fingerprint_short = attributes[:'fingerprint_short']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.has_key?(:'public_key')
|
|
91
|
+
self.public_key = attributes[:'public_key']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.has_key?(:'public_key_wire')
|
|
95
|
+
self.public_key_wire = attributes[:'public_key_wire']
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
100
|
+
# @return Array for valid properties with the reasons
|
|
101
|
+
def list_invalid_properties
|
|
102
|
+
invalid_properties = Array.new
|
|
103
|
+
invalid_properties
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Check to see if the all the properties in the model are valid
|
|
107
|
+
# @return true if the model is valid
|
|
108
|
+
def valid?
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Checks equality by comparing each attribute.
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def ==(o)
|
|
115
|
+
return true if self.equal?(o)
|
|
116
|
+
self.class == o.class &&
|
|
117
|
+
active == o.active &&
|
|
118
|
+
created_at == o.created_at &&
|
|
119
|
+
default == o.default &&
|
|
120
|
+
fingerprint == o.fingerprint &&
|
|
121
|
+
fingerprint_short == o.fingerprint_short &&
|
|
122
|
+
public_key == o.public_key &&
|
|
123
|
+
public_key_wire == o.public_key_wire
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# @see the `==` method
|
|
127
|
+
# @param [Object] Object to be compared
|
|
128
|
+
def eql?(o)
|
|
129
|
+
self == o
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Calculates hash code according to all attributes.
|
|
133
|
+
# @return [Fixnum] Hash code
|
|
134
|
+
def hash
|
|
135
|
+
[active, created_at, default, fingerprint, fingerprint_short, public_key, public_key_wire].hash
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Builds the object from hash
|
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
140
|
+
# @return [Object] Returns the model itself
|
|
141
|
+
def build_from_hash(attributes)
|
|
142
|
+
return nil unless attributes.is_a?(Hash)
|
|
143
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
144
|
+
if type =~ /\AArray<(.*)>/i
|
|
145
|
+
# check to ensure the input is an array given that the attribute
|
|
146
|
+
# is documented as an array but the input is not
|
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
149
|
+
end
|
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
152
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
self
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Deserializes the data based on type
|
|
159
|
+
# @param string type Data type
|
|
160
|
+
# @param string value Value to be deserialized
|
|
161
|
+
# @return [Object] Deserialized data
|
|
162
|
+
def _deserialize(type, value)
|
|
163
|
+
case type.to_sym
|
|
164
|
+
when :DateTime
|
|
165
|
+
DateTime.parse(value)
|
|
166
|
+
when :Date
|
|
167
|
+
Date.parse(value)
|
|
168
|
+
when :String
|
|
169
|
+
value.to_s
|
|
170
|
+
when :Integer
|
|
171
|
+
value.to_i
|
|
172
|
+
when :Float
|
|
173
|
+
value.to_f
|
|
174
|
+
when :BOOLEAN
|
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
176
|
+
true
|
|
177
|
+
else
|
|
178
|
+
false
|
|
179
|
+
end
|
|
180
|
+
when :Object
|
|
181
|
+
# generic object (usually a Hash), return directly
|
|
182
|
+
value
|
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
|
189
|
+
{}.tap do |hash|
|
|
190
|
+
value.each do |k, v|
|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
else # model
|
|
195
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
196
|
+
temp_model.build_from_hash(value)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Returns the string representation of the object
|
|
201
|
+
# @return [String] String presentation of the object
|
|
202
|
+
def to_s
|
|
203
|
+
to_hash.to_s
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
|
208
|
+
def to_body
|
|
209
|
+
to_hash
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Returns the object in the form of hash
|
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
|
214
|
+
def to_hash
|
|
215
|
+
hash = {}
|
|
216
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
217
|
+
value = self.send(attr)
|
|
218
|
+
next if value.nil?
|
|
219
|
+
hash[param] = _to_hash(value)
|
|
220
|
+
end
|
|
221
|
+
hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Outputs non-array value in the form of hash
|
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
226
|
+
# @param [Object] value Any valid value
|
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
|
228
|
+
def _to_hash(value)
|
|
229
|
+
if value.is_a?(Array)
|
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
|
231
|
+
elsif value.is_a?(Hash)
|
|
232
|
+
{}.tap do |hash|
|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
234
|
+
end
|
|
235
|
+
elsif value.respond_to? :to_hash
|
|
236
|
+
value.to_hash
|
|
237
|
+
else
|
|
238
|
+
value
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
end
|
|
243
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
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 RepositoryEd25519KeyCreate
|
|
17
|
+
# The Ed25519 passphrase used for signing.
|
|
18
|
+
attr_accessor :ed25519_passphrase
|
|
19
|
+
|
|
20
|
+
# The Ed25519 private key.
|
|
21
|
+
attr_accessor :ed25519_private_key
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'ed25519_passphrase' => :'ed25519_passphrase',
|
|
27
|
+
:'ed25519_private_key' => :'ed25519_private_key'
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Attribute type mapping.
|
|
32
|
+
def self.swagger_types
|
|
33
|
+
{
|
|
34
|
+
:'ed25519_passphrase' => :'String',
|
|
35
|
+
:'ed25519_private_key' => :'String'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Initializes the object
|
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
return unless attributes.is_a?(Hash)
|
|
43
|
+
|
|
44
|
+
# convert string to symbol for hash key
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
46
|
+
|
|
47
|
+
if attributes.has_key?(:'ed25519_passphrase')
|
|
48
|
+
self.ed25519_passphrase = attributes[:'ed25519_passphrase']
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if attributes.has_key?(:'ed25519_private_key')
|
|
52
|
+
self.ed25519_private_key = attributes[:'ed25519_private_key']
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
+
# @return Array for valid properties with the reasons
|
|
58
|
+
def list_invalid_properties
|
|
59
|
+
invalid_properties = Array.new
|
|
60
|
+
if @ed25519_private_key.nil?
|
|
61
|
+
invalid_properties.push('invalid value for "ed25519_private_key", ed25519_private_key cannot be nil.')
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
invalid_properties
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Check to see if the all the properties in the model are valid
|
|
68
|
+
# @return true if the model is valid
|
|
69
|
+
def valid?
|
|
70
|
+
return false if @ed25519_private_key.nil?
|
|
71
|
+
true
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Checks equality by comparing each attribute.
|
|
75
|
+
# @param [Object] Object to be compared
|
|
76
|
+
def ==(o)
|
|
77
|
+
return true if self.equal?(o)
|
|
78
|
+
self.class == o.class &&
|
|
79
|
+
ed25519_passphrase == o.ed25519_passphrase &&
|
|
80
|
+
ed25519_private_key == o.ed25519_private_key
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @see the `==` method
|
|
84
|
+
# @param [Object] Object to be compared
|
|
85
|
+
def eql?(o)
|
|
86
|
+
self == o
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Calculates hash code according to all attributes.
|
|
90
|
+
# @return [Fixnum] Hash code
|
|
91
|
+
def hash
|
|
92
|
+
[ed25519_passphrase, ed25519_private_key].hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Builds the object from hash
|
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
97
|
+
# @return [Object] Returns the model itself
|
|
98
|
+
def build_from_hash(attributes)
|
|
99
|
+
return nil unless attributes.is_a?(Hash)
|
|
100
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
101
|
+
if type =~ /\AArray<(.*)>/i
|
|
102
|
+
# check to ensure the input is an array given that the attribute
|
|
103
|
+
# is documented as an array but the input is not
|
|
104
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
105
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
106
|
+
end
|
|
107
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
108
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
109
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
self
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Deserializes the data based on type
|
|
116
|
+
# @param string type Data type
|
|
117
|
+
# @param string value Value to be deserialized
|
|
118
|
+
# @return [Object] Deserialized data
|
|
119
|
+
def _deserialize(type, value)
|
|
120
|
+
case type.to_sym
|
|
121
|
+
when :DateTime
|
|
122
|
+
DateTime.parse(value)
|
|
123
|
+
when :Date
|
|
124
|
+
Date.parse(value)
|
|
125
|
+
when :String
|
|
126
|
+
value.to_s
|
|
127
|
+
when :Integer
|
|
128
|
+
value.to_i
|
|
129
|
+
when :Float
|
|
130
|
+
value.to_f
|
|
131
|
+
when :BOOLEAN
|
|
132
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
133
|
+
true
|
|
134
|
+
else
|
|
135
|
+
false
|
|
136
|
+
end
|
|
137
|
+
when :Object
|
|
138
|
+
# generic object (usually a Hash), return directly
|
|
139
|
+
value
|
|
140
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
141
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
142
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
143
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
144
|
+
k_type = Regexp.last_match[:k_type]
|
|
145
|
+
v_type = Regexp.last_match[:v_type]
|
|
146
|
+
{}.tap do |hash|
|
|
147
|
+
value.each do |k, v|
|
|
148
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
else # model
|
|
152
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
153
|
+
temp_model.build_from_hash(value)
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Returns the string representation of the object
|
|
158
|
+
# @return [String] String presentation of the object
|
|
159
|
+
def to_s
|
|
160
|
+
to_hash.to_s
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
164
|
+
# @return [Hash] Returns the object in the form of hash
|
|
165
|
+
def to_body
|
|
166
|
+
to_hash
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Returns the object in the form of hash
|
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
|
171
|
+
def to_hash
|
|
172
|
+
hash = {}
|
|
173
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
174
|
+
value = self.send(attr)
|
|
175
|
+
next if value.nil?
|
|
176
|
+
hash[param] = _to_hash(value)
|
|
177
|
+
end
|
|
178
|
+
hash
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Outputs non-array value in the form of hash
|
|
182
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
183
|
+
# @param [Object] value Any valid value
|
|
184
|
+
# @return [Hash] Returns the value in the form of hash
|
|
185
|
+
def _to_hash(value)
|
|
186
|
+
if value.is_a?(Array)
|
|
187
|
+
value.compact.map { |v| _to_hash(v) }
|
|
188
|
+
elsif value.is_a?(Hash)
|
|
189
|
+
{}.tap do |hash|
|
|
190
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
191
|
+
end
|
|
192
|
+
elsif value.respond_to? :to_hash
|
|
193
|
+
value.to_hash
|
|
194
|
+
else
|
|
195
|
+
value
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
end
|
|
200
|
+
end
|
|
@@ -74,6 +74,9 @@ class RepositoryRequestPatch
|
|
|
74
74
|
# A descriptive name for the repository.
|
|
75
75
|
attr_accessor :name
|
|
76
76
|
|
|
77
|
+
# 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.
|
|
78
|
+
attr_accessor :npm_upstream_tags_take_precedence
|
|
79
|
+
|
|
77
80
|
# 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.
|
|
78
81
|
attr_accessor :nuget_native_signing_enabled
|
|
79
82
|
|
|
@@ -197,6 +200,7 @@ class RepositoryRequestPatch
|
|
|
197
200
|
:'move_own' => :'move_own',
|
|
198
201
|
:'move_packages' => :'move_packages',
|
|
199
202
|
:'name' => :'name',
|
|
203
|
+
:'npm_upstream_tags_take_precedence' => :'npm_upstream_tags_take_precedence',
|
|
200
204
|
:'nuget_native_signing_enabled' => :'nuget_native_signing_enabled',
|
|
201
205
|
:'open_source_license' => :'open_source_license',
|
|
202
206
|
:'open_source_project_url' => :'open_source_project_url',
|
|
@@ -249,6 +253,7 @@ class RepositoryRequestPatch
|
|
|
249
253
|
:'move_own' => :'BOOLEAN',
|
|
250
254
|
:'move_packages' => :'String',
|
|
251
255
|
:'name' => :'String',
|
|
256
|
+
:'npm_upstream_tags_take_precedence' => :'BOOLEAN',
|
|
252
257
|
:'nuget_native_signing_enabled' => :'BOOLEAN',
|
|
253
258
|
:'open_source_license' => :'String',
|
|
254
259
|
:'open_source_project_url' => :'String',
|
|
@@ -382,6 +387,10 @@ class RepositoryRequestPatch
|
|
|
382
387
|
self.name = attributes[:'name']
|
|
383
388
|
end
|
|
384
389
|
|
|
390
|
+
if attributes.has_key?(:'npm_upstream_tags_take_precedence')
|
|
391
|
+
self.npm_upstream_tags_take_precedence = attributes[:'npm_upstream_tags_take_precedence']
|
|
392
|
+
end
|
|
393
|
+
|
|
385
394
|
if attributes.has_key?(:'nuget_native_signing_enabled')
|
|
386
395
|
self.nuget_native_signing_enabled = attributes[:'nuget_native_signing_enabled']
|
|
387
396
|
end
|
|
@@ -693,6 +702,7 @@ class RepositoryRequestPatch
|
|
|
693
702
|
move_own == o.move_own &&
|
|
694
703
|
move_packages == o.move_packages &&
|
|
695
704
|
name == o.name &&
|
|
705
|
+
npm_upstream_tags_take_precedence == o.npm_upstream_tags_take_precedence &&
|
|
696
706
|
nuget_native_signing_enabled == o.nuget_native_signing_enabled &&
|
|
697
707
|
open_source_license == o.open_source_license &&
|
|
698
708
|
open_source_project_url == o.open_source_project_url &&
|
|
@@ -730,7 +740,7 @@ class RepositoryRequestPatch
|
|
|
730
740
|
# Calculates hash code according to all attributes.
|
|
731
741
|
# @return [Fixnum] Hash code
|
|
732
742
|
def hash
|
|
733
|
-
[broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, 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
|
|
743
|
+
[broadcast_state, content_kind, contextual_auth_realm, copy_own, copy_packages, cosign_signing_enabled, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, enforce_eula, generic_package_index_enabled, index_files, is_public_hidden, manage_entitlements_privilege, move_own, move_packages, name, npm_upstream_tags_take_precedence, nuget_native_signing_enabled, open_source_license, open_source_project_url, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, 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
|
|
734
744
|
end
|
|
735
745
|
|
|
736
746
|
# Builds the object from hash
|
|
@@ -76,6 +76,8 @@ class RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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 RpmPackageUpload
|
|
|
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
|