cloudsmith-api 0.53.17 → 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 +2 -2
- data/README.md +11 -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 +2 -1
- data/docs/EntitlementsPartialUpdate.md +2 -1
- data/docs/EntitlementsRefresh.md +2 -1
- 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/QuotaApi.md +4 -24
- data/docs/RatesApi.md +1 -6
- data/docs/RawPackageUpload.md +2 -1
- data/docs/ReposApi.md +6 -36
- data/docs/RepositoryToken.md +4 -1
- data/docs/RepositoryTokenRefresh.md +4 -1
- data/docs/RepositoryTokenSyncTokens.md +4 -1
- 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 +4 -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 +4 -4
- 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 +12 -2
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +12 -2
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +12 -2
- 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/raw_package_upload.rb +15 -5
- data/lib/cloudsmith-api/models/repository_token.rb +32 -2
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +32 -2
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +32 -2
- 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/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 +6 -0
- data/spec/models/entitlements_partial_update_spec.rb +6 -0
- data/spec/models/entitlements_refresh_spec.rb +6 -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/raw_package_upload_spec.rb +6 -0
- data/spec/models/repository_token_refresh_spec.rb +18 -0
- data/spec/models/repository_token_spec.rb +18 -0
- data/spec/models/repository_token_sync_tokens_spec.rb +18 -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/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/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/{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 +191 -179
- data/docs/EntitlementTokenMetric.md +0 -9
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.2.gem +0 -0
@@ -57,7 +57,7 @@ module CloudsmithApi
|
|
57
57
|
|
58
58
|
# http body (model)
|
59
59
|
post_body = nil
|
60
|
-
auth_names = ['apikey'
|
60
|
+
auth_names = ['apikey']
|
61
61
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
62
62
|
:header_params => header_params,
|
63
63
|
:query_params => query_params,
|
@@ -108,7 +108,7 @@ module CloudsmithApi
|
|
108
108
|
|
109
109
|
# http body (model)
|
110
110
|
post_body = nil
|
111
|
-
auth_names = ['apikey'
|
111
|
+
auth_names = ['apikey']
|
112
112
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
113
113
|
:header_params => header_params,
|
114
114
|
:query_params => query_params,
|
@@ -159,7 +159,7 @@ module CloudsmithApi
|
|
159
159
|
|
160
160
|
# http body (model)
|
161
161
|
post_body = nil
|
162
|
-
auth_names = ['apikey'
|
162
|
+
auth_names = ['apikey']
|
163
163
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
164
164
|
:header_params => header_params,
|
165
165
|
:query_params => query_params,
|
@@ -210,7 +210,7 @@ module CloudsmithApi
|
|
210
210
|
|
211
211
|
# http body (model)
|
212
212
|
post_body = nil
|
213
|
-
auth_names = ['apikey'
|
213
|
+
auth_names = ['apikey']
|
214
214
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
215
215
|
:header_params => header_params,
|
216
216
|
:query_params => query_params,
|
@@ -51,7 +51,7 @@ module CloudsmithApi
|
|
51
51
|
|
52
52
|
# http body (model)
|
53
53
|
post_body = nil
|
54
|
-
auth_names = ['apikey'
|
54
|
+
auth_names = ['apikey']
|
55
55
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
56
|
:header_params => header_params,
|
57
57
|
:query_params => query_params,
|
@@ -57,7 +57,7 @@ module CloudsmithApi
|
|
57
57
|
|
58
58
|
# http body (model)
|
59
59
|
post_body = nil
|
60
|
-
auth_names = ['apikey'
|
60
|
+
auth_names = ['apikey']
|
61
61
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
62
62
|
:header_params => header_params,
|
63
63
|
:query_params => query_params,
|
@@ -112,7 +112,7 @@ module CloudsmithApi
|
|
112
112
|
|
113
113
|
# http body (model)
|
114
114
|
post_body = @api_client.object_to_http_body(opts[:'data'])
|
115
|
-
auth_names = ['apikey'
|
115
|
+
auth_names = ['apikey']
|
116
116
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
117
117
|
:header_params => header_params,
|
118
118
|
:query_params => query_params,
|
@@ -169,7 +169,7 @@ module CloudsmithApi
|
|
169
169
|
|
170
170
|
# http body (model)
|
171
171
|
post_body = nil
|
172
|
-
auth_names = ['apikey'
|
172
|
+
auth_names = ['apikey']
|
173
173
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
174
174
|
:header_params => header_params,
|
175
175
|
:query_params => query_params,
|
@@ -225,7 +225,7 @@ module CloudsmithApi
|
|
225
225
|
|
226
226
|
# http body (model)
|
227
227
|
post_body = nil
|
228
|
-
auth_names = ['apikey'
|
228
|
+
auth_names = ['apikey']
|
229
229
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
230
230
|
:header_params => header_params,
|
231
231
|
:query_params => query_params,
|
@@ -286,7 +286,7 @@ module CloudsmithApi
|
|
286
286
|
|
287
287
|
# http body (model)
|
288
288
|
post_body = @api_client.object_to_http_body(opts[:'data'])
|
289
|
-
auth_names = ['apikey'
|
289
|
+
auth_names = ['apikey']
|
290
290
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
291
291
|
:header_params => header_params,
|
292
292
|
:query_params => query_params,
|
@@ -343,7 +343,7 @@ module CloudsmithApi
|
|
343
343
|
|
344
344
|
# http body (model)
|
345
345
|
post_body = nil
|
346
|
-
auth_names = ['apikey'
|
346
|
+
auth_names = ['apikey']
|
347
347
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
348
348
|
:header_params => header_params,
|
349
349
|
:query_params => query_params,
|
@@ -51,7 +51,7 @@ module CloudsmithApi
|
|
51
51
|
|
52
52
|
# http body (model)
|
53
53
|
post_body = nil
|
54
|
-
auth_names = ['apikey'
|
54
|
+
auth_names = ['apikey']
|
55
55
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
56
|
:header_params => header_params,
|
57
57
|
:query_params => query_params,
|
@@ -102,7 +102,7 @@ module CloudsmithApi
|
|
102
102
|
|
103
103
|
# http body (model)
|
104
104
|
post_body = nil
|
105
|
-
auth_names = ['apikey'
|
105
|
+
auth_names = ['apikey']
|
106
106
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
107
107
|
:header_params => header_params,
|
108
108
|
:query_params => query_params,
|
@@ -51,7 +51,7 @@ module CloudsmithApi
|
|
51
51
|
|
52
52
|
# http body (model)
|
53
53
|
post_body = nil
|
54
|
-
auth_names = ['apikey'
|
54
|
+
auth_names = ['apikey']
|
55
55
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
56
|
:header_params => header_params,
|
57
57
|
:query_params => query_params,
|
@@ -100,7 +100,7 @@ module CloudsmithApi
|
|
100
100
|
|
101
101
|
# http body (model)
|
102
102
|
post_body = @api_client.object_to_http_body(opts[:'data'])
|
103
|
-
auth_names = ['apikey'
|
103
|
+
auth_names = ['apikey']
|
104
104
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
105
105
|
:header_params => header_params,
|
106
106
|
:query_params => query_params,
|
@@ -57,7 +57,7 @@ module CloudsmithApi
|
|
57
57
|
|
58
58
|
# http body (model)
|
59
59
|
post_body = nil
|
60
|
-
auth_names = ['apikey'
|
60
|
+
auth_names = ['apikey']
|
61
61
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
62
62
|
:header_params => header_params,
|
63
63
|
:query_params => query_params,
|
@@ -0,0 +1,281 @@
|
|
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 "uri"
|
14
|
+
|
15
|
+
module CloudsmithApi
|
16
|
+
class VulnerabilitiesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Read-only view to list vulnerabiltiy scan results within a Namespace.
|
24
|
+
# Read-only view to list vulnerabiltiy scan results within a Namespace.
|
25
|
+
# @param owner
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
28
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
29
|
+
# @return [Array<VulnerabilityScanResultsList>]
|
30
|
+
def vulnerabilities_list(owner, opts = {})
|
31
|
+
data, _status_code, _headers = vulnerabilities_list_with_http_info(owner, opts)
|
32
|
+
return data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Read-only view to list vulnerabiltiy scan results within a Namespace.
|
36
|
+
# Read-only view to list vulnerabiltiy scan results within a Namespace.
|
37
|
+
# @param owner
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
40
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
41
|
+
# @return [Array<(Array<VulnerabilityScanResultsList>, Fixnum, Hash)>] Array<VulnerabilityScanResultsList> data, response status code and response headers
|
42
|
+
def vulnerabilities_list_with_http_info(owner, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list ..."
|
45
|
+
end
|
46
|
+
# verify the required parameter 'owner' is set
|
47
|
+
if @api_client.config.client_side_validation && owner.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling VulnerabilitiesApi.vulnerabilities_list"
|
49
|
+
end
|
50
|
+
# resource path
|
51
|
+
local_var_path = "/vulnerabilities/{owner}/".sub('{' + 'owner' + '}', owner.to_s)
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = {}
|
55
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
56
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = {}
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = nil
|
66
|
+
auth_names = ['apikey']
|
67
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => 'Array<VulnerabilityScanResultsList>')
|
74
|
+
if @api_client.config.debugging
|
75
|
+
@api_client.config.logger.debug "API called: VulnerabilitiesApi#vulnerabilities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
|
+
end
|
77
|
+
return data, status_code, headers
|
78
|
+
end
|
79
|
+
|
80
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository.
|
81
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository.
|
82
|
+
# @param owner
|
83
|
+
# @param repo
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
86
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
87
|
+
# @return [Array<VulnerabilityScanResultsList>]
|
88
|
+
def vulnerabilities_list0(owner, repo, opts = {})
|
89
|
+
data, _status_code, _headers = vulnerabilities_list0_with_http_info(owner, repo, opts)
|
90
|
+
return data
|
91
|
+
end
|
92
|
+
|
93
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository.
|
94
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository.
|
95
|
+
# @param owner
|
96
|
+
# @param repo
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
99
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
100
|
+
# @return [Array<(Array<VulnerabilityScanResultsList>, Fixnum, Hash)>] Array<VulnerabilityScanResultsList> data, response status code and response headers
|
101
|
+
def vulnerabilities_list0_with_http_info(owner, repo, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list0 ..."
|
104
|
+
end
|
105
|
+
# verify the required parameter 'owner' is set
|
106
|
+
if @api_client.config.client_side_validation && owner.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling VulnerabilitiesApi.vulnerabilities_list0"
|
108
|
+
end
|
109
|
+
# verify the required parameter 'repo' is set
|
110
|
+
if @api_client.config.client_side_validation && repo.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling VulnerabilitiesApi.vulnerabilities_list0"
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = "/vulnerabilities/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = {}
|
118
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
119
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = {}
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = nil
|
129
|
+
auth_names = ['apikey']
|
130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => 'Array<VulnerabilityScanResultsList>')
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: VulnerabilitiesApi#vulnerabilities_list0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
|
143
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository
|
144
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository for a given Package identifier.
|
145
|
+
# @param owner
|
146
|
+
# @param repo
|
147
|
+
# @param package The package that the scan result relates to.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
150
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
151
|
+
# @return [Array<VulnerabilityScanResultsList>]
|
152
|
+
def vulnerabilities_list1(owner, repo, package, opts = {})
|
153
|
+
data, _status_code, _headers = vulnerabilities_list1_with_http_info(owner, repo, package, opts)
|
154
|
+
return data
|
155
|
+
end
|
156
|
+
|
157
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository
|
158
|
+
# Read-only views to list vulnerabiltiy scan results within a Repository for a given Package identifier.
|
159
|
+
# @param owner
|
160
|
+
# @param repo
|
161
|
+
# @param package The package that the scan result relates to.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
164
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
165
|
+
# @return [Array<(Array<VulnerabilityScanResultsList>, Fixnum, Hash)>] Array<VulnerabilityScanResultsList> data, response status code and response headers
|
166
|
+
def vulnerabilities_list1_with_http_info(owner, repo, package, opts = {})
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list1 ..."
|
169
|
+
end
|
170
|
+
# verify the required parameter 'owner' is set
|
171
|
+
if @api_client.config.client_side_validation && owner.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling VulnerabilitiesApi.vulnerabilities_list1"
|
173
|
+
end
|
174
|
+
# verify the required parameter 'repo' is set
|
175
|
+
if @api_client.config.client_side_validation && repo.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling VulnerabilitiesApi.vulnerabilities_list1"
|
177
|
+
end
|
178
|
+
# verify the required parameter 'package' is set
|
179
|
+
if @api_client.config.client_side_validation && package.nil?
|
180
|
+
fail ArgumentError, "Missing the required parameter 'package' when calling VulnerabilitiesApi.vulnerabilities_list1"
|
181
|
+
end
|
182
|
+
# resource path
|
183
|
+
local_var_path = "/vulnerabilities/{owner}/{repo}/{package}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s)
|
184
|
+
|
185
|
+
# query parameters
|
186
|
+
query_params = {}
|
187
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
188
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
189
|
+
|
190
|
+
# header parameters
|
191
|
+
header_params = {}
|
192
|
+
|
193
|
+
# form parameters
|
194
|
+
form_params = {}
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = nil
|
198
|
+
auth_names = ['apikey']
|
199
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
200
|
+
:header_params => header_params,
|
201
|
+
:query_params => query_params,
|
202
|
+
:form_params => form_params,
|
203
|
+
:body => post_body,
|
204
|
+
:auth_names => auth_names,
|
205
|
+
:return_type => 'Array<VulnerabilityScanResultsList>')
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug "API called: VulnerabilitiesApi#vulnerabilities_list1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
|
+
end
|
209
|
+
return data, status_code, headers
|
210
|
+
end
|
211
|
+
|
212
|
+
# Read-only view to retrieve vulnerability scans results using a
|
213
|
+
# Read-only view to retrieve vulnerability scans results using a vulnerabiltiy scan results identifier (slug_perm).
|
214
|
+
# @param owner
|
215
|
+
# @param repo
|
216
|
+
# @param package The package that the scan result relates to.
|
217
|
+
# @param scan_id A sequential identifier that increments by one for each new scan result within a package. These are always unique and can be used to reference the scan results elsewhere (e.g. via the CLI.)
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [VulnerabilityScanResults]
|
220
|
+
def vulnerabilities_read(owner, repo, package, scan_id, opts = {})
|
221
|
+
data, _status_code, _headers = vulnerabilities_read_with_http_info(owner, repo, package, scan_id, opts)
|
222
|
+
return data
|
223
|
+
end
|
224
|
+
|
225
|
+
# Read-only view to retrieve vulnerability scans results using a
|
226
|
+
# Read-only view to retrieve vulnerability scans results using a vulnerabiltiy scan results identifier (slug_perm).
|
227
|
+
# @param owner
|
228
|
+
# @param repo
|
229
|
+
# @param package The package that the scan result relates to.
|
230
|
+
# @param scan_id A sequential identifier that increments by one for each new scan result within a package. These are always unique and can be used to reference the scan results elsewhere (e.g. via the CLI.)
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @return [Array<(VulnerabilityScanResults, Fixnum, Hash)>] VulnerabilityScanResults data, response status code and response headers
|
233
|
+
def vulnerabilities_read_with_http_info(owner, repo, package, scan_id, opts = {})
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_read ..."
|
236
|
+
end
|
237
|
+
# verify the required parameter 'owner' is set
|
238
|
+
if @api_client.config.client_side_validation && owner.nil?
|
239
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling VulnerabilitiesApi.vulnerabilities_read"
|
240
|
+
end
|
241
|
+
# verify the required parameter 'repo' is set
|
242
|
+
if @api_client.config.client_side_validation && repo.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling VulnerabilitiesApi.vulnerabilities_read"
|
244
|
+
end
|
245
|
+
# verify the required parameter 'package' is set
|
246
|
+
if @api_client.config.client_side_validation && package.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'package' when calling VulnerabilitiesApi.vulnerabilities_read"
|
248
|
+
end
|
249
|
+
# verify the required parameter 'scan_id' is set
|
250
|
+
if @api_client.config.client_side_validation && scan_id.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'scan_id' when calling VulnerabilitiesApi.vulnerabilities_read"
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = "/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s).sub('{' + 'scan_id' + '}', scan_id.to_s)
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = {}
|
258
|
+
|
259
|
+
# header parameters
|
260
|
+
header_params = {}
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = nil
|
267
|
+
auth_names = ['apikey']
|
268
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => 'VulnerabilityScanResults')
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: VulnerabilitiesApi#vulnerabilities_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
@@ -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,
|