cloudsmith-api 1.30.0 → 1.33.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -4
- data/README.md +22 -21
- data/build.json +1 -1
- data/cloudsmith-api.gemspec +5 -4
- data/docs/BadgesApi.md +18 -17
- data/docs/DistrosApi.md +1 -1
- data/docs/EntitlementsApi.md +27 -27
- data/docs/FilesApi.md +13 -13
- data/docs/FormatsApi.md +1 -1
- data/docs/MetricsApi.md +14 -14
- data/docs/NamespacesApi.md +1 -1
- data/docs/OrgsApi.md +6 -6
- data/docs/PackagesApi.md +123 -123
- data/docs/QuotaApi.md +4 -4
- data/docs/ReposApi.md +8 -8
- data/docs/StorageRegionsApi.md +112 -0
- data/docs/StorageregionsApi.md +8 -8
- data/docs/UsersApi.md +1 -1
- data/docs/VulnerabilitiesApi.md +10 -10
- data/docs/WebhooksApi.md +13 -13
- data/git_push.sh +1 -1
- data/lib/cloudsmith-api/api/badges_api.rb +10 -10
- data/lib/cloudsmith-api/api/distros_api.rb +8 -10
- data/lib/cloudsmith-api/api/entitlements_api.rb +32 -42
- data/lib/cloudsmith-api/api/files_api.rb +17 -22
- data/lib/cloudsmith-api/api/formats_api.rb +8 -10
- data/lib/cloudsmith-api/api/metrics_api.rb +11 -14
- data/lib/cloudsmith-api/api/namespaces_api.rb +8 -10
- data/lib/cloudsmith-api/api/orgs_api.rb +17 -22
- data/lib/cloudsmith-api/api/packages_api.rb +170 -226
- data/lib/cloudsmith-api/api/quota_api.rb +14 -18
- data/lib/cloudsmith-api/api/rates_api.rb +5 -6
- data/lib/cloudsmith-api/api/repos_api.rb +20 -26
- data/lib/cloudsmith-api/api/status_api.rb +5 -6
- data/lib/cloudsmith-api/api/{storageregions_api.rb → storage_regions_api.rb} +12 -14
- data/lib/cloudsmith-api/api/user_api.rb +8 -10
- data/lib/cloudsmith-api/api/users_api.rb +5 -6
- data/lib/cloudsmith-api/api/vulnerabilities_api.rb +14 -18
- data/lib/cloudsmith-api/api/webhooks_api.rb +17 -22
- data/lib/cloudsmith-api/api_client.rb +15 -13
- data/lib/cloudsmith-api/api_error.rb +1 -1
- data/lib/cloudsmith-api/configuration.rb +4 -4
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +8 -12
- data/lib/cloudsmith-api/models/conan_package_upload.rb +8 -12
- data/lib/cloudsmith-api/models/distribution.rb +9 -13
- data/lib/cloudsmith-api/models/distros_versions.rb +8 -12
- data/lib/cloudsmith-api/models/entitlement_usage_metrics.rb +9 -13
- data/lib/cloudsmith-api/models/entitlements_create.rb +9 -13
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +8 -12
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +8 -12
- data/lib/cloudsmith-api/models/entitlements_sync.rb +9 -13
- data/lib/cloudsmith-api/models/files_abort.rb +9 -13
- data/lib/cloudsmith-api/models/files_complete.rb +9 -13
- data/lib/cloudsmith-api/models/files_create.rb +9 -13
- data/lib/cloudsmith-api/models/files_validate.rb +9 -13
- data/lib/cloudsmith-api/models/format.rb +14 -18
- data/lib/cloudsmith-api/models/formats_distributions.rb +8 -12
- data/lib/cloudsmith-api/models/maven_package_upload.rb +8 -12
- data/lib/cloudsmith-api/models/namespace.rb +8 -12
- data/lib/cloudsmith-api/models/organization.rb +8 -12
- data/lib/cloudsmith-api/models/organization_membership.rb +8 -12
- data/lib/cloudsmith-api/models/package.rb +8 -12
- data/lib/cloudsmith-api/models/package_copy.rb +8 -12
- data/lib/cloudsmith-api/models/package_dependencies.rb +9 -13
- data/lib/cloudsmith-api/models/package_dependencies_dependencies.rb +8 -12
- data/lib/cloudsmith-api/models/package_file_parts_upload.rb +8 -12
- data/lib/cloudsmith-api/models/package_file_upload.rb +8 -12
- data/lib/cloudsmith-api/models/package_move.rb +8 -12
- data/lib/cloudsmith-api/models/package_status.rb +8 -12
- data/lib/cloudsmith-api/models/package_usage_metrics.rb +9 -13
- data/lib/cloudsmith-api/models/packages_copy.rb +9 -13
- data/lib/cloudsmith-api/models/packages_move.rb +9 -13
- data/lib/cloudsmith-api/models/packages_tag.rb +8 -12
- data/lib/cloudsmith-api/models/packages_upload_alpine.rb +10 -14
- data/lib/cloudsmith-api/models/packages_upload_cargo.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_composer.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_conan.rb +12 -16
- data/lib/cloudsmith-api/models/packages_upload_conda.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_cran.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_dart.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_deb.rb +10 -14
- data/lib/cloudsmith-api/models/packages_upload_docker.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_go.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_helm.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_luarocks.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_maven.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_npm.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_nuget.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_p2.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_python.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_raw.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_rpm.rb +10 -14
- data/lib/cloudsmith-api/models/packages_upload_ruby.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_terraform.rb +9 -13
- data/lib/cloudsmith-api/models/packages_upload_vagrant.rb +12 -16
- data/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +10 -14
- data/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_composer.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_conan.rb +12 -16
- data/lib/cloudsmith-api/models/packages_validateupload_conda.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_cran.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_dart.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_deb.rb +10 -14
- data/lib/cloudsmith-api/models/packages_validateupload_docker.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_go.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_helm.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_maven.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_npm.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_p2.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_python.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_raw.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +10 -14
- data/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +9 -13
- data/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +12 -16
- data/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb +8 -12
- data/lib/cloudsmith-api/models/packagesownerrepo_files.rb +8 -12
- data/lib/cloudsmith-api/models/quota.rb +9 -13
- data/lib/cloudsmith-api/models/quota_history.rb +9 -13
- data/lib/cloudsmith-api/models/quota_history_history.rb +8 -12
- data/lib/cloudsmith-api/models/raw_package_upload.rb +8 -12
- data/lib/cloudsmith-api/models/repos_create.rb +9 -13
- data/lib/cloudsmith-api/models/repos_gpg_keys.rb +8 -12
- data/lib/cloudsmith-api/models/repos_partial_update.rb +8 -12
- data/lib/cloudsmith-api/models/repository.rb +9 -13
- data/lib/cloudsmith-api/models/repository_token.rb +9 -13
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +8 -12
- data/lib/cloudsmith-api/models/repository_token_sync.rb +8 -12
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +8 -12
- data/lib/cloudsmith-api/models/repository_webhook.rb +11 -15
- data/lib/cloudsmith-api/models/resources_rate_check.rb +8 -12
- data/lib/cloudsmith-api/models/status.rb +9 -13
- data/lib/cloudsmith-api/models/status_basic.rb +8 -12
- data/lib/cloudsmith-api/models/storage_region.rb +10 -14
- data/lib/cloudsmith-api/models/user_auth_token.rb +8 -12
- data/lib/cloudsmith-api/models/user_brief.rb +8 -12
- data/lib/cloudsmith-api/models/user_profile.rb +10 -14
- data/lib/cloudsmith-api/models/user_token_create.rb +8 -12
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +11 -15
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +12 -16
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +11 -15
- data/lib/cloudsmith-api/models/webhooks_create.rb +11 -15
- data/lib/cloudsmith-api/models/webhooks_partial_update.rb +8 -12
- data/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb +8 -12
- data/lib/cloudsmith-api/version.rb +2 -2
- data/lib/cloudsmith-api.rb +2 -2
- data/spec/api/badges_api_spec.rb +3 -3
- data/spec/api/distros_api_spec.rb +3 -3
- data/spec/api/entitlements_api_spec.rb +11 -11
- data/spec/api/files_api_spec.rb +6 -6
- data/spec/api/formats_api_spec.rb +3 -3
- data/spec/api/metrics_api_spec.rb +4 -4
- data/spec/api/namespaces_api_spec.rb +3 -3
- data/spec/api/orgs_api_spec.rb +6 -6
- data/spec/api/packages_api_spec.rb +57 -57
- data/spec/api/quota_api_spec.rb +5 -5
- data/spec/api/rates_api_spec.rb +2 -2
- data/spec/api/repos_api_spec.rb +7 -7
- data/spec/api/status_api_spec.rb +2 -2
- data/spec/api/{storageregions_api_spec.rb → storage_regions_api_spec.rb} +9 -9
- data/spec/api/user_api_spec.rb +3 -3
- data/spec/api/users_api_spec.rb +2 -2
- data/spec/api/vulnerabilities_api_spec.rb +5 -5
- data/spec/api/webhooks_api_spec.rb +6 -6
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/alpine_package_upload_spec.rb +65 -66
- data/spec/models/conan_package_upload_spec.rb +67 -68
- data/spec/models/distribution_spec.rb +8 -9
- data/spec/models/distros_versions_spec.rb +3 -4
- data/spec/models/entitlement_usage_metrics_spec.rb +2 -3
- data/spec/models/entitlements_create_spec.rb +16 -17
- data/spec/models/entitlements_partial_update_spec.rb +16 -17
- data/spec/models/entitlements_refresh_spec.rb +15 -16
- data/spec/models/entitlements_sync_spec.rb +2 -3
- data/spec/models/files_abort_spec.rb +5 -6
- data/spec/models/files_complete_spec.rb +5 -6
- data/spec/models/files_create_spec.rb +5 -6
- data/spec/models/files_validate_spec.rb +5 -6
- data/spec/models/format_spec.rb +10 -11
- data/spec/models/formats_distributions_spec.rb +5 -6
- data/spec/models/maven_package_upload_spec.rb +68 -69
- data/spec/models/namespace_spec.rb +5 -6
- data/spec/models/organization_membership_spec.rb +11 -12
- data/spec/models/organization_spec.rb +8 -9
- data/spec/models/package_copy_spec.rb +66 -67
- data/spec/models/package_dependencies_dependencies_spec.rb +5 -6
- data/spec/models/package_dependencies_spec.rb +2 -3
- data/spec/models/package_file_parts_upload_spec.rb +4 -5
- data/spec/models/package_file_upload_spec.rb +6 -7
- data/spec/models/package_move_spec.rb +66 -67
- data/spec/models/package_spec.rb +66 -67
- data/spec/models/package_status_spec.rb +16 -17
- data/spec/models/package_usage_metrics_spec.rb +2 -3
- data/spec/models/packages_copy_spec.rb +3 -4
- data/spec/models/packages_move_spec.rb +2 -3
- data/spec/models/packages_tag_spec.rb +4 -5
- data/spec/models/packages_upload_alpine_spec.rb +5 -6
- data/spec/models/packages_upload_cargo_spec.rb +4 -5
- data/spec/models/packages_upload_cocoapods_spec.rb +4 -5
- data/spec/models/packages_upload_composer_spec.rb +4 -5
- data/spec/models/packages_upload_conan_spec.rb +11 -12
- data/spec/models/packages_upload_conda_spec.rb +4 -5
- data/spec/models/packages_upload_cran_spec.rb +4 -5
- data/spec/models/packages_upload_dart_spec.rb +4 -5
- data/spec/models/packages_upload_deb_spec.rb +7 -8
- data/spec/models/packages_upload_docker_spec.rb +4 -5
- data/spec/models/packages_upload_go_spec.rb +4 -5
- data/spec/models/packages_upload_helm_spec.rb +4 -5
- data/spec/models/packages_upload_luarocks_spec.rb +4 -5
- data/spec/models/packages_upload_maven_spec.rb +12 -13
- data/spec/models/packages_upload_npm_spec.rb +5 -6
- data/spec/models/packages_upload_nuget_spec.rb +5 -6
- data/spec/models/packages_upload_p2_spec.rb +4 -5
- data/spec/models/packages_upload_python_spec.rb +4 -5
- data/spec/models/packages_upload_raw_spec.rb +9 -10
- data/spec/models/packages_upload_rpm_spec.rb +5 -6
- data/spec/models/packages_upload_ruby_spec.rb +4 -5
- data/spec/models/packages_upload_terraform_spec.rb +4 -5
- data/spec/models/packages_upload_vagrant_spec.rb +7 -8
- data/spec/models/packages_validateupload_alpine_spec.rb +5 -6
- data/spec/models/packages_validateupload_cargo_spec.rb +4 -5
- data/spec/models/packages_validateupload_cocoapods_spec.rb +4 -5
- data/spec/models/packages_validateupload_composer_spec.rb +4 -5
- data/spec/models/packages_validateupload_conan_spec.rb +11 -12
- data/spec/models/packages_validateupload_conda_spec.rb +4 -5
- data/spec/models/packages_validateupload_cran_spec.rb +4 -5
- data/spec/models/packages_validateupload_dart_spec.rb +4 -5
- data/spec/models/packages_validateupload_deb_spec.rb +7 -8
- data/spec/models/packages_validateupload_docker_spec.rb +4 -5
- data/spec/models/packages_validateupload_go_spec.rb +4 -5
- data/spec/models/packages_validateupload_helm_spec.rb +4 -5
- data/spec/models/packages_validateupload_luarocks_spec.rb +4 -5
- data/spec/models/packages_validateupload_maven_spec.rb +12 -13
- data/spec/models/packages_validateupload_npm_spec.rb +5 -6
- data/spec/models/packages_validateupload_nuget_spec.rb +5 -6
- data/spec/models/packages_validateupload_p2_spec.rb +4 -5
- data/spec/models/packages_validateupload_python_spec.rb +4 -5
- data/spec/models/packages_validateupload_raw_spec.rb +9 -10
- data/spec/models/packages_validateupload_rpm_spec.rb +5 -6
- data/spec/models/packages_validateupload_ruby_spec.rb +4 -5
- data/spec/models/packages_validateupload_terraform_spec.rb +4 -5
- data/spec/models/packages_validateupload_vagrant_spec.rb +7 -8
- data/spec/models/packagesownerrepo_architectures_spec.rb +3 -4
- data/spec/models/packagesownerrepo_files_spec.rb +15 -16
- data/spec/models/quota_history_history_spec.rb +7 -8
- data/spec/models/quota_history_spec.rb +2 -3
- data/spec/models/quota_spec.rb +2 -3
- data/spec/models/raw_package_upload_spec.rb +65 -66
- data/spec/models/repos_create_spec.rb +7 -8
- data/spec/models/repos_gpg_keys_spec.rb +8 -9
- data/spec/models/repos_partial_update_spec.rb +6 -7
- data/spec/models/repository_spec.rb +25 -26
- data/spec/models/repository_token_refresh_spec.rb +40 -41
- data/spec/models/repository_token_spec.rb +40 -41
- data/spec/models/repository_token_sync_spec.rb +2 -3
- data/spec/models/repository_token_sync_tokens_spec.rb +40 -41
- data/spec/models/repository_webhook_spec.rb +28 -29
- data/spec/models/resources_rate_check_spec.rb +2 -3
- data/spec/models/status_basic_spec.rb +3 -4
- data/spec/models/status_spec.rb +2 -3
- data/spec/models/storage_region_spec.rb +3 -4
- data/spec/models/user_auth_token_spec.rb +2 -3
- data/spec/models/user_brief_spec.rb +8 -9
- data/spec/models/user_profile_spec.rb +11 -12
- data/spec/models/user_token_create_spec.rb +3 -4
- data/spec/models/vagrant_package_upload_spec.rb +66 -67
- data/spec/models/vulnerability_scan_results_list_spec.rb +8 -9
- data/spec/models/vulnerability_scan_results_spec.rb +9 -10
- data/spec/models/webhooks_create_spec.rb +13 -14
- data/spec/models/webhooks_partial_update_spec.rb +13 -14
- data/spec/models/webhooksownerrepo_templates_spec.rb +3 -4
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/cache/rake-12.3.3.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 +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/CONTRIBUTING.rdoc +11 -4
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/History.rdoc +107 -10
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/MIT-LICENSE +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/README.rdoc +7 -7
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/Rakefile +7 -4
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/azure-pipelines.yml +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/bundle +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/bin/console +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rake +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rdoc +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rubocop +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/command_line_usage.rdoc +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/Rakefile1 +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/Rakefile2 +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/a.c +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/b.c +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/main.c +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/glossary.rdoc +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/jamis.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/proto_rake.rdoc +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rake.1 +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rakefile.rdoc +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rational.rdoc +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/exe/rake +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/application.rb +54 -15
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/backtrace.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/clean.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/cloneable.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/cpu_counter.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/default_loader.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/dsl_definition.rb +4 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/early_time.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/ext/core.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/ext/string.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_creation_task.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_list.rb +5 -4
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_task.rb +11 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_utils.rb +4 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_utils_ext.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/invocation_chain.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/invocation_exception_mixin.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/late_time.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/linked_list.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/loaders/makefile.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/name_space.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/packagetask.rb +3 -6
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/phony.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/private_reader.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/promise.rb +3 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/pseudo_status.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/rake_module.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/rule_recursion_overflow_error.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/scope.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task.rb +37 -14
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_argument_error.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_arguments.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_manager.rb +28 -7
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/tasklib.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/testtask.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/thread_history_display.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/thread_pool.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/trace_output.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/version.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/win32.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/rake.gemspec +6 -3
- data/vendor/bundle/ruby/2.6.0/specifications/{rake-12.0.0.gemspec → rake-12.3.3.gemspec} +10 -4
- metadata +98 -76
- data/vendor/bundle/ruby/2.6.0/cache/rake-12.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.gitignore +0 -14
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.rubocop.yml +0 -57
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.travis.yml +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/appveyor.yml +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/multi_task.rb +0 -49
- data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +0 -21
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackageMove
|
|
18
17
|
#
|
|
19
18
|
attr_accessor :architectures
|
|
@@ -210,7 +209,6 @@ module CloudsmithApi
|
|
|
210
209
|
#
|
|
211
210
|
attr_accessor :vulnerability_scan_results_url
|
|
212
211
|
|
|
213
|
-
|
|
214
212
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
215
213
|
def self.attribute_map
|
|
216
214
|
{
|
|
@@ -359,7 +357,7 @@ module CloudsmithApi
|
|
|
359
357
|
return unless attributes.is_a?(Hash)
|
|
360
358
|
|
|
361
359
|
# convert string to symbol for hash key
|
|
362
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
360
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
363
361
|
|
|
364
362
|
if attributes.has_key?(:'architectures')
|
|
365
363
|
if (value = attributes[:'architectures']).is_a?(Array)
|
|
@@ -624,20 +622,19 @@ module CloudsmithApi
|
|
|
624
622
|
if attributes.has_key?(:'vulnerability_scan_results_url')
|
|
625
623
|
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
|
626
624
|
end
|
|
627
|
-
|
|
628
625
|
end
|
|
629
626
|
|
|
630
627
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
631
|
-
# @return Array for valid
|
|
628
|
+
# @return Array for valid properties with the reasons
|
|
632
629
|
def list_invalid_properties
|
|
633
630
|
invalid_properties = Array.new
|
|
634
|
-
|
|
631
|
+
invalid_properties
|
|
635
632
|
end
|
|
636
633
|
|
|
637
634
|
# Check to see if the all the properties in the model are valid
|
|
638
635
|
# @return true if the model is valid
|
|
639
636
|
def valid?
|
|
640
|
-
|
|
637
|
+
true
|
|
641
638
|
end
|
|
642
639
|
|
|
643
640
|
# Checks equality by comparing each attribute.
|
|
@@ -731,10 +728,10 @@ module CloudsmithApi
|
|
|
731
728
|
return nil unless attributes.is_a?(Hash)
|
|
732
729
|
self.class.swagger_types.each_pair do |key, type|
|
|
733
730
|
if type =~ /\AArray<(.*)>/i
|
|
734
|
-
# check to ensure the input is an array given that the
|
|
731
|
+
# check to ensure the input is an array given that the attribute
|
|
735
732
|
# is documented as an array but the input is not
|
|
736
733
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
737
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
734
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
738
735
|
end
|
|
739
736
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
740
737
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -816,7 +813,7 @@ module CloudsmithApi
|
|
|
816
813
|
# @return [Hash] Returns the value in the form of hash
|
|
817
814
|
def _to_hash(value)
|
|
818
815
|
if value.is_a?(Array)
|
|
819
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
816
|
+
value.compact.map { |v| _to_hash(v) }
|
|
820
817
|
elsif value.is_a?(Hash)
|
|
821
818
|
{}.tap do |hash|
|
|
822
819
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -829,5 +826,4 @@ module CloudsmithApi
|
|
|
829
826
|
end
|
|
830
827
|
|
|
831
828
|
end
|
|
832
|
-
|
|
833
829
|
end
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackageStatus
|
|
18
17
|
#
|
|
19
18
|
attr_accessor :is_sync_awaiting
|
|
@@ -60,7 +59,6 @@ module CloudsmithApi
|
|
|
60
59
|
# Synchronisation progress (from 0-100)
|
|
61
60
|
attr_accessor :sync_progress
|
|
62
61
|
|
|
63
|
-
|
|
64
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
65
63
|
def self.attribute_map
|
|
66
64
|
{
|
|
@@ -109,7 +107,7 @@ module CloudsmithApi
|
|
|
109
107
|
return unless attributes.is_a?(Hash)
|
|
110
108
|
|
|
111
109
|
# convert string to symbol for hash key
|
|
112
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
110
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
113
111
|
|
|
114
112
|
if attributes.has_key?(:'is_sync_awaiting')
|
|
115
113
|
self.is_sync_awaiting = attributes[:'is_sync_awaiting']
|
|
@@ -170,20 +168,19 @@ module CloudsmithApi
|
|
|
170
168
|
if attributes.has_key?(:'sync_progress')
|
|
171
169
|
self.sync_progress = attributes[:'sync_progress']
|
|
172
170
|
end
|
|
173
|
-
|
|
174
171
|
end
|
|
175
172
|
|
|
176
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
177
|
-
# @return Array for valid
|
|
174
|
+
# @return Array for valid properties with the reasons
|
|
178
175
|
def list_invalid_properties
|
|
179
176
|
invalid_properties = Array.new
|
|
180
|
-
|
|
177
|
+
invalid_properties
|
|
181
178
|
end
|
|
182
179
|
|
|
183
180
|
# Check to see if the all the properties in the model are valid
|
|
184
181
|
# @return true if the model is valid
|
|
185
182
|
def valid?
|
|
186
|
-
|
|
183
|
+
true
|
|
187
184
|
end
|
|
188
185
|
|
|
189
186
|
# Checks equality by comparing each attribute.
|
|
@@ -227,10 +224,10 @@ module CloudsmithApi
|
|
|
227
224
|
return nil unless attributes.is_a?(Hash)
|
|
228
225
|
self.class.swagger_types.each_pair do |key, type|
|
|
229
226
|
if type =~ /\AArray<(.*)>/i
|
|
230
|
-
# check to ensure the input is an array given that the
|
|
227
|
+
# check to ensure the input is an array given that the attribute
|
|
231
228
|
# is documented as an array but the input is not
|
|
232
229
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
233
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
230
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
234
231
|
end
|
|
235
232
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
236
233
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -312,7 +309,7 @@ module CloudsmithApi
|
|
|
312
309
|
# @return [Hash] Returns the value in the form of hash
|
|
313
310
|
def _to_hash(value)
|
|
314
311
|
if value.is_a?(Array)
|
|
315
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
312
|
+
value.compact.map { |v| _to_hash(v) }
|
|
316
313
|
elsif value.is_a?(Hash)
|
|
317
314
|
{}.tap do |hash|
|
|
318
315
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -325,5 +322,4 @@ module CloudsmithApi
|
|
|
325
322
|
end
|
|
326
323
|
|
|
327
324
|
end
|
|
328
|
-
|
|
329
325
|
end
|
|
@@ -6,19 +6,17 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackageUsageMetrics
|
|
18
17
|
#
|
|
19
18
|
attr_accessor :packages
|
|
20
19
|
|
|
21
|
-
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
21
|
def self.attribute_map
|
|
24
22
|
{
|
|
@@ -39,30 +37,29 @@ module CloudsmithApi
|
|
|
39
37
|
return unless attributes.is_a?(Hash)
|
|
40
38
|
|
|
41
39
|
# convert string to symbol for hash key
|
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
41
|
|
|
44
42
|
if attributes.has_key?(:'packages')
|
|
45
43
|
self.packages = attributes[:'packages']
|
|
46
44
|
end
|
|
47
|
-
|
|
48
45
|
end
|
|
49
46
|
|
|
50
47
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
51
|
-
# @return Array for valid
|
|
48
|
+
# @return Array for valid properties with the reasons
|
|
52
49
|
def list_invalid_properties
|
|
53
50
|
invalid_properties = Array.new
|
|
54
51
|
if @packages.nil?
|
|
55
|
-
invalid_properties.push(
|
|
52
|
+
invalid_properties.push('invalid value for "packages", packages cannot be nil.')
|
|
56
53
|
end
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
invalid_properties
|
|
59
56
|
end
|
|
60
57
|
|
|
61
58
|
# Check to see if the all the properties in the model are valid
|
|
62
59
|
# @return true if the model is valid
|
|
63
60
|
def valid?
|
|
64
61
|
return false if @packages.nil?
|
|
65
|
-
|
|
62
|
+
true
|
|
66
63
|
end
|
|
67
64
|
|
|
68
65
|
# Checks equality by comparing each attribute.
|
|
@@ -92,10 +89,10 @@ module CloudsmithApi
|
|
|
92
89
|
return nil unless attributes.is_a?(Hash)
|
|
93
90
|
self.class.swagger_types.each_pair do |key, type|
|
|
94
91
|
if type =~ /\AArray<(.*)>/i
|
|
95
|
-
# check to ensure the input is an array given that the
|
|
92
|
+
# check to ensure the input is an array given that the attribute
|
|
96
93
|
# is documented as an array but the input is not
|
|
97
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
95
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
99
96
|
end
|
|
100
97
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
101
98
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -177,7 +174,7 @@ module CloudsmithApi
|
|
|
177
174
|
# @return [Hash] Returns the value in the form of hash
|
|
178
175
|
def _to_hash(value)
|
|
179
176
|
if value.is_a?(Array)
|
|
180
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
177
|
+
value.compact.map { |v| _to_hash(v) }
|
|
181
178
|
elsif value.is_a?(Hash)
|
|
182
179
|
{}.tap do |hash|
|
|
183
180
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -190,5 +187,4 @@ module CloudsmithApi
|
|
|
190
187
|
end
|
|
191
188
|
|
|
192
189
|
end
|
|
193
|
-
|
|
194
190
|
end
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackagesCopy
|
|
18
17
|
# None
|
|
19
18
|
attr_accessor :destination
|
|
@@ -21,7 +20,6 @@ module CloudsmithApi
|
|
|
21
20
|
# If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
|
|
22
21
|
attr_accessor :republish
|
|
23
22
|
|
|
24
|
-
|
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
24
|
def self.attribute_map
|
|
27
25
|
{
|
|
@@ -44,7 +42,7 @@ module CloudsmithApi
|
|
|
44
42
|
return unless attributes.is_a?(Hash)
|
|
45
43
|
|
|
46
44
|
# convert string to symbol for hash key
|
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
48
46
|
|
|
49
47
|
if attributes.has_key?(:'destination')
|
|
50
48
|
self.destination = attributes[:'destination']
|
|
@@ -53,25 +51,24 @@ module CloudsmithApi
|
|
|
53
51
|
if attributes.has_key?(:'republish')
|
|
54
52
|
self.republish = attributes[:'republish']
|
|
55
53
|
end
|
|
56
|
-
|
|
57
54
|
end
|
|
58
55
|
|
|
59
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
60
|
-
# @return Array for valid
|
|
57
|
+
# @return Array for valid properties with the reasons
|
|
61
58
|
def list_invalid_properties
|
|
62
59
|
invalid_properties = Array.new
|
|
63
60
|
if @destination.nil?
|
|
64
|
-
invalid_properties.push(
|
|
61
|
+
invalid_properties.push('invalid value for "destination", destination cannot be nil.')
|
|
65
62
|
end
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
invalid_properties
|
|
68
65
|
end
|
|
69
66
|
|
|
70
67
|
# Check to see if the all the properties in the model are valid
|
|
71
68
|
# @return true if the model is valid
|
|
72
69
|
def valid?
|
|
73
70
|
return false if @destination.nil?
|
|
74
|
-
|
|
71
|
+
true
|
|
75
72
|
end
|
|
76
73
|
|
|
77
74
|
# Checks equality by comparing each attribute.
|
|
@@ -102,10 +99,10 @@ module CloudsmithApi
|
|
|
102
99
|
return nil unless attributes.is_a?(Hash)
|
|
103
100
|
self.class.swagger_types.each_pair do |key, type|
|
|
104
101
|
if type =~ /\AArray<(.*)>/i
|
|
105
|
-
# check to ensure the input is an array given that the
|
|
102
|
+
# check to ensure the input is an array given that the attribute
|
|
106
103
|
# is documented as an array but the input is not
|
|
107
104
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
108
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
105
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
109
106
|
end
|
|
110
107
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
111
108
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -187,7 +184,7 @@ module CloudsmithApi
|
|
|
187
184
|
# @return [Hash] Returns the value in the form of hash
|
|
188
185
|
def _to_hash(value)
|
|
189
186
|
if value.is_a?(Array)
|
|
190
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
187
|
+
value.compact.map { |v| _to_hash(v) }
|
|
191
188
|
elsif value.is_a?(Hash)
|
|
192
189
|
{}.tap do |hash|
|
|
193
190
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -200,5 +197,4 @@ module CloudsmithApi
|
|
|
200
197
|
end
|
|
201
198
|
|
|
202
199
|
end
|
|
203
|
-
|
|
204
200
|
end
|
|
@@ -6,19 +6,17 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackagesMove
|
|
18
17
|
# None
|
|
19
18
|
attr_accessor :destination
|
|
20
19
|
|
|
21
|
-
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
21
|
def self.attribute_map
|
|
24
22
|
{
|
|
@@ -39,30 +37,29 @@ module CloudsmithApi
|
|
|
39
37
|
return unless attributes.is_a?(Hash)
|
|
40
38
|
|
|
41
39
|
# convert string to symbol for hash key
|
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
41
|
|
|
44
42
|
if attributes.has_key?(:'destination')
|
|
45
43
|
self.destination = attributes[:'destination']
|
|
46
44
|
end
|
|
47
|
-
|
|
48
45
|
end
|
|
49
46
|
|
|
50
47
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
51
|
-
# @return Array for valid
|
|
48
|
+
# @return Array for valid properties with the reasons
|
|
52
49
|
def list_invalid_properties
|
|
53
50
|
invalid_properties = Array.new
|
|
54
51
|
if @destination.nil?
|
|
55
|
-
invalid_properties.push(
|
|
52
|
+
invalid_properties.push('invalid value for "destination", destination cannot be nil.')
|
|
56
53
|
end
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
invalid_properties
|
|
59
56
|
end
|
|
60
57
|
|
|
61
58
|
# Check to see if the all the properties in the model are valid
|
|
62
59
|
# @return true if the model is valid
|
|
63
60
|
def valid?
|
|
64
61
|
return false if @destination.nil?
|
|
65
|
-
|
|
62
|
+
true
|
|
66
63
|
end
|
|
67
64
|
|
|
68
65
|
# Checks equality by comparing each attribute.
|
|
@@ -92,10 +89,10 @@ module CloudsmithApi
|
|
|
92
89
|
return nil unless attributes.is_a?(Hash)
|
|
93
90
|
self.class.swagger_types.each_pair do |key, type|
|
|
94
91
|
if type =~ /\AArray<(.*)>/i
|
|
95
|
-
# check to ensure the input is an array given that the
|
|
92
|
+
# check to ensure the input is an array given that the attribute
|
|
96
93
|
# is documented as an array but the input is not
|
|
97
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
95
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
99
96
|
end
|
|
100
97
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
101
98
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -177,7 +174,7 @@ module CloudsmithApi
|
|
|
177
174
|
# @return [Hash] Returns the value in the form of hash
|
|
178
175
|
def _to_hash(value)
|
|
179
176
|
if value.is_a?(Array)
|
|
180
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
177
|
+
value.compact.map { |v| _to_hash(v) }
|
|
181
178
|
elsif value.is_a?(Hash)
|
|
182
179
|
{}.tap do |hash|
|
|
183
180
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -190,5 +187,4 @@ module CloudsmithApi
|
|
|
190
187
|
end
|
|
191
188
|
|
|
192
189
|
end
|
|
193
|
-
|
|
194
190
|
end
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackagesTag
|
|
18
17
|
# None
|
|
19
18
|
attr_accessor :action
|
|
@@ -24,7 +23,6 @@ module CloudsmithApi
|
|
|
24
23
|
# A list of tags to apply the action to. Not required for clears.
|
|
25
24
|
attr_accessor :tags
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
27
|
def self.attribute_map
|
|
30
28
|
{
|
|
@@ -49,7 +47,7 @@ module CloudsmithApi
|
|
|
49
47
|
return unless attributes.is_a?(Hash)
|
|
50
48
|
|
|
51
49
|
# convert string to symbol for hash key
|
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
53
51
|
|
|
54
52
|
if attributes.has_key?(:'action')
|
|
55
53
|
self.action = attributes[:'action']
|
|
@@ -64,20 +62,19 @@ module CloudsmithApi
|
|
|
64
62
|
self.tags = value
|
|
65
63
|
end
|
|
66
64
|
end
|
|
67
|
-
|
|
68
65
|
end
|
|
69
66
|
|
|
70
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
71
|
-
# @return Array for valid
|
|
68
|
+
# @return Array for valid properties with the reasons
|
|
72
69
|
def list_invalid_properties
|
|
73
70
|
invalid_properties = Array.new
|
|
74
|
-
|
|
71
|
+
invalid_properties
|
|
75
72
|
end
|
|
76
73
|
|
|
77
74
|
# Check to see if the all the properties in the model are valid
|
|
78
75
|
# @return true if the model is valid
|
|
79
76
|
def valid?
|
|
80
|
-
|
|
77
|
+
true
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
# Checks equality by comparing each attribute.
|
|
@@ -109,10 +106,10 @@ module CloudsmithApi
|
|
|
109
106
|
return nil unless attributes.is_a?(Hash)
|
|
110
107
|
self.class.swagger_types.each_pair do |key, type|
|
|
111
108
|
if type =~ /\AArray<(.*)>/i
|
|
112
|
-
# check to ensure the input is an array given that the
|
|
109
|
+
# check to ensure the input is an array given that the attribute
|
|
113
110
|
# is documented as an array but the input is not
|
|
114
111
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
115
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
116
113
|
end
|
|
117
114
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
118
115
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -194,7 +191,7 @@ module CloudsmithApi
|
|
|
194
191
|
# @return [Hash] Returns the value in the form of hash
|
|
195
192
|
def _to_hash(value)
|
|
196
193
|
if value.is_a?(Array)
|
|
197
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
|
198
195
|
elsif value.is_a?(Hash)
|
|
199
196
|
{}.tap do |hash|
|
|
200
197
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -207,5 +204,4 @@ module CloudsmithApi
|
|
|
207
204
|
end
|
|
208
205
|
|
|
209
206
|
end
|
|
210
|
-
|
|
211
207
|
end
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
Contact: support@cloudsmith.io
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.
|
|
9
|
+
Swagger Codegen version: 2.4.26
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudsmithApi
|
|
16
|
-
|
|
17
16
|
class PackagesUploadAlpine
|
|
18
17
|
# The distribution to store the package for.
|
|
19
18
|
attr_accessor :distribution
|
|
@@ -27,7 +26,6 @@ module CloudsmithApi
|
|
|
27
26
|
# A comma-separated values list of tags to add to the package.
|
|
28
27
|
attr_accessor :tags
|
|
29
28
|
|
|
30
|
-
|
|
31
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
30
|
def self.attribute_map
|
|
33
31
|
{
|
|
@@ -54,7 +52,7 @@ module CloudsmithApi
|
|
|
54
52
|
return unless attributes.is_a?(Hash)
|
|
55
53
|
|
|
56
54
|
# convert string to symbol for hash key
|
|
57
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
58
56
|
|
|
59
57
|
if attributes.has_key?(:'distribution')
|
|
60
58
|
self.distribution = attributes[:'distribution']
|
|
@@ -71,22 +69,21 @@ module CloudsmithApi
|
|
|
71
69
|
if attributes.has_key?(:'tags')
|
|
72
70
|
self.tags = attributes[:'tags']
|
|
73
71
|
end
|
|
74
|
-
|
|
75
72
|
end
|
|
76
73
|
|
|
77
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
-
# @return Array for valid
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
79
76
|
def list_invalid_properties
|
|
80
77
|
invalid_properties = Array.new
|
|
81
78
|
if @distribution.nil?
|
|
82
|
-
invalid_properties.push(
|
|
79
|
+
invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
|
|
83
80
|
end
|
|
84
81
|
|
|
85
82
|
if @package_file.nil?
|
|
86
|
-
invalid_properties.push(
|
|
83
|
+
invalid_properties.push('invalid value for "package_file", package_file cannot be nil.')
|
|
87
84
|
end
|
|
88
85
|
|
|
89
|
-
|
|
86
|
+
invalid_properties
|
|
90
87
|
end
|
|
91
88
|
|
|
92
89
|
# Check to see if the all the properties in the model are valid
|
|
@@ -94,7 +91,7 @@ module CloudsmithApi
|
|
|
94
91
|
def valid?
|
|
95
92
|
return false if @distribution.nil?
|
|
96
93
|
return false if @package_file.nil?
|
|
97
|
-
|
|
94
|
+
true
|
|
98
95
|
end
|
|
99
96
|
|
|
100
97
|
# Checks equality by comparing each attribute.
|
|
@@ -127,10 +124,10 @@ module CloudsmithApi
|
|
|
127
124
|
return nil unless attributes.is_a?(Hash)
|
|
128
125
|
self.class.swagger_types.each_pair do |key, type|
|
|
129
126
|
if type =~ /\AArray<(.*)>/i
|
|
130
|
-
# check to ensure the input is an array given that the
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
131
128
|
# is documented as an array but the input is not
|
|
132
129
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
134
131
|
end
|
|
135
132
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
133
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -212,7 +209,7 @@ module CloudsmithApi
|
|
|
212
209
|
# @return [Hash] Returns the value in the form of hash
|
|
213
210
|
def _to_hash(value)
|
|
214
211
|
if value.is_a?(Array)
|
|
215
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
|
216
213
|
elsif value.is_a?(Hash)
|
|
217
214
|
{}.tap do |hash|
|
|
218
215
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -225,5 +222,4 @@ module CloudsmithApi
|
|
|
225
222
|
end
|
|
226
223
|
|
|
227
224
|
end
|
|
228
|
-
|
|
229
225
|
end
|