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
@@ -0,0 +1,249 @@
|
|
1
|
+
=begin
|
2
|
+
#Cloudsmith API
|
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.26
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudsmithApi
|
16
|
+
class OrgsInvitesExtend
|
17
|
+
# None
|
18
|
+
attr_accessor :email
|
19
|
+
|
20
|
+
# None
|
21
|
+
attr_accessor :inviter
|
22
|
+
|
23
|
+
# None
|
24
|
+
attr_accessor :role
|
25
|
+
|
26
|
+
# None
|
27
|
+
attr_accessor :user
|
28
|
+
|
29
|
+
class EnumAttributeValidator
|
30
|
+
attr_reader :datatype
|
31
|
+
attr_reader :allowable_values
|
32
|
+
|
33
|
+
def initialize(datatype, allowable_values)
|
34
|
+
@allowable_values = allowable_values.map do |value|
|
35
|
+
case datatype.to_s
|
36
|
+
when /Integer/i
|
37
|
+
value.to_i
|
38
|
+
when /Float/i
|
39
|
+
value.to_f
|
40
|
+
else
|
41
|
+
value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def valid?(value)
|
47
|
+
!value || allowable_values.include?(value)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
52
|
+
def self.attribute_map
|
53
|
+
{
|
54
|
+
:'email' => :'email',
|
55
|
+
:'inviter' => :'inviter',
|
56
|
+
:'role' => :'role',
|
57
|
+
:'user' => :'user'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Attribute type mapping.
|
62
|
+
def self.swagger_types
|
63
|
+
{
|
64
|
+
:'email' => :'String',
|
65
|
+
:'inviter' => :'String',
|
66
|
+
:'role' => :'String',
|
67
|
+
:'user' => :'String'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
return unless attributes.is_a?(Hash)
|
75
|
+
|
76
|
+
# convert string to symbol for hash key
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
|
+
|
79
|
+
if attributes.has_key?(:'email')
|
80
|
+
self.email = attributes[:'email']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'inviter')
|
84
|
+
self.inviter = attributes[:'inviter']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'role')
|
88
|
+
self.role = attributes[:'role']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'user')
|
92
|
+
self.user = attributes[:'user']
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
+
# @return Array for valid properties with the reasons
|
98
|
+
def list_invalid_properties
|
99
|
+
invalid_properties = Array.new
|
100
|
+
invalid_properties
|
101
|
+
end
|
102
|
+
|
103
|
+
# Check to see if the all the properties in the model are valid
|
104
|
+
# @return true if the model is valid
|
105
|
+
def valid?
|
106
|
+
role_validator = EnumAttributeValidator.new('String', ['Owner', 'Manager', 'Member', 'Collaborator'])
|
107
|
+
return false unless role_validator.valid?(@role)
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
112
|
+
# @param [Object] role Object to be assigned
|
113
|
+
def role=(role)
|
114
|
+
validator = EnumAttributeValidator.new('String', ['Owner', 'Manager', 'Member', 'Collaborator'])
|
115
|
+
unless validator.valid?(role)
|
116
|
+
fail ArgumentError, 'invalid value for "role", must be one of #{validator.allowable_values}.'
|
117
|
+
end
|
118
|
+
@role = role
|
119
|
+
end
|
120
|
+
|
121
|
+
# Checks equality by comparing each attribute.
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def ==(o)
|
124
|
+
return true if self.equal?(o)
|
125
|
+
self.class == o.class &&
|
126
|
+
email == o.email &&
|
127
|
+
inviter == o.inviter &&
|
128
|
+
role == o.role &&
|
129
|
+
user == o.user
|
130
|
+
end
|
131
|
+
|
132
|
+
# @see the `==` method
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def eql?(o)
|
135
|
+
self == o
|
136
|
+
end
|
137
|
+
|
138
|
+
# Calculates hash code according to all attributes.
|
139
|
+
# @return [Fixnum] Hash code
|
140
|
+
def hash
|
141
|
+
[email, inviter, role, user].hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
self.class.swagger_types.each_pair do |key, type|
|
150
|
+
if type =~ /\AArray<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
155
|
+
end
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
158
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
159
|
+
end
|
160
|
+
|
161
|
+
self
|
162
|
+
end
|
163
|
+
|
164
|
+
# Deserializes the data based on type
|
165
|
+
# @param string type Data type
|
166
|
+
# @param string value Value to be deserialized
|
167
|
+
# @return [Object] Deserialized data
|
168
|
+
def _deserialize(type, value)
|
169
|
+
case type.to_sym
|
170
|
+
when :DateTime
|
171
|
+
DateTime.parse(value)
|
172
|
+
when :Date
|
173
|
+
Date.parse(value)
|
174
|
+
when :String
|
175
|
+
value.to_s
|
176
|
+
when :Integer
|
177
|
+
value.to_i
|
178
|
+
when :Float
|
179
|
+
value.to_f
|
180
|
+
when :BOOLEAN
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
182
|
+
true
|
183
|
+
else
|
184
|
+
false
|
185
|
+
end
|
186
|
+
when :Object
|
187
|
+
# generic object (usually a Hash), return directly
|
188
|
+
value
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each do |k, v|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
else # model
|
201
|
+
temp_model = CloudsmithApi.const_get(type).new
|
202
|
+
temp_model.build_from_hash(value)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# Returns the string representation of the object
|
207
|
+
# @return [String] String presentation of the object
|
208
|
+
def to_s
|
209
|
+
to_hash.to_s
|
210
|
+
end
|
211
|
+
|
212
|
+
# to_body is an alias to to_hash (backward compatibility)
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_body
|
215
|
+
to_hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Returns the object in the form of hash
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
220
|
+
def to_hash
|
221
|
+
hash = {}
|
222
|
+
self.class.attribute_map.each_pair do |attr, param|
|
223
|
+
value = self.send(attr)
|
224
|
+
next if value.nil?
|
225
|
+
hash[param] = _to_hash(value)
|
226
|
+
end
|
227
|
+
hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Outputs non-array value in the form of hash
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
232
|
+
# @param [Object] value Any valid value
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
234
|
+
def _to_hash(value)
|
235
|
+
if value.is_a?(Array)
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
237
|
+
elsif value.is_a?(Hash)
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
+
end
|
241
|
+
elsif value.respond_to? :to_hash
|
242
|
+
value.to_hash
|
243
|
+
else
|
244
|
+
value
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
249
|
+
end
|
@@ -0,0 +1,245 @@
|
|
1
|
+
=begin
|
2
|
+
#Cloudsmith API
|
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.26
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudsmithApi
|
16
|
+
class OrgsSamlgroupsyncCreate
|
17
|
+
# None
|
18
|
+
attr_accessor :idp_key
|
19
|
+
|
20
|
+
# None
|
21
|
+
attr_accessor :idp_value
|
22
|
+
|
23
|
+
# None
|
24
|
+
attr_accessor :organization
|
25
|
+
|
26
|
+
# User role within the team. A `manager` is capable of adding/removing others to/from the team, and can set the role of other users and other settings pertaining to the team. A 'member' is a normal user that inherits the settings and privileges assigned to the team.
|
27
|
+
attr_accessor :role
|
28
|
+
|
29
|
+
# None
|
30
|
+
attr_accessor :team
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'idp_key' => :'idp_key',
|
36
|
+
:'idp_value' => :'idp_value',
|
37
|
+
:'organization' => :'organization',
|
38
|
+
:'role' => :'role',
|
39
|
+
:'team' => :'team'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
:'idp_key' => :'String',
|
47
|
+
:'idp_value' => :'String',
|
48
|
+
:'organization' => :'String',
|
49
|
+
:'role' => :'String',
|
50
|
+
:'team' => :'String'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
return unless attributes.is_a?(Hash)
|
58
|
+
|
59
|
+
# convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
61
|
+
|
62
|
+
if attributes.has_key?(:'idp_key')
|
63
|
+
self.idp_key = attributes[:'idp_key']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'idp_value')
|
67
|
+
self.idp_value = attributes[:'idp_value']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'organization')
|
71
|
+
self.organization = attributes[:'organization']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'role')
|
75
|
+
self.role = attributes[:'role']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'team')
|
79
|
+
self.team = attributes[:'team']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
if @idp_key.nil?
|
88
|
+
invalid_properties.push('invalid value for "idp_key", idp_key cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @idp_value.nil?
|
92
|
+
invalid_properties.push('invalid value for "idp_value", idp_value cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @organization.nil?
|
96
|
+
invalid_properties.push('invalid value for "organization", organization cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @team.nil?
|
100
|
+
invalid_properties.push('invalid value for "team", team cannot be nil.')
|
101
|
+
end
|
102
|
+
|
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
|
+
return false if @idp_key.nil?
|
110
|
+
return false if @idp_value.nil?
|
111
|
+
return false if @organization.nil?
|
112
|
+
return false if @team.nil?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
idp_key == o.idp_key &&
|
122
|
+
idp_value == o.idp_value &&
|
123
|
+
organization == o.organization &&
|
124
|
+
role == o.role &&
|
125
|
+
team == o.team
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(o)
|
131
|
+
self == o
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Fixnum] Hash code
|
136
|
+
def hash
|
137
|
+
[idp_key, idp_value, organization, role, team].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def build_from_hash(attributes)
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
145
|
+
self.class.swagger_types.each_pair do |key, type|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
151
|
+
end
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
155
|
+
end
|
156
|
+
|
157
|
+
self
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deserializes the data based on type
|
161
|
+
# @param string type Data type
|
162
|
+
# @param string value Value to be deserialized
|
163
|
+
# @return [Object] Deserialized data
|
164
|
+
def _deserialize(type, value)
|
165
|
+
case type.to_sym
|
166
|
+
when :DateTime
|
167
|
+
DateTime.parse(value)
|
168
|
+
when :Date
|
169
|
+
Date.parse(value)
|
170
|
+
when :String
|
171
|
+
value.to_s
|
172
|
+
when :Integer
|
173
|
+
value.to_i
|
174
|
+
when :Float
|
175
|
+
value.to_f
|
176
|
+
when :BOOLEAN
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
178
|
+
true
|
179
|
+
else
|
180
|
+
false
|
181
|
+
end
|
182
|
+
when :Object
|
183
|
+
# generic object (usually a Hash), return directly
|
184
|
+
value
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each do |k, v|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
else # model
|
197
|
+
temp_model = CloudsmithApi.const_get(type).new
|
198
|
+
temp_model.build_from_hash(value)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the string representation of the object
|
203
|
+
# @return [String] String presentation of the object
|
204
|
+
def to_s
|
205
|
+
to_hash.to_s
|
206
|
+
end
|
207
|
+
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_body
|
211
|
+
to_hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the object in the form of hash
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_hash
|
217
|
+
hash = {}
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
219
|
+
value = self.send(attr)
|
220
|
+
next if value.nil?
|
221
|
+
hash[param] = _to_hash(value)
|
222
|
+
end
|
223
|
+
hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Outputs non-array value in the form of hash
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
228
|
+
# @param [Object] value Any valid value
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
230
|
+
def _to_hash(value)
|
231
|
+
if value.is_a?(Array)
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
233
|
+
elsif value.is_a?(Hash)
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
+
end
|
237
|
+
elsif value.respond_to? :to_hash
|
238
|
+
value.to_hash
|
239
|
+
else
|
240
|
+
value
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
end
|
245
|
+
end
|