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
@@ -67,7 +67,7 @@ module CloudsmithApi
|
|
67
67
|
|
68
68
|
# http body (model)
|
69
69
|
post_body = @api_client.object_to_http_body(opts[:'data'])
|
70
|
-
auth_names = ['apikey'
|
70
|
+
auth_names = ['apikey']
|
71
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
72
|
:header_params => header_params,
|
73
73
|
:query_params => query_params,
|
@@ -130,7 +130,7 @@ module CloudsmithApi
|
|
130
130
|
|
131
131
|
# http body (model)
|
132
132
|
post_body = nil
|
133
|
-
auth_names = ['apikey'
|
133
|
+
auth_names = ['apikey']
|
134
134
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
135
135
|
:header_params => header_params,
|
136
136
|
:query_params => query_params,
|
@@ -192,7 +192,7 @@ module CloudsmithApi
|
|
192
192
|
|
193
193
|
# http body (model)
|
194
194
|
post_body = nil
|
195
|
-
auth_names = ['apikey'
|
195
|
+
auth_names = ['apikey']
|
196
196
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
197
197
|
:header_params => header_params,
|
198
198
|
:query_params => query_params,
|
@@ -259,7 +259,7 @@ module CloudsmithApi
|
|
259
259
|
|
260
260
|
# http body (model)
|
261
261
|
post_body = @api_client.object_to_http_body(opts[:'data'])
|
262
|
-
auth_names = ['apikey'
|
262
|
+
auth_names = ['apikey']
|
263
263
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
264
264
|
:header_params => header_params,
|
265
265
|
:query_params => query_params,
|
@@ -322,7 +322,7 @@ module CloudsmithApi
|
|
322
322
|
|
323
323
|
# http body (model)
|
324
324
|
post_body = nil
|
325
|
-
auth_names = ['apikey'
|
325
|
+
auth_names = ['apikey']
|
326
326
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
327
327
|
:header_params => header_params,
|
328
328
|
:query_params => query_params,
|
@@ -210,13 +210,6 @@ module CloudsmithApi
|
|
210
210
|
key: 'Authorization',
|
211
211
|
value: basic_auth_token
|
212
212
|
},
|
213
|
-
'csrf_token' =>
|
214
|
-
{
|
215
|
-
type: 'api_key',
|
216
|
-
in: 'header',
|
217
|
-
key: 'X-CSRFToken',
|
218
|
-
value: api_key_with_prefix('X-CSRFToken')
|
219
|
-
},
|
220
213
|
}
|
221
214
|
end
|
222
215
|
end
|
@@ -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
|
#
|
@@ -183,6 +183,9 @@ module CloudsmithApi
|
|
183
183
|
#
|
184
184
|
attr_accessor :version_orig
|
185
185
|
|
186
|
+
#
|
187
|
+
attr_accessor :vulnerability_scan_results_url
|
188
|
+
|
186
189
|
|
187
190
|
# Attribute mapping from ruby-style variable name to JSON key.
|
188
191
|
def self.attribute_map
|
@@ -242,7 +245,8 @@ module CloudsmithApi
|
|
242
245
|
:'uploader' => :'uploader',
|
243
246
|
:'uploader_url' => :'uploader_url',
|
244
247
|
:'version' => :'version',
|
245
|
-
:'version_orig' => :'version_orig'
|
248
|
+
:'version_orig' => :'version_orig',
|
249
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
246
250
|
}
|
247
251
|
end
|
248
252
|
|
@@ -304,7 +308,8 @@ module CloudsmithApi
|
|
304
308
|
:'uploader' => :'String',
|
305
309
|
:'uploader_url' => :'String',
|
306
310
|
:'version' => :'String',
|
307
|
-
:'version_orig' => :'String'
|
311
|
+
:'version_orig' => :'String',
|
312
|
+
:'vulnerability_scan_results_url' => :'String'
|
308
313
|
}
|
309
314
|
end
|
310
315
|
|
@@ -544,6 +549,10 @@ module CloudsmithApi
|
|
544
549
|
self.version_orig = attributes[:'version_orig']
|
545
550
|
end
|
546
551
|
|
552
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
553
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
554
|
+
end
|
555
|
+
|
547
556
|
end
|
548
557
|
|
549
558
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -619,7 +628,8 @@ module CloudsmithApi
|
|
619
628
|
uploader == o.uploader &&
|
620
629
|
uploader_url == o.uploader_url &&
|
621
630
|
version == o.version &&
|
622
|
-
version_orig == o.version_orig
|
631
|
+
version_orig == o.version_orig &&
|
632
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
623
633
|
end
|
624
634
|
|
625
635
|
# @see the `==` method
|
@@ -631,7 +641,7 @@ module CloudsmithApi
|
|
631
641
|
# Calculates hash code according to all attributes.
|
632
642
|
# @return [Fixnum] Hash code
|
633
643
|
def hash
|
634
|
-
[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_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].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_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
635
645
|
end
|
636
646
|
|
637
647
|
# Builds the object from hash
|
@@ -126,7 +126,7 @@ module CloudsmithApi
|
|
126
126
|
# The calculated size of the package.
|
127
127
|
attr_accessor :size
|
128
128
|
|
129
|
-
#
|
129
|
+
# The public unique identifier for the package.
|
130
130
|
attr_accessor :slug
|
131
131
|
|
132
132
|
#
|
@@ -189,6 +189,9 @@ module CloudsmithApi
|
|
189
189
|
#
|
190
190
|
attr_accessor :version_orig
|
191
191
|
|
192
|
+
#
|
193
|
+
attr_accessor :vulnerability_scan_results_url
|
194
|
+
|
192
195
|
|
193
196
|
# Attribute mapping from ruby-style variable name to JSON key.
|
194
197
|
def self.attribute_map
|
@@ -250,7 +253,8 @@ module CloudsmithApi
|
|
250
253
|
:'uploader' => :'uploader',
|
251
254
|
:'uploader_url' => :'uploader_url',
|
252
255
|
:'version' => :'version',
|
253
|
-
:'version_orig' => :'version_orig'
|
256
|
+
:'version_orig' => :'version_orig',
|
257
|
+
:'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
|
254
258
|
}
|
255
259
|
end
|
256
260
|
|
@@ -314,7 +318,8 @@ module CloudsmithApi
|
|
314
318
|
:'uploader' => :'String',
|
315
319
|
:'uploader_url' => :'String',
|
316
320
|
:'version' => :'String',
|
317
|
-
:'version_orig' => :'String'
|
321
|
+
:'version_orig' => :'String',
|
322
|
+
:'vulnerability_scan_results_url' => :'String'
|
318
323
|
}
|
319
324
|
end
|
320
325
|
|
@@ -562,6 +567,10 @@ module CloudsmithApi
|
|
562
567
|
self.version_orig = attributes[:'version_orig']
|
563
568
|
end
|
564
569
|
|
570
|
+
if attributes.has_key?(:'vulnerability_scan_results_url')
|
571
|
+
self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
|
572
|
+
end
|
573
|
+
|
565
574
|
end
|
566
575
|
|
567
576
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -639,7 +648,8 @@ module CloudsmithApi
|
|
639
648
|
uploader == o.uploader &&
|
640
649
|
uploader_url == o.uploader_url &&
|
641
650
|
version == o.version &&
|
642
|
-
version_orig == o.version_orig
|
651
|
+
version_orig == o.version_orig &&
|
652
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
643
653
|
end
|
644
654
|
|
645
655
|
# @see the `==` method
|
@@ -651,7 +661,7 @@ module CloudsmithApi
|
|
651
661
|
# Calculates hash code according to all attributes.
|
652
662
|
# @return [Fixnum] Hash code
|
653
663
|
def hash
|
654
|
-
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
|
664
|
+
[architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, conan_channel, conan_prefix, 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_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
|
655
665
|
end
|
656
666
|
|
657
667
|
# Builds the object from hash
|
@@ -14,27 +14,22 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CloudsmithApi
|
16
16
|
|
17
|
-
class
|
17
|
+
class EntitlementUsageMetric
|
18
18
|
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
#
|
22
|
-
attr_accessor :totals
|
19
|
+
attr_accessor :usage
|
23
20
|
|
24
21
|
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
23
|
def self.attribute_map
|
27
24
|
{
|
28
|
-
:'
|
29
|
-
:'totals' => :'totals'
|
25
|
+
:'usage' => :'usage'
|
30
26
|
}
|
31
27
|
end
|
32
28
|
|
33
29
|
# Attribute type mapping.
|
34
30
|
def self.swagger_types
|
35
31
|
{
|
36
|
-
:'
|
37
|
-
:'totals' => :'Object'
|
32
|
+
:'usage' => :'Object'
|
38
33
|
}
|
39
34
|
end
|
40
35
|
|
@@ -46,12 +41,8 @@ module CloudsmithApi
|
|
46
41
|
# convert string to symbol for hash key
|
47
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
43
|
|
49
|
-
if attributes.has_key?(:'
|
50
|
-
self.
|
51
|
-
end
|
52
|
-
|
53
|
-
if attributes.has_key?(:'totals')
|
54
|
-
self.totals = attributes[:'totals']
|
44
|
+
if attributes.has_key?(:'usage')
|
45
|
+
self.usage = attributes[:'usage']
|
55
46
|
end
|
56
47
|
|
57
48
|
end
|
@@ -60,12 +51,8 @@ module CloudsmithApi
|
|
60
51
|
# @return Array for valid properies with the reasons
|
61
52
|
def list_invalid_properties
|
62
53
|
invalid_properties = Array.new
|
63
|
-
if @
|
64
|
-
invalid_properties.push("invalid value for '
|
65
|
-
end
|
66
|
-
|
67
|
-
if @totals.nil?
|
68
|
-
invalid_properties.push("invalid value for 'totals', totals cannot be nil.")
|
54
|
+
if @usage.nil?
|
55
|
+
invalid_properties.push("invalid value for 'usage', usage cannot be nil.")
|
69
56
|
end
|
70
57
|
|
71
58
|
return invalid_properties
|
@@ -74,8 +61,7 @@ module CloudsmithApi
|
|
74
61
|
# Check to see if the all the properties in the model are valid
|
75
62
|
# @return true if the model is valid
|
76
63
|
def valid?
|
77
|
-
return false if @
|
78
|
-
return false if @totals.nil?
|
64
|
+
return false if @usage.nil?
|
79
65
|
return true
|
80
66
|
end
|
81
67
|
|
@@ -84,8 +70,7 @@ module CloudsmithApi
|
|
84
70
|
def ==(o)
|
85
71
|
return true if self.equal?(o)
|
86
72
|
self.class == o.class &&
|
87
|
-
|
88
|
-
totals == o.totals
|
73
|
+
usage == o.usage
|
89
74
|
end
|
90
75
|
|
91
76
|
# @see the `==` method
|
@@ -97,7 +82,7 @@ module CloudsmithApi
|
|
97
82
|
# Calculates hash code according to all attributes.
|
98
83
|
# @return [Fixnum] Hash code
|
99
84
|
def hash
|
100
|
-
[
|
85
|
+
[usage].hash
|
101
86
|
end
|
102
87
|
|
103
88
|
# Builds the object from hash
|
@@ -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
|
|
@@ -42,6 +48,12 @@ module CloudsmithApi
|
|
42
48
|
# None
|
43
49
|
attr_accessor :name
|
44
50
|
|
51
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
52
|
+
attr_accessor :scheduled_reset_at
|
53
|
+
|
54
|
+
# None
|
55
|
+
attr_accessor :scheduled_reset_period
|
56
|
+
|
45
57
|
# None
|
46
58
|
attr_accessor :token
|
47
59
|
|
@@ -50,6 +62,8 @@ module CloudsmithApi
|
|
50
62
|
def self.attribute_map
|
51
63
|
{
|
52
64
|
:'is_active' => :'is_active',
|
65
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
66
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
53
67
|
:'limit_date_range_from' => :'limit_date_range_from',
|
54
68
|
:'limit_date_range_to' => :'limit_date_range_to',
|
55
69
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -58,6 +72,8 @@ module CloudsmithApi
|
|
58
72
|
:'limit_path_query' => :'limit_path_query',
|
59
73
|
:'metadata' => :'metadata',
|
60
74
|
:'name' => :'name',
|
75
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
76
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
61
77
|
:'token' => :'token'
|
62
78
|
}
|
63
79
|
end
|
@@ -66,6 +82,8 @@ module CloudsmithApi
|
|
66
82
|
def self.swagger_types
|
67
83
|
{
|
68
84
|
:'is_active' => :'BOOLEAN',
|
85
|
+
:'limit_bandwidth' => :'Integer',
|
86
|
+
:'limit_bandwidth_unit' => :'String',
|
69
87
|
:'limit_date_range_from' => :'String',
|
70
88
|
:'limit_date_range_to' => :'String',
|
71
89
|
:'limit_num_clients' => :'Integer',
|
@@ -74,6 +92,8 @@ module CloudsmithApi
|
|
74
92
|
:'limit_path_query' => :'String',
|
75
93
|
:'metadata' => :'Object',
|
76
94
|
:'name' => :'String',
|
95
|
+
:'scheduled_reset_at' => :'String',
|
96
|
+
:'scheduled_reset_period' => :'String',
|
77
97
|
:'token' => :'String'
|
78
98
|
}
|
79
99
|
end
|
@@ -90,6 +110,14 @@ module CloudsmithApi
|
|
90
110
|
self.is_active = attributes[:'is_active']
|
91
111
|
end
|
92
112
|
|
113
|
+
if attributes.has_key?(:'limit_bandwidth')
|
114
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
118
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
119
|
+
end
|
120
|
+
|
93
121
|
if attributes.has_key?(:'limit_date_range_from')
|
94
122
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
95
123
|
end
|
@@ -122,6 +150,14 @@ module CloudsmithApi
|
|
122
150
|
self.name = attributes[:'name']
|
123
151
|
end
|
124
152
|
|
153
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
154
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
158
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
159
|
+
end
|
160
|
+
|
125
161
|
if attributes.has_key?(:'token')
|
126
162
|
self.token = attributes[:'token']
|
127
163
|
end
|
@@ -152,6 +188,8 @@ module CloudsmithApi
|
|
152
188
|
return true if self.equal?(o)
|
153
189
|
self.class == o.class &&
|
154
190
|
is_active == o.is_active &&
|
191
|
+
limit_bandwidth == o.limit_bandwidth &&
|
192
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
155
193
|
limit_date_range_from == o.limit_date_range_from &&
|
156
194
|
limit_date_range_to == o.limit_date_range_to &&
|
157
195
|
limit_num_clients == o.limit_num_clients &&
|
@@ -160,6 +198,8 @@ module CloudsmithApi
|
|
160
198
|
limit_path_query == o.limit_path_query &&
|
161
199
|
metadata == o.metadata &&
|
162
200
|
name == o.name &&
|
201
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
202
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
163
203
|
token == o.token
|
164
204
|
end
|
165
205
|
|
@@ -172,7 +212,7 @@ module CloudsmithApi
|
|
172
212
|
# Calculates hash code according to all attributes.
|
173
213
|
# @return [Fixnum] Hash code
|
174
214
|
def hash
|
175
|
-
[is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, token].hash
|
215
|
+
[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, name, scheduled_reset_at, scheduled_reset_period, token].hash
|
176
216
|
end
|
177
217
|
|
178
218
|
# Builds the object from hash
|
@@ -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
|
|
@@ -42,6 +48,12 @@ module CloudsmithApi
|
|
42
48
|
# None
|
43
49
|
attr_accessor :name
|
44
50
|
|
51
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
52
|
+
attr_accessor :scheduled_reset_at
|
53
|
+
|
54
|
+
# None
|
55
|
+
attr_accessor :scheduled_reset_period
|
56
|
+
|
45
57
|
# None
|
46
58
|
attr_accessor :token
|
47
59
|
|
@@ -50,6 +62,8 @@ module CloudsmithApi
|
|
50
62
|
def self.attribute_map
|
51
63
|
{
|
52
64
|
:'is_active' => :'is_active',
|
65
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
66
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
53
67
|
:'limit_date_range_from' => :'limit_date_range_from',
|
54
68
|
:'limit_date_range_to' => :'limit_date_range_to',
|
55
69
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -58,6 +72,8 @@ module CloudsmithApi
|
|
58
72
|
:'limit_path_query' => :'limit_path_query',
|
59
73
|
:'metadata' => :'metadata',
|
60
74
|
:'name' => :'name',
|
75
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
76
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
61
77
|
:'token' => :'token'
|
62
78
|
}
|
63
79
|
end
|
@@ -66,6 +82,8 @@ module CloudsmithApi
|
|
66
82
|
def self.swagger_types
|
67
83
|
{
|
68
84
|
:'is_active' => :'BOOLEAN',
|
85
|
+
:'limit_bandwidth' => :'Integer',
|
86
|
+
:'limit_bandwidth_unit' => :'String',
|
69
87
|
:'limit_date_range_from' => :'String',
|
70
88
|
:'limit_date_range_to' => :'String',
|
71
89
|
:'limit_num_clients' => :'Integer',
|
@@ -74,6 +92,8 @@ module CloudsmithApi
|
|
74
92
|
:'limit_path_query' => :'String',
|
75
93
|
:'metadata' => :'Object',
|
76
94
|
:'name' => :'String',
|
95
|
+
:'scheduled_reset_at' => :'String',
|
96
|
+
:'scheduled_reset_period' => :'String',
|
77
97
|
:'token' => :'String'
|
78
98
|
}
|
79
99
|
end
|
@@ -90,6 +110,14 @@ module CloudsmithApi
|
|
90
110
|
self.is_active = attributes[:'is_active']
|
91
111
|
end
|
92
112
|
|
113
|
+
if attributes.has_key?(:'limit_bandwidth')
|
114
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
118
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
119
|
+
end
|
120
|
+
|
93
121
|
if attributes.has_key?(:'limit_date_range_from')
|
94
122
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
95
123
|
end
|
@@ -122,6 +150,14 @@ module CloudsmithApi
|
|
122
150
|
self.name = attributes[:'name']
|
123
151
|
end
|
124
152
|
|
153
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
154
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
158
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
159
|
+
end
|
160
|
+
|
125
161
|
if attributes.has_key?(:'token')
|
126
162
|
self.token = attributes[:'token']
|
127
163
|
end
|
@@ -147,6 +183,8 @@ module CloudsmithApi
|
|
147
183
|
return true if self.equal?(o)
|
148
184
|
self.class == o.class &&
|
149
185
|
is_active == o.is_active &&
|
186
|
+
limit_bandwidth == o.limit_bandwidth &&
|
187
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
150
188
|
limit_date_range_from == o.limit_date_range_from &&
|
151
189
|
limit_date_range_to == o.limit_date_range_to &&
|
152
190
|
limit_num_clients == o.limit_num_clients &&
|
@@ -155,6 +193,8 @@ module CloudsmithApi
|
|
155
193
|
limit_path_query == o.limit_path_query &&
|
156
194
|
metadata == o.metadata &&
|
157
195
|
name == o.name &&
|
196
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
197
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
158
198
|
token == o.token
|
159
199
|
end
|
160
200
|
|
@@ -167,7 +207,7 @@ module CloudsmithApi
|
|
167
207
|
# Calculates hash code according to all attributes.
|
168
208
|
# @return [Fixnum] Hash code
|
169
209
|
def hash
|
170
|
-
[is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, token].hash
|
210
|
+
[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, name, scheduled_reset_at, scheduled_reset_period, token].hash
|
171
211
|
end
|
172
212
|
|
173
213
|
# Builds the object from hash
|