cloudsmith-api 0.52.92 → 0.53.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -5
- data/README.md +18 -16
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +2 -1
- data/docs/BadgesApi.md +1 -6
- data/docs/ConanPackageUpload.md +2 -1
- data/docs/DistrosApi.md +2 -12
- data/docs/EntitlementUsageMetric.md +8 -0
- data/docs/EntitlementsApi.md +10 -60
- data/docs/EntitlementsCreate.md +4 -0
- data/docs/EntitlementsPartialUpdate.md +4 -0
- data/docs/EntitlementsRefresh.md +4 -0
- data/docs/FilesApi.md +5 -30
- data/docs/FormatsApi.md +2 -12
- data/docs/MavenPackageUpload.md +2 -1
- data/docs/MetricsApi.md +4 -14
- data/docs/NamespacesApi.md +2 -12
- data/docs/OrgsApi.md +2 -12
- data/docs/Package.md +2 -1
- data/docs/PackageCopy.md +2 -1
- data/docs/PackageMove.md +2 -1
- data/docs/PackagesApi.md +50 -300
- data/docs/Quota.md +8 -0
- data/docs/QuotaApi.md +228 -0
- data/docs/QuotaHistory.md +8 -0
- data/docs/QuotaHistoryHistory.md +13 -0
- data/docs/RatesApi.md +1 -6
- data/docs/RawPackageUpload.md +2 -1
- data/docs/ReposApi.md +6 -36
- data/docs/RepositoryToken.md +9 -0
- data/docs/RepositoryTokenRefresh.md +9 -0
- data/docs/RepositoryTokenSyncTokens.md +9 -0
- data/docs/StorageregionsApi.md +2 -12
- data/docs/UserApi.md +2 -12
- data/docs/UsersApi.md +1 -6
- data/docs/VagrantPackageUpload.md +2 -1
- data/docs/VulnerabilitiesApi.md +264 -0
- data/docs/VulnerabilityScanResults.md +15 -0
- data/docs/VulnerabilityScanResultsList.md +14 -0
- data/docs/WebhooksApi.md +5 -30
- data/lib/cloudsmith-api.rb +8 -1
- data/lib/cloudsmith-api/api/badges_api.rb +1 -1
- data/lib/cloudsmith-api/api/distros_api.rb +2 -2
- data/lib/cloudsmith-api/api/entitlements_api.rb +10 -10
- data/lib/cloudsmith-api/api/files_api.rb +5 -5
- data/lib/cloudsmith-api/api/formats_api.rb +2 -2
- data/lib/cloudsmith-api/api/metrics_api.rb +5 -5
- data/lib/cloudsmith-api/api/namespaces_api.rb +2 -2
- data/lib/cloudsmith-api/api/orgs_api.rb +2 -2
- data/lib/cloudsmith-api/api/packages_api.rb +50 -50
- data/lib/cloudsmith-api/api/quota_api.rb +227 -0
- data/lib/cloudsmith-api/api/rates_api.rb +1 -1
- data/lib/cloudsmith-api/api/repos_api.rb +6 -6
- data/lib/cloudsmith-api/api/storageregions_api.rb +2 -2
- data/lib/cloudsmith-api/api/user_api.rb +2 -2
- data/lib/cloudsmith-api/api/users_api.rb +1 -1
- data/lib/cloudsmith-api/api/vulnerabilities_api.rb +281 -0
- data/lib/cloudsmith-api/api/webhooks_api.rb +5 -5
- data/lib/cloudsmith-api/configuration.rb +0 -7
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/conan_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/{entitlement_token_metric.rb → entitlement_usage_metric.rb} +11 -26
- data/lib/cloudsmith-api/models/entitlements_create.rb +41 -1
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +41 -1
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +41 -1
- data/lib/cloudsmith-api/models/maven_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/package.rb +15 -5
- data/lib/cloudsmith-api/models/package_copy.rb +15 -5
- data/lib/cloudsmith-api/models/package_move.rb +15 -5
- data/lib/cloudsmith-api/models/quota.rb +194 -0
- data/lib/cloudsmith-api/models/quota_history.rb +196 -0
- data/lib/cloudsmith-api/models/quota_history_history.rb +239 -0
- data/lib/cloudsmith-api/models/raw_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/repository_token.rb +91 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +91 -1
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +91 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +279 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +264 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/metrics_api_spec.rb +1 -1
- data/spec/api/quota_api_spec.rb +83 -0
- data/spec/api/vulnerabilities_api_spec.rb +95 -0
- data/spec/models/alpine_package_upload_spec.rb +6 -0
- data/spec/models/conan_package_upload_spec.rb +6 -0
- data/spec/models/{entitlement_token_metric_spec.rb → entitlement_usage_metric_spec.rb} +7 -13
- data/spec/models/entitlements_create_spec.rb +24 -0
- data/spec/models/entitlements_partial_update_spec.rb +24 -0
- data/spec/models/entitlements_refresh_spec.rb +24 -0
- data/spec/models/maven_package_upload_spec.rb +6 -0
- data/spec/models/package_copy_spec.rb +6 -0
- data/spec/models/package_move_spec.rb +6 -0
- data/spec/models/package_spec.rb +6 -0
- data/spec/models/quota_history_history_spec.rb +72 -0
- data/spec/models/quota_history_spec.rb +42 -0
- data/spec/models/quota_spec.rb +42 -0
- data/spec/models/raw_package_upload_spec.rb +6 -0
- data/spec/models/repository_token_refresh_spec.rb +54 -0
- data/spec/models/repository_token_spec.rb +54 -0
- data/spec/models/repository_token_sync_tokens_spec.rb +54 -0
- data/spec/models/vagrant_package_upload_spec.rb +6 -0
- data/spec/models/vulnerability_scan_results_list_spec.rb +78 -0
- data/spec/models/vulnerability_scan_results_spec.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/json.rb +5 -18
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/util.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.4/lib/crack/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/xml.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/Changelog.md +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/README.md +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/exe/rspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/autorun.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/backtrace_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/coordinator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/fork_runner.rb +6 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/server.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/shell_command.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/shell_runner.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/utilities.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/configuration.rb +10 -7
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/configuration_options.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/did_you_mean.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/drb.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/dsl.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example.rb +10 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example_group.rb +2 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example_status_persister.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/filter_manager.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/flat_map.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/console_codes.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/exception_presenter.rb +10 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/helpers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_printer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/json_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/protocol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/hooks.rb +14 -9
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/invocations.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/memoized_helpers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/metadata.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/metadata_filter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/null.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/notifications.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/option_parser.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/ordering.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/output_wrapper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/pending.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer/.rspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/rake_task.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/reporter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/ruby_project.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/runner.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/sandbox.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/set.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shared_context.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shared_example_group.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shell_escape.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/warnings.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/world.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{crack-0.4.3.gemspec → crack-0.4.4.gemspec} +3 -15
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-core-3.9.2.gemspec → rspec-core-3.9.3.gemspec} +5 -5
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
- metadata +213 -260
- data/docs/EntitlementTokenMetric.md +0 -9
- data/vendor/bundle/ruby/2.6.0/bin/safe_yaml +0 -27
- data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/safe_yaml-1.0.5.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.gitignore +0 -8
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.travis.yml +0 -14
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/Gemfile +0 -5
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/History +0 -25
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/LICENSE +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/README.md +0 -46
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/crack.gemspec +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/lib/crack/version.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/bootstrap +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/release +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/test +0 -25
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/large_dataset.json +0 -139988
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-firefox.json +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-ie.json +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/hash_test.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/json_test.rb +0 -91
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/parser_test.rb +0 -27
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/string_test.rb +0 -31
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/test_helper.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/xml_test.rb +0 -514
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.gitignore +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.travis.yml +0 -48
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/CHANGES.md +0 -154
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Gemfile +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/README.md +0 -191
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Rakefile +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bin/safe_yaml +0 -75
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bundle_install_all_ruby_versions.sh +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb +0 -94
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb +0 -34
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb +0 -36
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb +0 -181
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +0 -37
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb +0 -12
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb +0 -99
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb +0 -52
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb +0 -94
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +0 -39
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb +0 -36
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb +0 -38
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb +0 -41
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb +0 -13
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb +0 -33
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb +0 -18
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb +0 -17
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb +0 -47
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/run_specs_all_ruby_versions.sh +0 -38
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/safe_yaml.gemspec +0 -19
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.2.yaml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.3.yaml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue48.txt +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue49.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb +0 -69
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/psych_resolver_spec.rb +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/resolver_specs.rb +0 -278
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb +0 -731
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/spec_helper.rb +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb +0 -57
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb +0 -60
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb +0 -64
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb +0 -51
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb +0 -15
- data/vendor/bundle/ruby/2.6.0/specifications/safe_yaml-1.0.5.gemspec +0 -23
@@ -18,6 +18,12 @@ module CloudsmithApi
|
|
18
18
|
# If enabled, the token will allow downloads based on configured restrictions (if any).
|
19
19
|
attr_accessor :is_active
|
20
20
|
|
21
|
+
# The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
|
22
|
+
attr_accessor :limit_bandwidth
|
23
|
+
|
24
|
+
# None
|
25
|
+
attr_accessor :limit_bandwidth_unit
|
26
|
+
|
21
27
|
# The starting date/time the token is allowed to be used from.
|
22
28
|
attr_accessor :limit_date_range_from
|
23
29
|
|
@@ -39,6 +45,12 @@ module CloudsmithApi
|
|
39
45
|
# None
|
40
46
|
attr_accessor :metadata
|
41
47
|
|
48
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
49
|
+
attr_accessor :scheduled_reset_at
|
50
|
+
|
51
|
+
# None
|
52
|
+
attr_accessor :scheduled_reset_period
|
53
|
+
|
42
54
|
# None
|
43
55
|
attr_accessor :token
|
44
56
|
|
@@ -47,6 +59,8 @@ module CloudsmithApi
|
|
47
59
|
def self.attribute_map
|
48
60
|
{
|
49
61
|
:'is_active' => :'is_active',
|
62
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
63
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
50
64
|
:'limit_date_range_from' => :'limit_date_range_from',
|
51
65
|
:'limit_date_range_to' => :'limit_date_range_to',
|
52
66
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -54,6 +68,8 @@ module CloudsmithApi
|
|
54
68
|
:'limit_package_query' => :'limit_package_query',
|
55
69
|
:'limit_path_query' => :'limit_path_query',
|
56
70
|
:'metadata' => :'metadata',
|
71
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
72
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
57
73
|
:'token' => :'token'
|
58
74
|
}
|
59
75
|
end
|
@@ -62,6 +78,8 @@ module CloudsmithApi
|
|
62
78
|
def self.swagger_types
|
63
79
|
{
|
64
80
|
:'is_active' => :'BOOLEAN',
|
81
|
+
:'limit_bandwidth' => :'Integer',
|
82
|
+
:'limit_bandwidth_unit' => :'String',
|
65
83
|
:'limit_date_range_from' => :'String',
|
66
84
|
:'limit_date_range_to' => :'String',
|
67
85
|
:'limit_num_clients' => :'Integer',
|
@@ -69,6 +87,8 @@ module CloudsmithApi
|
|
69
87
|
:'limit_package_query' => :'String',
|
70
88
|
:'limit_path_query' => :'String',
|
71
89
|
:'metadata' => :'Object',
|
90
|
+
:'scheduled_reset_at' => :'String',
|
91
|
+
:'scheduled_reset_period' => :'String',
|
72
92
|
:'token' => :'String'
|
73
93
|
}
|
74
94
|
end
|
@@ -85,6 +105,14 @@ module CloudsmithApi
|
|
85
105
|
self.is_active = attributes[:'is_active']
|
86
106
|
end
|
87
107
|
|
108
|
+
if attributes.has_key?(:'limit_bandwidth')
|
109
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
113
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
114
|
+
end
|
115
|
+
|
88
116
|
if attributes.has_key?(:'limit_date_range_from')
|
89
117
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
90
118
|
end
|
@@ -113,6 +141,14 @@ module CloudsmithApi
|
|
113
141
|
self.metadata = attributes[:'metadata']
|
114
142
|
end
|
115
143
|
|
144
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
145
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
149
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
150
|
+
end
|
151
|
+
|
116
152
|
if attributes.has_key?(:'token')
|
117
153
|
self.token = attributes[:'token']
|
118
154
|
end
|
@@ -138,6 +174,8 @@ module CloudsmithApi
|
|
138
174
|
return true if self.equal?(o)
|
139
175
|
self.class == o.class &&
|
140
176
|
is_active == o.is_active &&
|
177
|
+
limit_bandwidth == o.limit_bandwidth &&
|
178
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
141
179
|
limit_date_range_from == o.limit_date_range_from &&
|
142
180
|
limit_date_range_to == o.limit_date_range_to &&
|
143
181
|
limit_num_clients == o.limit_num_clients &&
|
@@ -145,6 +183,8 @@ module CloudsmithApi
|
|
145
183
|
limit_package_query == o.limit_package_query &&
|
146
184
|
limit_path_query == o.limit_path_query &&
|
147
185
|
metadata == o.metadata &&
|
186
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
187
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
148
188
|
token == o.token
|
149
189
|
end
|
150
190
|
|
@@ -157,7 +197,7 @@ module CloudsmithApi
|
|
157
197
|
# Calculates hash code according to all attributes.
|
158
198
|
# @return [Fixnum] Hash code
|
159
199
|
def hash
|
160
|
-
[is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, token].hash
|
200
|
+
[is_active, limit_bandwidth, limit_bandwidth_unit, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, scheduled_reset_at, scheduled_reset_period, token].hash
|
161
201
|
end
|
162
202
|
|
163
203
|
# Builds the object from hash
|
@@ -129,7 +129,7 @@ module CloudsmithApi
|
|
129
129
|
# The calculated size of the package.
|
130
130
|
attr_accessor :size
|
131
131
|
|
132
|
-
#
|
132
|
+
# The public unique identifier for the package.
|
133
133
|
attr_accessor :slug
|
134
134
|
|
135
135
|
#
|
@@ -192,6 +192,9 @@ module CloudsmithApi
|
|
192
192
|
#
|
193
193
|
attr_accessor :version_orig
|
194
194
|
|
195
|
+
#
|
196
|
+
attr_accessor :vulnerability_scan_results_url
|
197
|
+
|
195
198
|
|
196
199
|
# Attribute mapping from ruby-style variable name to JSON key.
|
197
200
|
def self.attribute_map
|
@@ -254,7 +257,8 @@ module CloudsmithApi
|
|
254
257
|
:'uploader' => :'uploader',
|
255
258
|
:'uploader_url' => :'uploader_url',
|
256
259
|
:'version' => :'version',
|
257
|
-
:'version_orig' => :'version_orig'
|
260
|
+
:'version_orig' => :'version_orig',
|
261
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
258
262
|
}
|
259
263
|
end
|
260
264
|
|
@@ -319,7 +323,8 @@ module CloudsmithApi
|
|
319
323
|
:'uploader' => :'String',
|
320
324
|
:'uploader_url' => :'String',
|
321
325
|
:'version' => :'String',
|
322
|
-
:'version_orig' => :'String'
|
326
|
+
:'version_orig' => :'String',
|
327
|
+
:'vulnerability_scan_results_url' => :'String'
|
323
328
|
}
|
324
329
|
end
|
325
330
|
|
@@ -571,6 +576,10 @@ module CloudsmithApi
|
|
571
576
|
self.version_orig = attributes[:'version_orig']
|
572
577
|
end
|
573
578
|
|
579
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
580
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
581
|
+
end
|
582
|
+
|
574
583
|
end
|
575
584
|
|
576
585
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -649,7 +658,8 @@ module CloudsmithApi
|
|
649
658
|
uploader == o.uploader &&
|
650
659
|
uploader_url == o.uploader_url &&
|
651
660
|
version == o.version &&
|
652
|
-
version_orig == o.version_orig
|
661
|
+
version_orig == o.version_orig &&
|
662
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
653
663
|
end
|
654
664
|
|
655
665
|
# @see the `==` method
|
@@ -661,7 +671,7 @@ module CloudsmithApi
|
|
661
671
|
# Calculates hash code according to all attributes.
|
662
672
|
# @return [Fixnum] Hash code
|
663
673
|
def hash
|
664
|
-
[architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, group_id, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, packaging, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
|
674
|
+
[architectures, artifact_id, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, group_id, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, packaging, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
665
675
|
end
|
666
676
|
|
667
677
|
# Builds the object from hash
|
@@ -120,7 +120,7 @@ module CloudsmithApi
|
|
120
120
|
# The calculated size of the package.
|
121
121
|
attr_accessor :size
|
122
122
|
|
123
|
-
#
|
123
|
+
# The public unique identifier for the package.
|
124
124
|
attr_accessor :slug
|
125
125
|
|
126
126
|
#
|
@@ -186,6 +186,9 @@ module CloudsmithApi
|
|
186
186
|
#
|
187
187
|
attr_accessor :version_orig
|
188
188
|
|
189
|
+
#
|
190
|
+
attr_accessor :vulnerability_scan_results_url
|
191
|
+
|
189
192
|
|
190
193
|
# Attribute mapping from ruby-style variable name to JSON key.
|
191
194
|
def self.attribute_map
|
@@ -246,7 +249,8 @@ module CloudsmithApi
|
|
246
249
|
:'uploader' => :'uploader',
|
247
250
|
:'uploader_url' => :'uploader_url',
|
248
251
|
:'version' => :'version',
|
249
|
-
:'version_orig' => :'version_orig'
|
252
|
+
:'version_orig' => :'version_orig',
|
253
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
250
254
|
}
|
251
255
|
end
|
252
256
|
|
@@ -309,7 +313,8 @@ module CloudsmithApi
|
|
309
313
|
:'uploader' => :'String',
|
310
314
|
:'uploader_url' => :'String',
|
311
315
|
:'version' => :'String',
|
312
|
-
:'version_orig' => :'String'
|
316
|
+
:'version_orig' => :'String',
|
317
|
+
:'vulnerability_scan_results_url' => :'String'
|
313
318
|
}
|
314
319
|
end
|
315
320
|
|
@@ -553,6 +558,10 @@ module CloudsmithApi
|
|
553
558
|
self.version_orig = attributes[:'version_orig']
|
554
559
|
end
|
555
560
|
|
561
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
562
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
563
|
+
end
|
564
|
+
|
556
565
|
end
|
557
566
|
|
558
567
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -629,7 +638,8 @@ module CloudsmithApi
|
|
629
638
|
uploader == o.uploader &&
|
630
639
|
uploader_url == o.uploader_url &&
|
631
640
|
version == o.version &&
|
632
|
-
version_orig == o.version_orig
|
641
|
+
version_orig == o.version_orig &&
|
642
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
633
643
|
end
|
634
644
|
|
635
645
|
# @see the `==` method
|
@@ -641,7 +651,7 @@ module CloudsmithApi
|
|
641
651
|
# Calculates hash code according to all attributes.
|
642
652
|
# @return [Fixnum] Hash code
|
643
653
|
def hash
|
644
|
-
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
|
654
|
+
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
645
655
|
end
|
646
656
|
|
647
657
|
# Builds the object from hash
|
@@ -120,7 +120,7 @@ module CloudsmithApi
|
|
120
120
|
# The calculated size of the package.
|
121
121
|
attr_accessor :size
|
122
122
|
|
123
|
-
#
|
123
|
+
# The public unique identifier for the package.
|
124
124
|
attr_accessor :slug
|
125
125
|
|
126
126
|
#
|
@@ -186,6 +186,9 @@ module CloudsmithApi
|
|
186
186
|
#
|
187
187
|
attr_accessor :version_orig
|
188
188
|
|
189
|
+
#
|
190
|
+
attr_accessor :vulnerability_scan_results_url
|
191
|
+
|
189
192
|
|
190
193
|
# Attribute mapping from ruby-style variable name to JSON key.
|
191
194
|
def self.attribute_map
|
@@ -246,7 +249,8 @@ module CloudsmithApi
|
|
246
249
|
:'uploader' => :'uploader',
|
247
250
|
:'uploader_url' => :'uploader_url',
|
248
251
|
:'version' => :'version',
|
249
|
-
:'version_orig' => :'version_orig'
|
252
|
+
:'version_orig' => :'version_orig',
|
253
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
250
254
|
}
|
251
255
|
end
|
252
256
|
|
@@ -309,7 +313,8 @@ module CloudsmithApi
|
|
309
313
|
:'uploader' => :'String',
|
310
314
|
:'uploader_url' => :'String',
|
311
315
|
:'version' => :'String',
|
312
|
-
:'version_orig' => :'String'
|
316
|
+
:'version_orig' => :'String',
|
317
|
+
:'vulnerability_scan_results_url' => :'String'
|
313
318
|
}
|
314
319
|
end
|
315
320
|
|
@@ -553,6 +558,10 @@ module CloudsmithApi
|
|
553
558
|
self.version_orig = attributes[:'version_orig']
|
554
559
|
end
|
555
560
|
|
561
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
562
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
563
|
+
end
|
564
|
+
|
556
565
|
end
|
557
566
|
|
558
567
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -629,7 +638,8 @@ module CloudsmithApi
|
|
629
638
|
uploader == o.uploader &&
|
630
639
|
uploader_url == o.uploader_url &&
|
631
640
|
version == o.version &&
|
632
|
-
version_orig == o.version_orig
|
641
|
+
version_orig == o.version_orig &&
|
642
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
633
643
|
end
|
634
644
|
|
635
645
|
# @see the `==` method
|
@@ -641,7 +651,7 @@ module CloudsmithApi
|
|
641
651
|
# Calculates hash code according to all attributes.
|
642
652
|
# @return [Fixnum] Hash code
|
643
653
|
def hash
|
644
|
-
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
|
654
|
+
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
645
655
|
end
|
646
656
|
|
647
657
|
# Builds the object from hash
|
@@ -120,7 +120,7 @@ module CloudsmithApi
|
|
120
120
|
# The calculated size of the package.
|
121
121
|
attr_accessor :size
|
122
122
|
|
123
|
-
#
|
123
|
+
# The public unique identifier for the package.
|
124
124
|
attr_accessor :slug
|
125
125
|
|
126
126
|
#
|
@@ -186,6 +186,9 @@ module CloudsmithApi
|
|
186
186
|
#
|
187
187
|
attr_accessor :version_orig
|
188
188
|
|
189
|
+
#
|
190
|
+
attr_accessor :vulnerability_scan_results_url
|
191
|
+
|
189
192
|
|
190
193
|
# Attribute mapping from ruby-style variable name to JSON key.
|
191
194
|
def self.attribute_map
|
@@ -246,7 +249,8 @@ module CloudsmithApi
|
|
246
249
|
:'uploader' => :'uploader',
|
247
250
|
:'uploader_url' => :'uploader_url',
|
248
251
|
:'version' => :'version',
|
249
|
-
:'version_orig' => :'version_orig'
|
252
|
+
:'version_orig' => :'version_orig',
|
253
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
250
254
|
}
|
251
255
|
end
|
252
256
|
|
@@ -309,7 +313,8 @@ module CloudsmithApi
|
|
309
313
|
:'uploader' => :'String',
|
310
314
|
:'uploader_url' => :'String',
|
311
315
|
:'version' => :'String',
|
312
|
-
:'version_orig' => :'String'
|
316
|
+
:'version_orig' => :'String',
|
317
|
+
:'vulnerability_scan_results_url' => :'String'
|
313
318
|
}
|
314
319
|
end
|
315
320
|
|
@@ -553,6 +558,10 @@ module CloudsmithApi
|
|
553
558
|
self.version_orig = attributes[:'version_orig']
|
554
559
|
end
|
555
560
|
|
561
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
562
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
563
|
+
end
|
564
|
+
|
556
565
|
end
|
557
566
|
|
558
567
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -629,7 +638,8 @@ module CloudsmithApi
|
|
629
638
|
uploader == o.uploader &&
|
630
639
|
uploader_url == o.uploader_url &&
|
631
640
|
version == o.version &&
|
632
|
-
version_orig == o.version_orig
|
641
|
+
version_orig == o.version_orig &&
|
642
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
633
643
|
end
|
634
644
|
|
635
645
|
# @see the `==` method
|
@@ -641,7 +651,7 @@ module CloudsmithApi
|
|
641
651
|
# Calculates hash code according to all attributes.
|
642
652
|
# @return [Fixnum] Hash code
|
643
653
|
def hash
|
644
|
-
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
|
654
|
+
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
645
655
|
end
|
646
656
|
|
647
657
|
# Builds the object from hash
|
@@ -0,0 +1,194 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudsmithApi
|
16
|
+
|
17
|
+
class Quota
|
18
|
+
#
|
19
|
+
attr_accessor :usage
|
20
|
+
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'usage' => :'usage'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'usage' => :'Object'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
def initialize(attributes = {})
|
39
|
+
return unless attributes.is_a?(Hash)
|
40
|
+
|
41
|
+
# convert string to symbol for hash key
|
42
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
+
|
44
|
+
if attributes.has_key?(:'usage')
|
45
|
+
self.usage = attributes[:'usage']
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
+
# @return Array for valid properies with the reasons
|
52
|
+
def list_invalid_properties
|
53
|
+
invalid_properties = Array.new
|
54
|
+
if @usage.nil?
|
55
|
+
invalid_properties.push("invalid value for 'usage', usage cannot be nil.")
|
56
|
+
end
|
57
|
+
|
58
|
+
return invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
return false if @usage.nil?
|
65
|
+
return true
|
66
|
+
end
|
67
|
+
|
68
|
+
# Checks equality by comparing each attribute.
|
69
|
+
# @param [Object] Object to be compared
|
70
|
+
def ==(o)
|
71
|
+
return true if self.equal?(o)
|
72
|
+
self.class == o.class &&
|
73
|
+
usage == o.usage
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[usage].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
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) } )
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = CloudsmithApi.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map{ |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|