cloudsmith-api 1.33.7 → 1.120.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +54 -30
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +5 -3
- data/docs/AuditLogApi.md +137 -0
- data/docs/ConanPackageUpload.md +5 -3
- data/docs/FilesApi.md +13 -6
- data/docs/MavenPackageUpload.md +5 -3
- data/docs/NamespaceAuditLog.md +23 -0
- data/docs/OrganizationGroupSync.md +12 -0
- data/docs/OrganizationInvite.md +16 -0
- data/docs/OrganizationTeam.md +12 -0
- data/docs/OrgsApi.md +713 -0
- data/docs/OrgsInvitesCreate.md +12 -0
- data/docs/OrgsInvitesExtend.md +11 -0
- data/docs/OrgsSamlgroupsyncCreate.md +12 -0
- data/docs/OrgsTeamsCreate.md +11 -0
- data/docs/OrgsTeamsPartialUpdate.md +11 -0
- data/docs/Package.md +5 -3
- data/docs/PackageCopy.md +5 -3
- data/docs/PackageMove.md +5 -3
- data/docs/PackageStatus.md +4 -2
- data/docs/PackagesApi.md +65 -0
- data/docs/PackagesQuarantine.md +8 -0
- data/docs/RawPackageUpload.md +5 -3
- data/docs/ReposApi.md +588 -2
- data/docs/ReposCreate.md +28 -0
- data/docs/ReposGpgCreate.md +9 -0
- data/docs/ReposPartialUpdate.md +28 -0
- data/docs/ReposRsaCreate.md +9 -0
- data/docs/Repository.md +29 -1
- data/docs/RepositoryAuditLog.md +20 -0
- data/docs/RepositoryCreate.md +59 -0
- data/docs/RepositoryGpgKey.md +14 -0
- data/docs/RepositoryPrivilegeList.md +8 -0
- data/docs/RepositoryRsaKey.md +13 -0
- data/docs/RepositoryWebhook.md +3 -3
- data/docs/VagrantPackageUpload.md +5 -3
- data/docs/WebhooksCreate.md +2 -2
- data/docs/WebhooksPartialUpdate.md +2 -2
- data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
- data/lib/cloudsmith-api/api/files_api.rb +17 -7
- data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
- data/lib/cloudsmith-api/api/packages_api.rb +66 -0
- data/lib/cloudsmith-api/api/repos_api.rb +569 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +58 -4
- data/lib/cloudsmith-api/models/conan_package_upload.rb +58 -4
- data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/files_abort.rb +34 -0
- data/lib/cloudsmith-api/models/files_complete.rb +34 -0
- data/lib/cloudsmith-api/models/files_create.rb +34 -0
- data/lib/cloudsmith-api/models/files_validate.rb +34 -0
- data/lib/cloudsmith-api/models/maven_package_upload.rb +58 -4
- data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
- data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
- data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
- data/lib/cloudsmith-api/models/organization_team.rb +264 -0
- data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
- data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
- data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
- data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
- data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
- data/lib/cloudsmith-api/models/package.rb +58 -4
- data/lib/cloudsmith-api/models/package_copy.rb +58 -4
- data/lib/cloudsmith-api/models/package_move.rb +58 -4
- data/lib/cloudsmith-api/models/package_status.rb +23 -3
- data/lib/cloudsmith-api/models/packages_quarantine.rb +185 -0
- data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
- data/lib/cloudsmith-api/models/raw_package_upload.rb +58 -4
- data/lib/cloudsmith-api/models/repos_create.rb +402 -4
- data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
- data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
- data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository.rb +415 -5
- data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
- data/lib/cloudsmith-api/models/repository_create.rb +820 -0
- data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
- data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
- data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
- data/lib/cloudsmith-api/models/repository_token.rb +46 -0
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/repository_webhook.rb +3 -3
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +58 -4
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
- data/lib/cloudsmith-api/models/webhooks_create.rb +2 -2
- data/lib/cloudsmith-api/models/webhooks_partial_update.rb +2 -2
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +18 -0
- data/spec/api/audit_log_api_spec.rb +66 -0
- data/spec/api/files_api_spec.rb +4 -2
- data/spec/api/orgs_api_spec.rb +161 -0
- data/spec/api/packages_api_spec.rb +15 -0
- data/spec/api/repos_api_spec.rb +133 -1
- data/spec/models/alpine_package_upload_spec.rb +16 -0
- data/spec/models/conan_package_upload_spec.rb +16 -0
- data/spec/models/entitlements_create_spec.rb +8 -0
- data/spec/models/entitlements_partial_update_spec.rb +8 -0
- data/spec/models/entitlements_refresh_spec.rb +8 -0
- data/spec/models/files_abort_spec.rb +4 -0
- data/spec/models/files_complete_spec.rb +4 -0
- data/spec/models/files_create_spec.rb +4 -0
- data/spec/models/files_validate_spec.rb +4 -0
- data/spec/models/maven_package_upload_spec.rb +16 -0
- data/spec/models/namespace_audit_log_spec.rb +131 -0
- data/spec/models/organization_group_sync_spec.rb +65 -0
- data/spec/models/organization_invite_spec.rb +93 -0
- data/spec/models/organization_membership_spec.rb +8 -0
- data/spec/models/organization_team_spec.rb +69 -0
- data/spec/models/orgs_invites_create_spec.rb +69 -0
- data/spec/models/orgs_invites_extend_spec.rb +63 -0
- data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
- data/spec/models/orgs_teams_create_spec.rb +63 -0
- data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
- data/spec/models/package_copy_spec.rb +16 -0
- data/spec/models/package_move_spec.rb +16 -0
- data/spec/models/package_spec.rb +16 -0
- data/spec/models/package_status_spec.rb +12 -0
- data/spec/models/packages_quarantine_spec.rb +41 -0
- data/spec/models/packages_tag_spec.rb +4 -0
- data/spec/models/raw_package_upload_spec.rb +16 -0
- data/spec/models/repos_create_spec.rb +200 -0
- data/spec/models/repos_gpg_create_spec.rb +47 -0
- data/spec/models/repos_partial_update_spec.rb +204 -0
- data/spec/models/repos_rsa_create_spec.rb +47 -0
- data/spec/models/repository_audit_log_spec.rb +113 -0
- data/spec/models/repository_create_spec.rb +379 -0
- data/spec/models/repository_gpg_key_spec.rb +77 -0
- data/spec/models/repository_privilege_list_spec.rb +41 -0
- data/spec/models/repository_rsa_key_spec.rb +71 -0
- data/spec/models/repository_spec.rb +204 -0
- data/spec/models/repository_token_refresh_spec.rb +8 -0
- data/spec/models/repository_token_spec.rb +8 -0
- data/spec/models/vagrant_package_upload_spec.rb +16 -0
- data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
- data/spec/models/vulnerability_scan_results_spec.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
- data/vendor/bundle/ruby/2.6.0/cache/json-2.6.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.7.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.11.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.6.1 → json-2.6.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +13 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.6.1 → json-2.6.2}/mkmf.log +8 -8
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/CHANGES.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/VERSION +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/depend +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/generator.c +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/generator/generator.h +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/depend +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.c +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.h +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/ext/parser/parser.rl +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/ext/json/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/json.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/bigdecimal.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/complex.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/core.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/date.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/date_time.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/exception.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/ostruct.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/range.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/rational.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/regexp.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/set.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/struct.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/symbol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/add/time.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/common.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/ext.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/generic_object.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure/generator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure/parser.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/pure.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{json-2.6.1 → json-2.6.2}/lib/json.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.github/FUNDING.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/dependabot.yml +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/release.yml +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/.github/workflows/tests.yml +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.rubocop.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.rubocop_opinionated.yml +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/2.0-Upgrade.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/CHANGELOG.md +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/Gemfile +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/README.md +12 -2
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/Rakefile +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/SECURITY.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/bin/console +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/data/list.txt +1033 -378
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/domain.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/errors.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/list.rb +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/rule.rb +11 -11
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix/version.rb +5 -3
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/lib/public_suffix.rb +11 -13
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/public_suffix.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/.empty +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/acceptance_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_find.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_find_all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_names.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_select.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_select_incremental.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/benchmarks/bm_valid.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/domain_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/find_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/find_profiler_jp.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/initialization_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/list_profsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/profilers/object_binsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/psl_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/test_helper.rb +0 -8
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/tests.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/domain_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/errors_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/list_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/public_suffix_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.6 → public_suffix-4.0.7}/test/unit/rule_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/Changelog.md +10 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_list_matcher.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/error_generator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/example_methods.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/marshal_extension.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/have_received.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_chain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_expectation.rb +13 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_double.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_reference.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/minitest_integration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/mutate_const.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/object_reference.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/order_group.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/proxy.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/space.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/standalone.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/syntax.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/targets.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/test_double.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_double.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_proxy.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
- data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/{json-2.6.1.gemspec → json-2.6.2.gemspec} +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-4.0.6.gemspec → public_suffix-4.0.7.gemspec} +6 -6
- data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.11.0.gemspec → rspec-mocks-3.11.1.gemspec} +15 -22
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
- data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
- metadata +246 -175
- data/docs/StorageregionsApi.md +0 -112
- data/vendor/bundle/ruby/2.6.0/cache/json-2.6.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.6.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.11.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/gem_make.out +0 -13
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/VERSION +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/.github/workflows/tests.yml +0 -36
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/.travis.yml +0 -23
- data/vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/codecov.yml +0 -12
@@ -74,6 +74,12 @@ module CloudsmithApi
|
|
74
74
|
#
|
75
75
|
attr_accessor :indexed
|
76
76
|
|
77
|
+
#
|
78
|
+
attr_accessor :is_downloadable
|
79
|
+
|
80
|
+
#
|
81
|
+
attr_accessor :is_quarantined
|
82
|
+
|
77
83
|
#
|
78
84
|
attr_accessor :is_sync_awaiting
|
79
85
|
|
@@ -206,6 +212,28 @@ module CloudsmithApi
|
|
206
212
|
#
|
207
213
|
attr_accessor :vulnerability_scan_results_url
|
208
214
|
|
215
|
+
class EnumAttributeValidator
|
216
|
+
attr_reader :datatype
|
217
|
+
attr_reader :allowable_values
|
218
|
+
|
219
|
+
def initialize(datatype, allowable_values)
|
220
|
+
@allowable_values = allowable_values.map do |value|
|
221
|
+
case datatype.to_s
|
222
|
+
when /Integer/i
|
223
|
+
value.to_i
|
224
|
+
when /Float/i
|
225
|
+
value.to_f
|
226
|
+
else
|
227
|
+
value
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
def valid?(value)
|
233
|
+
!value || allowable_values.include?(value)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
209
237
|
# Attribute mapping from ruby-style variable name to JSON key.
|
210
238
|
def self.attribute_map
|
211
239
|
{
|
@@ -229,6 +257,8 @@ module CloudsmithApi
|
|
229
257
|
:'format_url' => :'format_url',
|
230
258
|
:'identifier_perm' => :'identifier_perm',
|
231
259
|
:'indexed' => :'indexed',
|
260
|
+
:'is_downloadable' => :'is_downloadable',
|
261
|
+
:'is_quarantined' => :'is_quarantined',
|
232
262
|
:'is_sync_awaiting' => :'is_sync_awaiting',
|
233
263
|
:'is_sync_completed' => :'is_sync_completed',
|
234
264
|
:'is_sync_failed' => :'is_sync_failed',
|
@@ -299,6 +329,8 @@ module CloudsmithApi
|
|
299
329
|
:'format_url' => :'String',
|
300
330
|
:'identifier_perm' => :'String',
|
301
331
|
:'indexed' => :'BOOLEAN',
|
332
|
+
:'is_downloadable' => :'BOOLEAN',
|
333
|
+
:'is_quarantined' => :'BOOLEAN',
|
302
334
|
:'is_sync_awaiting' => :'BOOLEAN',
|
303
335
|
:'is_sync_completed' => :'BOOLEAN',
|
304
336
|
:'is_sync_failed' => :'BOOLEAN',
|
@@ -309,7 +341,7 @@ module CloudsmithApi
|
|
309
341
|
:'namespace' => :'String',
|
310
342
|
:'namespace_url' => :'String',
|
311
343
|
:'num_files' => :'Integer',
|
312
|
-
:'package_type' => :'
|
344
|
+
:'package_type' => :'Integer',
|
313
345
|
:'release' => :'String',
|
314
346
|
:'repository' => :'String',
|
315
347
|
:'repository_url' => :'String',
|
@@ -323,10 +355,10 @@ module CloudsmithApi
|
|
323
355
|
:'size' => :'Integer',
|
324
356
|
:'slug' => :'String',
|
325
357
|
:'slug_perm' => :'String',
|
326
|
-
:'stage' => :'
|
358
|
+
:'stage' => :'Integer',
|
327
359
|
:'stage_str' => :'String',
|
328
360
|
:'stage_updated_at' => :'String',
|
329
|
-
:'status' => :'
|
361
|
+
:'status' => :'Integer',
|
330
362
|
:'status_reason' => :'String',
|
331
363
|
:'status_str' => :'String',
|
332
364
|
:'status_updated_at' => :'String',
|
@@ -438,6 +470,14 @@ module CloudsmithApi
|
|
438
470
|
self.indexed = attributes[:'indexed']
|
439
471
|
end
|
440
472
|
|
473
|
+
if attributes.has_key?(:'is_downloadable')
|
474
|
+
self.is_downloadable = attributes[:'is_downloadable']
|
475
|
+
end
|
476
|
+
|
477
|
+
if attributes.has_key?(:'is_quarantined')
|
478
|
+
self.is_quarantined = attributes[:'is_quarantined']
|
479
|
+
end
|
480
|
+
|
441
481
|
if attributes.has_key?(:'is_sync_awaiting')
|
442
482
|
self.is_sync_awaiting = attributes[:'is_sync_awaiting']
|
443
483
|
end
|
@@ -625,9 +665,21 @@ module CloudsmithApi
|
|
625
665
|
# Check to see if the all the properties in the model are valid
|
626
666
|
# @return true if the model is valid
|
627
667
|
def valid?
|
668
|
+
security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
669
|
+
return false unless security_scan_status_validator.valid?(@security_scan_status)
|
628
670
|
true
|
629
671
|
end
|
630
672
|
|
673
|
+
# Custom attribute writer method checking allowed values (enum).
|
674
|
+
# @param [Object] security_scan_status Object to be assigned
|
675
|
+
def security_scan_status=(security_scan_status)
|
676
|
+
validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
677
|
+
unless validator.valid?(security_scan_status)
|
678
|
+
fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.'
|
679
|
+
end
|
680
|
+
@security_scan_status = security_scan_status
|
681
|
+
end
|
682
|
+
|
631
683
|
# Checks equality by comparing each attribute.
|
632
684
|
# @param [Object] Object to be compared
|
633
685
|
def ==(o)
|
@@ -653,6 +705,8 @@ module CloudsmithApi
|
|
653
705
|
format_url == o.format_url &&
|
654
706
|
identifier_perm == o.identifier_perm &&
|
655
707
|
indexed == o.indexed &&
|
708
|
+
is_downloadable == o.is_downloadable &&
|
709
|
+
is_quarantined == o.is_quarantined &&
|
656
710
|
is_sync_awaiting == o.is_sync_awaiting &&
|
657
711
|
is_sync_completed == o.is_sync_completed &&
|
658
712
|
is_sync_failed == o.is_sync_failed &&
|
@@ -708,7 +762,7 @@ module CloudsmithApi
|
|
708
762
|
# Calculates hash code according to all attributes.
|
709
763
|
# @return [Fixnum] Hash code
|
710
764
|
def hash
|
711
|
-
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
765
|
+
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_downloadable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
712
766
|
end
|
713
767
|
|
714
768
|
# Builds the object from hash
|
@@ -14,45 +14,207 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CloudsmithApi
|
16
16
|
class ReposCreate
|
17
|
+
# If checked, missing credentials for this repository where basic authentication is required shall present an enriched value in the 'WWW-Authenticate' header containing the namespace and repository. This can be useful for tooling such as SBT where the authentication realm is used to distinguish and disambiguate credentials.
|
18
|
+
attr_accessor :contextual_auth_realm
|
19
|
+
|
20
|
+
# If checked, users can copy any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
|
21
|
+
attr_accessor :copy_own
|
22
|
+
|
23
|
+
# This defines the minimum level of privilege required for a user to copy packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific copy setting.
|
24
|
+
attr_accessor :copy_packages
|
25
|
+
|
26
|
+
# This defines the default level of privilege that all of your organization members have for this repository. This does not include collaborators, but applies to any member of the org regardless of their own membership role (i.e. it applies to owners, managers and members). Be careful if setting this to admin, because any member will be able to change settings.
|
27
|
+
attr_accessor :default_privilege
|
28
|
+
|
29
|
+
# If checked, users can delete any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
|
30
|
+
attr_accessor :delete_own
|
31
|
+
|
32
|
+
# This defines the minimum level of privilege required for a user to delete packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific delete setting.
|
33
|
+
attr_accessor :delete_packages
|
34
|
+
|
17
35
|
# A description of the repository's purpose/contents.
|
18
36
|
attr_accessor :description
|
19
37
|
|
38
|
+
# If checked, refresh tokens will be issued in addition to access tokens for Docker authentication. This allows unlimited extension of the lifetime of access tokens.
|
39
|
+
attr_accessor :docker_refresh_tokens_enabled
|
40
|
+
|
20
41
|
# If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
|
21
42
|
attr_accessor :index_files
|
22
43
|
|
44
|
+
# If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
|
45
|
+
attr_accessor :move_own
|
46
|
+
|
47
|
+
# This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting.
|
48
|
+
attr_accessor :move_packages
|
49
|
+
|
23
50
|
# A descriptive name for the repository.
|
24
51
|
attr_accessor :name
|
25
52
|
|
53
|
+
# If checked, Npm packages that are not in the repository when requested by clients will automatically be proxied from the public npmjs.org registry. If there is at least one version for a package, others will not be proxied.
|
54
|
+
attr_accessor :proxy_npmjs
|
55
|
+
|
56
|
+
# If checked, Python packages that are not in the repository when requested by clients will automatically be proxied from the public pypi.python.org registry. If there is at least one version for a package, others will not be proxied.
|
57
|
+
attr_accessor :proxy_pypi
|
58
|
+
|
59
|
+
# If checked, HTML and JSON indexes will be generated that list all available raw packages in the repository.
|
60
|
+
attr_accessor :raw_package_index_enabled
|
61
|
+
|
62
|
+
# If checked, the HTML and JSON indexes will display raw package GPG signatures alongside the index packages.
|
63
|
+
attr_accessor :raw_package_index_signatures_enabled
|
64
|
+
|
65
|
+
# This defines the minimum level of privilege required for a user to republish packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific republish setting. Please note that the user still requires the privilege to delete packages that will be replaced by the new package; otherwise the republish will fail.
|
66
|
+
attr_accessor :replace_packages
|
67
|
+
|
68
|
+
# If checked, uploaded packages will overwrite/replace any others with the same attributes (e.g. same version) by default. This only applies if the user has the required privilege for the republishing AND has the required privilege to delete existing packages that they don't own.
|
69
|
+
attr_accessor :replace_packages_by_default
|
70
|
+
|
26
71
|
# The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users.
|
27
72
|
attr_accessor :repository_type_str
|
28
73
|
|
74
|
+
# If checked, users can resync any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
|
75
|
+
attr_accessor :resync_own
|
76
|
+
|
77
|
+
# This defines the minimum level of privilege required for a user to resync packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific resync setting.
|
78
|
+
attr_accessor :resync_packages
|
79
|
+
|
80
|
+
# If checked, users can scan any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
|
81
|
+
attr_accessor :scan_own
|
82
|
+
|
83
|
+
# This defines the minimum level of privilege required for a user to scan packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific scan setting.
|
84
|
+
attr_accessor :scan_packages
|
85
|
+
|
86
|
+
# If checked, the Set Me Up help for all formats will always be shown, even if you don't have packages of that type uploaded. Otherwise, help will only be shown for packages that are in the repository. For example, if you have uploaded only NuGet packages, then the Set Me Up help for NuGet packages will be shown only.
|
87
|
+
attr_accessor :show_setup_all
|
88
|
+
|
29
89
|
# The slug identifies the repository in URIs.
|
30
90
|
attr_accessor :slug
|
31
91
|
|
32
92
|
# The Cloudsmith region in which package files are stored.
|
33
93
|
attr_accessor :storage_region
|
34
94
|
|
95
|
+
# If checked, npm packages will be validated strictly to ensure the package matches specifcation. You can turn this off if you have packages that are old or otherwise mildly off-spec, but we can't guarantee the packages will work with npm-cli or other tooling correctly. Turn off at your own risk!
|
96
|
+
attr_accessor :strict_npm_validation
|
97
|
+
|
98
|
+
# If checked, a 'Label' field will be present in Debian-based repositories. It will contain a string that identifies the entitlement token used to authenticate the repository, in the form of 'source=t-<identifier>'; or 'source=none' if no token was used. You can use this to help with pinning.
|
99
|
+
attr_accessor :use_debian_labels
|
100
|
+
|
101
|
+
# If checked, dependencies of uploaded Cargo crates which do not set an explicit value for \"registry\" will be assumed to be available from crates.io. If unchecked, dependencies with unspecified \"registry\" values will be assumed to be available in the registry being uploaded to. Uncheck this if you want to ensure that dependencies are only ever installed from Cloudsmith unless explicitly specified as belong to another registry.
|
102
|
+
attr_accessor :use_default_cargo_upstream
|
103
|
+
|
104
|
+
# If checked, noarch packages (if supported) are enabled in installations/configurations. A noarch package is one that is not tied to specific system architecture (like i686).
|
105
|
+
attr_accessor :use_noarch_packages
|
106
|
+
|
107
|
+
# If checked, source packages (if supported) are enabled in installations/configurations. A source package is one that contains source code rather than built binaries.
|
108
|
+
attr_accessor :use_source_packages
|
109
|
+
|
110
|
+
# If checked, vulnerability scanning will be enabled for all supported packages within this repository.
|
111
|
+
attr_accessor :use_vulnerability_scanning
|
112
|
+
|
113
|
+
# If checked, users can use and manage their own user-specific entitlement token for the repository (if private). Otherwise, user-specific entitlements are disabled for all users.
|
114
|
+
attr_accessor :user_entitlements_enabled
|
115
|
+
|
116
|
+
# This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applciable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
|
117
|
+
attr_accessor :view_statistics
|
118
|
+
|
119
|
+
class EnumAttributeValidator
|
120
|
+
attr_reader :datatype
|
121
|
+
attr_reader :allowable_values
|
122
|
+
|
123
|
+
def initialize(datatype, allowable_values)
|
124
|
+
@allowable_values = allowable_values.map do |value|
|
125
|
+
case datatype.to_s
|
126
|
+
when /Integer/i
|
127
|
+
value.to_i
|
128
|
+
when /Float/i
|
129
|
+
value.to_f
|
130
|
+
else
|
131
|
+
value
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
def valid?(value)
|
137
|
+
!value || allowable_values.include?(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
35
141
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
142
|
def self.attribute_map
|
37
143
|
{
|
144
|
+
:'contextual_auth_realm' => :'contextual_auth_realm',
|
145
|
+
:'copy_own' => :'copy_own',
|
146
|
+
:'copy_packages' => :'copy_packages',
|
147
|
+
:'default_privilege' => :'default_privilege',
|
148
|
+
:'delete_own' => :'delete_own',
|
149
|
+
:'delete_packages' => :'delete_packages',
|
38
150
|
:'description' => :'description',
|
151
|
+
:'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
|
39
152
|
:'index_files' => :'index_files',
|
153
|
+
:'move_own' => :'move_own',
|
154
|
+
:'move_packages' => :'move_packages',
|
40
155
|
:'name' => :'name',
|
156
|
+
:'proxy_npmjs' => :'proxy_npmjs',
|
157
|
+
:'proxy_pypi' => :'proxy_pypi',
|
158
|
+
:'raw_package_index_enabled' => :'raw_package_index_enabled',
|
159
|
+
:'raw_package_index_signatures_enabled' => :'raw_package_index_signatures_enabled',
|
160
|
+
:'replace_packages' => :'replace_packages',
|
161
|
+
:'replace_packages_by_default' => :'replace_packages_by_default',
|
41
162
|
:'repository_type_str' => :'repository_type_str',
|
163
|
+
:'resync_own' => :'resync_own',
|
164
|
+
:'resync_packages' => :'resync_packages',
|
165
|
+
:'scan_own' => :'scan_own',
|
166
|
+
:'scan_packages' => :'scan_packages',
|
167
|
+
:'show_setup_all' => :'show_setup_all',
|
42
168
|
:'slug' => :'slug',
|
43
|
-
:'storage_region' => :'storage_region'
|
169
|
+
:'storage_region' => :'storage_region',
|
170
|
+
:'strict_npm_validation' => :'strict_npm_validation',
|
171
|
+
:'use_debian_labels' => :'use_debian_labels',
|
172
|
+
:'use_default_cargo_upstream' => :'use_default_cargo_upstream',
|
173
|
+
:'use_noarch_packages' => :'use_noarch_packages',
|
174
|
+
:'use_source_packages' => :'use_source_packages',
|
175
|
+
:'use_vulnerability_scanning' => :'use_vulnerability_scanning',
|
176
|
+
:'user_entitlements_enabled' => :'user_entitlements_enabled',
|
177
|
+
:'view_statistics' => :'view_statistics'
|
44
178
|
}
|
45
179
|
end
|
46
180
|
|
47
181
|
# Attribute type mapping.
|
48
182
|
def self.swagger_types
|
49
183
|
{
|
184
|
+
:'contextual_auth_realm' => :'BOOLEAN',
|
185
|
+
:'copy_own' => :'BOOLEAN',
|
186
|
+
:'copy_packages' => :'String',
|
187
|
+
:'default_privilege' => :'String',
|
188
|
+
:'delete_own' => :'BOOLEAN',
|
189
|
+
:'delete_packages' => :'String',
|
50
190
|
:'description' => :'String',
|
191
|
+
:'docker_refresh_tokens_enabled' => :'BOOLEAN',
|
51
192
|
:'index_files' => :'BOOLEAN',
|
193
|
+
:'move_own' => :'BOOLEAN',
|
194
|
+
:'move_packages' => :'String',
|
52
195
|
:'name' => :'String',
|
196
|
+
:'proxy_npmjs' => :'BOOLEAN',
|
197
|
+
:'proxy_pypi' => :'BOOLEAN',
|
198
|
+
:'raw_package_index_enabled' => :'BOOLEAN',
|
199
|
+
:'raw_package_index_signatures_enabled' => :'BOOLEAN',
|
200
|
+
:'replace_packages' => :'String',
|
201
|
+
:'replace_packages_by_default' => :'BOOLEAN',
|
53
202
|
:'repository_type_str' => :'String',
|
203
|
+
:'resync_own' => :'BOOLEAN',
|
204
|
+
:'resync_packages' => :'String',
|
205
|
+
:'scan_own' => :'BOOLEAN',
|
206
|
+
:'scan_packages' => :'String',
|
207
|
+
:'show_setup_all' => :'BOOLEAN',
|
54
208
|
:'slug' => :'String',
|
55
|
-
:'storage_region' => :'String'
|
209
|
+
:'storage_region' => :'String',
|
210
|
+
:'strict_npm_validation' => :'BOOLEAN',
|
211
|
+
:'use_debian_labels' => :'BOOLEAN',
|
212
|
+
:'use_default_cargo_upstream' => :'BOOLEAN',
|
213
|
+
:'use_noarch_packages' => :'BOOLEAN',
|
214
|
+
:'use_source_packages' => :'BOOLEAN',
|
215
|
+
:'use_vulnerability_scanning' => :'BOOLEAN',
|
216
|
+
:'user_entitlements_enabled' => :'BOOLEAN',
|
217
|
+
:'view_statistics' => :'String'
|
56
218
|
}
|
57
219
|
end
|
58
220
|
|
@@ -64,22 +226,102 @@ module CloudsmithApi
|
|
64
226
|
# convert string to symbol for hash key
|
65
227
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
228
|
|
229
|
+
if attributes.has_key?(:'contextual_auth_realm')
|
230
|
+
self.contextual_auth_realm = attributes[:'contextual_auth_realm']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.has_key?(:'copy_own')
|
234
|
+
self.copy_own = attributes[:'copy_own']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'copy_packages')
|
238
|
+
self.copy_packages = attributes[:'copy_packages']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'default_privilege')
|
242
|
+
self.default_privilege = attributes[:'default_privilege']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.has_key?(:'delete_own')
|
246
|
+
self.delete_own = attributes[:'delete_own']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'delete_packages')
|
250
|
+
self.delete_packages = attributes[:'delete_packages']
|
251
|
+
end
|
252
|
+
|
67
253
|
if attributes.has_key?(:'description')
|
68
254
|
self.description = attributes[:'description']
|
69
255
|
end
|
70
256
|
|
257
|
+
if attributes.has_key?(:'docker_refresh_tokens_enabled')
|
258
|
+
self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
|
259
|
+
end
|
260
|
+
|
71
261
|
if attributes.has_key?(:'index_files')
|
72
262
|
self.index_files = attributes[:'index_files']
|
73
263
|
end
|
74
264
|
|
265
|
+
if attributes.has_key?(:'move_own')
|
266
|
+
self.move_own = attributes[:'move_own']
|
267
|
+
end
|
268
|
+
|
269
|
+
if attributes.has_key?(:'move_packages')
|
270
|
+
self.move_packages = attributes[:'move_packages']
|
271
|
+
end
|
272
|
+
|
75
273
|
if attributes.has_key?(:'name')
|
76
274
|
self.name = attributes[:'name']
|
77
275
|
end
|
78
276
|
|
277
|
+
if attributes.has_key?(:'proxy_npmjs')
|
278
|
+
self.proxy_npmjs = attributes[:'proxy_npmjs']
|
279
|
+
end
|
280
|
+
|
281
|
+
if attributes.has_key?(:'proxy_pypi')
|
282
|
+
self.proxy_pypi = attributes[:'proxy_pypi']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.has_key?(:'raw_package_index_enabled')
|
286
|
+
self.raw_package_index_enabled = attributes[:'raw_package_index_enabled']
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.has_key?(:'raw_package_index_signatures_enabled')
|
290
|
+
self.raw_package_index_signatures_enabled = attributes[:'raw_package_index_signatures_enabled']
|
291
|
+
end
|
292
|
+
|
293
|
+
if attributes.has_key?(:'replace_packages')
|
294
|
+
self.replace_packages = attributes[:'replace_packages']
|
295
|
+
end
|
296
|
+
|
297
|
+
if attributes.has_key?(:'replace_packages_by_default')
|
298
|
+
self.replace_packages_by_default = attributes[:'replace_packages_by_default']
|
299
|
+
end
|
300
|
+
|
79
301
|
if attributes.has_key?(:'repository_type_str')
|
80
302
|
self.repository_type_str = attributes[:'repository_type_str']
|
81
303
|
end
|
82
304
|
|
305
|
+
if attributes.has_key?(:'resync_own')
|
306
|
+
self.resync_own = attributes[:'resync_own']
|
307
|
+
end
|
308
|
+
|
309
|
+
if attributes.has_key?(:'resync_packages')
|
310
|
+
self.resync_packages = attributes[:'resync_packages']
|
311
|
+
end
|
312
|
+
|
313
|
+
if attributes.has_key?(:'scan_own')
|
314
|
+
self.scan_own = attributes[:'scan_own']
|
315
|
+
end
|
316
|
+
|
317
|
+
if attributes.has_key?(:'scan_packages')
|
318
|
+
self.scan_packages = attributes[:'scan_packages']
|
319
|
+
end
|
320
|
+
|
321
|
+
if attributes.has_key?(:'show_setup_all')
|
322
|
+
self.show_setup_all = attributes[:'show_setup_all']
|
323
|
+
end
|
324
|
+
|
83
325
|
if attributes.has_key?(:'slug')
|
84
326
|
self.slug = attributes[:'slug']
|
85
327
|
end
|
@@ -87,6 +329,38 @@ module CloudsmithApi
|
|
87
329
|
if attributes.has_key?(:'storage_region')
|
88
330
|
self.storage_region = attributes[:'storage_region']
|
89
331
|
end
|
332
|
+
|
333
|
+
if attributes.has_key?(:'strict_npm_validation')
|
334
|
+
self.strict_npm_validation = attributes[:'strict_npm_validation']
|
335
|
+
end
|
336
|
+
|
337
|
+
if attributes.has_key?(:'use_debian_labels')
|
338
|
+
self.use_debian_labels = attributes[:'use_debian_labels']
|
339
|
+
end
|
340
|
+
|
341
|
+
if attributes.has_key?(:'use_default_cargo_upstream')
|
342
|
+
self.use_default_cargo_upstream = attributes[:'use_default_cargo_upstream']
|
343
|
+
end
|
344
|
+
|
345
|
+
if attributes.has_key?(:'use_noarch_packages')
|
346
|
+
self.use_noarch_packages = attributes[:'use_noarch_packages']
|
347
|
+
end
|
348
|
+
|
349
|
+
if attributes.has_key?(:'use_source_packages')
|
350
|
+
self.use_source_packages = attributes[:'use_source_packages']
|
351
|
+
end
|
352
|
+
|
353
|
+
if attributes.has_key?(:'use_vulnerability_scanning')
|
354
|
+
self.use_vulnerability_scanning = attributes[:'use_vulnerability_scanning']
|
355
|
+
end
|
356
|
+
|
357
|
+
if attributes.has_key?(:'user_entitlements_enabled')
|
358
|
+
self.user_entitlements_enabled = attributes[:'user_entitlements_enabled']
|
359
|
+
end
|
360
|
+
|
361
|
+
if attributes.has_key?(:'view_statistics')
|
362
|
+
self.view_statistics = attributes[:'view_statistics']
|
363
|
+
end
|
90
364
|
end
|
91
365
|
|
92
366
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -103,21 +377,145 @@ module CloudsmithApi
|
|
103
377
|
# Check to see if the all the properties in the model are valid
|
104
378
|
# @return true if the model is valid
|
105
379
|
def valid?
|
380
|
+
copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
381
|
+
return false unless copy_packages_validator.valid?(@copy_packages)
|
382
|
+
default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
|
383
|
+
return false unless default_privilege_validator.valid?(@default_privilege)
|
384
|
+
delete_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
385
|
+
return false unless delete_packages_validator.valid?(@delete_packages)
|
386
|
+
move_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
387
|
+
return false unless move_packages_validator.valid?(@move_packages)
|
106
388
|
return false if @name.nil?
|
389
|
+
replace_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
390
|
+
return false unless replace_packages_validator.valid?(@replace_packages)
|
391
|
+
resync_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
392
|
+
return false unless resync_packages_validator.valid?(@resync_packages)
|
393
|
+
scan_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
394
|
+
return false unless scan_packages_validator.valid?(@scan_packages)
|
395
|
+
view_statistics_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
396
|
+
return false unless view_statistics_validator.valid?(@view_statistics)
|
107
397
|
true
|
108
398
|
end
|
109
399
|
|
400
|
+
# Custom attribute writer method checking allowed values (enum).
|
401
|
+
# @param [Object] copy_packages Object to be assigned
|
402
|
+
def copy_packages=(copy_packages)
|
403
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
404
|
+
unless validator.valid?(copy_packages)
|
405
|
+
fail ArgumentError, 'invalid value for "copy_packages", must be one of #{validator.allowable_values}.'
|
406
|
+
end
|
407
|
+
@copy_packages = copy_packages
|
408
|
+
end
|
409
|
+
|
410
|
+
# Custom attribute writer method checking allowed values (enum).
|
411
|
+
# @param [Object] default_privilege Object to be assigned
|
412
|
+
def default_privilege=(default_privilege)
|
413
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
|
414
|
+
unless validator.valid?(default_privilege)
|
415
|
+
fail ArgumentError, 'invalid value for "default_privilege", must be one of #{validator.allowable_values}.'
|
416
|
+
end
|
417
|
+
@default_privilege = default_privilege
|
418
|
+
end
|
419
|
+
|
420
|
+
# Custom attribute writer method checking allowed values (enum).
|
421
|
+
# @param [Object] delete_packages Object to be assigned
|
422
|
+
def delete_packages=(delete_packages)
|
423
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
424
|
+
unless validator.valid?(delete_packages)
|
425
|
+
fail ArgumentError, 'invalid value for "delete_packages", must be one of #{validator.allowable_values}.'
|
426
|
+
end
|
427
|
+
@delete_packages = delete_packages
|
428
|
+
end
|
429
|
+
|
430
|
+
# Custom attribute writer method checking allowed values (enum).
|
431
|
+
# @param [Object] move_packages Object to be assigned
|
432
|
+
def move_packages=(move_packages)
|
433
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
434
|
+
unless validator.valid?(move_packages)
|
435
|
+
fail ArgumentError, 'invalid value for "move_packages", must be one of #{validator.allowable_values}.'
|
436
|
+
end
|
437
|
+
@move_packages = move_packages
|
438
|
+
end
|
439
|
+
|
440
|
+
# Custom attribute writer method checking allowed values (enum).
|
441
|
+
# @param [Object] replace_packages Object to be assigned
|
442
|
+
def replace_packages=(replace_packages)
|
443
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
444
|
+
unless validator.valid?(replace_packages)
|
445
|
+
fail ArgumentError, 'invalid value for "replace_packages", must be one of #{validator.allowable_values}.'
|
446
|
+
end
|
447
|
+
@replace_packages = replace_packages
|
448
|
+
end
|
449
|
+
|
450
|
+
# Custom attribute writer method checking allowed values (enum).
|
451
|
+
# @param [Object] resync_packages Object to be assigned
|
452
|
+
def resync_packages=(resync_packages)
|
453
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
454
|
+
unless validator.valid?(resync_packages)
|
455
|
+
fail ArgumentError, 'invalid value for "resync_packages", must be one of #{validator.allowable_values}.'
|
456
|
+
end
|
457
|
+
@resync_packages = resync_packages
|
458
|
+
end
|
459
|
+
|
460
|
+
# Custom attribute writer method checking allowed values (enum).
|
461
|
+
# @param [Object] scan_packages Object to be assigned
|
462
|
+
def scan_packages=(scan_packages)
|
463
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
464
|
+
unless validator.valid?(scan_packages)
|
465
|
+
fail ArgumentError, 'invalid value for "scan_packages", must be one of #{validator.allowable_values}.'
|
466
|
+
end
|
467
|
+
@scan_packages = scan_packages
|
468
|
+
end
|
469
|
+
|
470
|
+
# Custom attribute writer method checking allowed values (enum).
|
471
|
+
# @param [Object] view_statistics Object to be assigned
|
472
|
+
def view_statistics=(view_statistics)
|
473
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
474
|
+
unless validator.valid?(view_statistics)
|
475
|
+
fail ArgumentError, 'invalid value for "view_statistics", must be one of #{validator.allowable_values}.'
|
476
|
+
end
|
477
|
+
@view_statistics = view_statistics
|
478
|
+
end
|
479
|
+
|
110
480
|
# Checks equality by comparing each attribute.
|
111
481
|
# @param [Object] Object to be compared
|
112
482
|
def ==(o)
|
113
483
|
return true if self.equal?(o)
|
114
484
|
self.class == o.class &&
|
485
|
+
contextual_auth_realm == o.contextual_auth_realm &&
|
486
|
+
copy_own == o.copy_own &&
|
487
|
+
copy_packages == o.copy_packages &&
|
488
|
+
default_privilege == o.default_privilege &&
|
489
|
+
delete_own == o.delete_own &&
|
490
|
+
delete_packages == o.delete_packages &&
|
115
491
|
description == o.description &&
|
492
|
+
docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
|
116
493
|
index_files == o.index_files &&
|
494
|
+
move_own == o.move_own &&
|
495
|
+
move_packages == o.move_packages &&
|
117
496
|
name == o.name &&
|
497
|
+
proxy_npmjs == o.proxy_npmjs &&
|
498
|
+
proxy_pypi == o.proxy_pypi &&
|
499
|
+
raw_package_index_enabled == o.raw_package_index_enabled &&
|
500
|
+
raw_package_index_signatures_enabled == o.raw_package_index_signatures_enabled &&
|
501
|
+
replace_packages == o.replace_packages &&
|
502
|
+
replace_packages_by_default == o.replace_packages_by_default &&
|
118
503
|
repository_type_str == o.repository_type_str &&
|
504
|
+
resync_own == o.resync_own &&
|
505
|
+
resync_packages == o.resync_packages &&
|
506
|
+
scan_own == o.scan_own &&
|
507
|
+
scan_packages == o.scan_packages &&
|
508
|
+
show_setup_all == o.show_setup_all &&
|
119
509
|
slug == o.slug &&
|
120
|
-
storage_region == o.storage_region
|
510
|
+
storage_region == o.storage_region &&
|
511
|
+
strict_npm_validation == o.strict_npm_validation &&
|
512
|
+
use_debian_labels == o.use_debian_labels &&
|
513
|
+
use_default_cargo_upstream == o.use_default_cargo_upstream &&
|
514
|
+
use_noarch_packages == o.use_noarch_packages &&
|
515
|
+
use_source_packages == o.use_source_packages &&
|
516
|
+
use_vulnerability_scanning == o.use_vulnerability_scanning &&
|
517
|
+
user_entitlements_enabled == o.user_entitlements_enabled &&
|
518
|
+
view_statistics == o.view_statistics
|
121
519
|
end
|
122
520
|
|
123
521
|
# @see the `==` method
|
@@ -129,7 +527,7 @@ module CloudsmithApi
|
|
129
527
|
# Calculates hash code according to all attributes.
|
130
528
|
# @return [Fixnum] Hash code
|
131
529
|
def hash
|
132
|
-
[description, index_files, name, repository_type_str, slug, storage_region].hash
|
530
|
+
[contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, 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, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
|
133
531
|
end
|
134
532
|
|
135
533
|
# Builds the object from hash
|