cloudsmith-api 0.53.17 → 0.53.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.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
@@ -30,9 +30,15 @@ module CloudsmithApi
|
|
30
30
|
# If selected this is the default token for this repository.
|
31
31
|
attr_accessor :default
|
32
32
|
|
33
|
+
#
|
34
|
+
attr_accessor :disable_url
|
35
|
+
|
33
36
|
#
|
34
37
|
attr_accessor :downloads
|
35
38
|
|
39
|
+
#
|
40
|
+
attr_accessor :enable_url
|
41
|
+
|
36
42
|
#
|
37
43
|
attr_accessor :has_limits
|
38
44
|
|
@@ -45,7 +51,7 @@ module CloudsmithApi
|
|
45
51
|
#
|
46
52
|
attr_accessor :is_limited
|
47
53
|
|
48
|
-
# 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.
|
54
|
+
# 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.
|
49
55
|
attr_accessor :limit_bandwidth
|
50
56
|
|
51
57
|
#
|
@@ -78,6 +84,9 @@ module CloudsmithApi
|
|
78
84
|
#
|
79
85
|
attr_accessor :refresh_url
|
80
86
|
|
87
|
+
#
|
88
|
+
attr_accessor :reset_url
|
89
|
+
|
81
90
|
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
82
91
|
attr_accessor :scheduled_reset_at
|
83
92
|
|
@@ -120,7 +129,9 @@ module CloudsmithApi
|
|
120
129
|
:'created_by' => :'created_by',
|
121
130
|
:'created_by_url' => :'created_by_url',
|
122
131
|
:'default' => :'default',
|
132
|
+
:'disable_url' => :'disable_url',
|
123
133
|
:'downloads' => :'downloads',
|
134
|
+
:'enable_url' => :'enable_url',
|
124
135
|
:'has_limits' => :'has_limits',
|
125
136
|
:'identifier' => :'identifier',
|
126
137
|
:'is_active' => :'is_active',
|
@@ -136,6 +147,7 @@ module CloudsmithApi
|
|
136
147
|
:'metadata' => :'metadata',
|
137
148
|
:'name' => :'name',
|
138
149
|
:'refresh_url' => :'refresh_url',
|
150
|
+
:'reset_url' => :'reset_url',
|
139
151
|
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
152
|
:'scheduled_reset_period' => :'scheduled_reset_period',
|
141
153
|
:'self_url' => :'self_url',
|
@@ -158,7 +170,9 @@ module CloudsmithApi
|
|
158
170
|
:'created_by' => :'String',
|
159
171
|
:'created_by_url' => :'String',
|
160
172
|
:'default' => :'BOOLEAN',
|
173
|
+
:'disable_url' => :'String',
|
161
174
|
:'downloads' => :'Integer',
|
175
|
+
:'enable_url' => :'String',
|
162
176
|
:'has_limits' => :'BOOLEAN',
|
163
177
|
:'identifier' => :'Integer',
|
164
178
|
:'is_active' => :'BOOLEAN',
|
@@ -174,6 +188,7 @@ module CloudsmithApi
|
|
174
188
|
:'metadata' => :'String',
|
175
189
|
:'name' => :'String',
|
176
190
|
:'refresh_url' => :'String',
|
191
|
+
:'reset_url' => :'String',
|
177
192
|
:'scheduled_reset_at' => :'String',
|
178
193
|
:'scheduled_reset_period' => :'String',
|
179
194
|
:'self_url' => :'String',
|
@@ -216,10 +231,18 @@ module CloudsmithApi
|
|
216
231
|
self.default = attributes[:'default']
|
217
232
|
end
|
218
233
|
|
234
|
+
if attributes.has_key?(:'disable_url')
|
235
|
+
self.disable_url = attributes[:'disable_url']
|
236
|
+
end
|
237
|
+
|
219
238
|
if attributes.has_key?(:'downloads')
|
220
239
|
self.downloads = attributes[:'downloads']
|
221
240
|
end
|
222
241
|
|
242
|
+
if attributes.has_key?(:'enable_url')
|
243
|
+
self.enable_url = attributes[:'enable_url']
|
244
|
+
end
|
245
|
+
|
223
246
|
if attributes.has_key?(:'has_limits')
|
224
247
|
self.has_limits = attributes[:'has_limits']
|
225
248
|
end
|
@@ -280,6 +303,10 @@ module CloudsmithApi
|
|
280
303
|
self.refresh_url = attributes[:'refresh_url']
|
281
304
|
end
|
282
305
|
|
306
|
+
if attributes.has_key?(:'reset_url')
|
307
|
+
self.reset_url = attributes[:'reset_url']
|
308
|
+
end
|
309
|
+
|
283
310
|
if attributes.has_key?(:'scheduled_reset_at')
|
284
311
|
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
285
312
|
end
|
@@ -349,7 +376,9 @@ module CloudsmithApi
|
|
349
376
|
created_by == o.created_by &&
|
350
377
|
created_by_url == o.created_by_url &&
|
351
378
|
default == o.default &&
|
379
|
+
disable_url == o.disable_url &&
|
352
380
|
downloads == o.downloads &&
|
381
|
+
enable_url == o.enable_url &&
|
353
382
|
has_limits == o.has_limits &&
|
354
383
|
identifier == o.identifier &&
|
355
384
|
is_active == o.is_active &&
|
@@ -365,6 +394,7 @@ module CloudsmithApi
|
|
365
394
|
metadata == o.metadata &&
|
366
395
|
name == o.name &&
|
367
396
|
refresh_url == o.refresh_url &&
|
397
|
+
reset_url == o.reset_url &&
|
368
398
|
scheduled_reset_at == o.scheduled_reset_at &&
|
369
399
|
scheduled_reset_period == o.scheduled_reset_period &&
|
370
400
|
self_url == o.self_url &&
|
@@ -387,7 +417,7 @@ module CloudsmithApi
|
|
387
417
|
# Calculates hash code according to all attributes.
|
388
418
|
# @return [Fixnum] Hash code
|
389
419
|
def hash
|
390
|
-
[clients, created_at, created_by, created_by_url, default, downloads, has_limits, identifier, is_active, is_limited, 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, refresh_url, scheduled_reset_at, scheduled_reset_period, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
420
|
+
[clients, created_at, created_by, created_by_url, default, disable_url, downloads, enable_url, has_limits, identifier, is_active, is_limited, 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, refresh_url, reset_url, scheduled_reset_at, scheduled_reset_period, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
391
421
|
end
|
392
422
|
|
393
423
|
# Builds the object from hash
|
@@ -123,7 +123,7 @@ module CloudsmithApi
|
|
123
123
|
# The calculated size of the package.
|
124
124
|
attr_accessor :size
|
125
125
|
|
126
|
-
#
|
126
|
+
# The public unique identifier for the package.
|
127
127
|
attr_accessor :slug
|
128
128
|
|
129
129
|
#
|
@@ -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?
|
@@ -644,7 +653,8 @@ module CloudsmithApi
|
|
644
653
|
uploader == o.uploader &&
|
645
654
|
uploader_url == o.uploader_url &&
|
646
655
|
version == o.version &&
|
647
|
-
version_orig == o.version_orig
|
656
|
+
version_orig == o.version_orig &&
|
657
|
+
vulnerability_scan_results_url == o.vulnerability_scan_results_url
|
648
658
|
end
|
649
659
|
|
650
660
|
# @see the `==` method
|
@@ -656,7 +666,7 @@ module CloudsmithApi
|
|
656
666
|
# Calculates hash code according to all attributes.
|
657
667
|
# @return [Fixnum] Hash code
|
658
668
|
def hash
|
659
|
-
[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, provider, 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
|
669
|
+
[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, provider, 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
|
660
670
|
end
|
661
671
|
|
662
672
|
# Builds the object from hash
|
@@ -0,0 +1,279 @@
|
|
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 VulnerabilityScanResults
|
18
|
+
# The time this scan result was stored.
|
19
|
+
attr_accessor :created_at
|
20
|
+
|
21
|
+
# Do the results contain any known vulnerabilities?
|
22
|
+
attr_accessor :has_vulnerabilities
|
23
|
+
|
24
|
+
#
|
25
|
+
attr_accessor :identifier
|
26
|
+
|
27
|
+
#
|
28
|
+
attr_accessor :max_severity
|
29
|
+
|
30
|
+
#
|
31
|
+
attr_accessor :num_vulnerabilities
|
32
|
+
|
33
|
+
#
|
34
|
+
attr_accessor :package
|
35
|
+
|
36
|
+
#
|
37
|
+
attr_accessor :scan
|
38
|
+
|
39
|
+
#
|
40
|
+
attr_accessor :scan_id
|
41
|
+
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
:'created_at' => :'created_at',
|
47
|
+
:'has_vulnerabilities' => :'has_vulnerabilities',
|
48
|
+
:'identifier' => :'identifier',
|
49
|
+
:'max_severity' => :'max_severity',
|
50
|
+
:'num_vulnerabilities' => :'num_vulnerabilities',
|
51
|
+
:'package' => :'package',
|
52
|
+
:'scan' => :'scan',
|
53
|
+
:'scan_id' => :'scan_id'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.swagger_types
|
59
|
+
{
|
60
|
+
:'created_at' => :'String',
|
61
|
+
:'has_vulnerabilities' => :'BOOLEAN',
|
62
|
+
:'identifier' => :'String',
|
63
|
+
:'max_severity' => :'String',
|
64
|
+
:'num_vulnerabilities' => :'Integer',
|
65
|
+
:'package' => :'Object',
|
66
|
+
:'scan' => :'Object',
|
67
|
+
:'scan_id' => :'Integer'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
return unless attributes.is_a?(Hash)
|
75
|
+
|
76
|
+
# convert string to symbol for hash key
|
77
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
78
|
+
|
79
|
+
if attributes.has_key?(:'created_at')
|
80
|
+
self.created_at = attributes[:'created_at']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'has_vulnerabilities')
|
84
|
+
self.has_vulnerabilities = attributes[:'has_vulnerabilities']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'identifier')
|
88
|
+
self.identifier = attributes[:'identifier']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'max_severity')
|
92
|
+
self.max_severity = attributes[:'max_severity']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'num_vulnerabilities')
|
96
|
+
self.num_vulnerabilities = attributes[:'num_vulnerabilities']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'package')
|
100
|
+
self.package = attributes[:'package']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'scan')
|
104
|
+
self.scan = attributes[:'scan']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'scan_id')
|
108
|
+
self.scan_id = attributes[:'scan_id']
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
+
# @return Array for valid properies with the reasons
|
115
|
+
def list_invalid_properties
|
116
|
+
invalid_properties = Array.new
|
117
|
+
if @identifier.nil?
|
118
|
+
invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.")
|
119
|
+
end
|
120
|
+
|
121
|
+
if @package.nil?
|
122
|
+
invalid_properties.push("invalid value for 'package', package cannot be nil.")
|
123
|
+
end
|
124
|
+
|
125
|
+
if @scan.nil?
|
126
|
+
invalid_properties.push("invalid value for 'scan', scan cannot be nil.")
|
127
|
+
end
|
128
|
+
|
129
|
+
if @scan_id.nil?
|
130
|
+
invalid_properties.push("invalid value for 'scan_id', scan_id cannot be nil.")
|
131
|
+
end
|
132
|
+
|
133
|
+
return invalid_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Check to see if the all the properties in the model are valid
|
137
|
+
# @return true if the model is valid
|
138
|
+
def valid?
|
139
|
+
return false if @identifier.nil?
|
140
|
+
return false if @package.nil?
|
141
|
+
return false if @scan.nil?
|
142
|
+
return false if @scan_id.nil?
|
143
|
+
return true
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param [Object] Object to be compared
|
148
|
+
def ==(o)
|
149
|
+
return true if self.equal?(o)
|
150
|
+
self.class == o.class &&
|
151
|
+
created_at == o.created_at &&
|
152
|
+
has_vulnerabilities == o.has_vulnerabilities &&
|
153
|
+
identifier == o.identifier &&
|
154
|
+
max_severity == o.max_severity &&
|
155
|
+
num_vulnerabilities == o.num_vulnerabilities &&
|
156
|
+
package == o.package &&
|
157
|
+
scan == o.scan &&
|
158
|
+
scan_id == o.scan_id
|
159
|
+
end
|
160
|
+
|
161
|
+
# @see the `==` method
|
162
|
+
# @param [Object] Object to be compared
|
163
|
+
def eql?(o)
|
164
|
+
self == o
|
165
|
+
end
|
166
|
+
|
167
|
+
# Calculates hash code according to all attributes.
|
168
|
+
# @return [Fixnum] Hash code
|
169
|
+
def hash
|
170
|
+
[created_at, has_vulnerabilities, identifier, max_severity, num_vulnerabilities, package, scan, scan_id].hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Builds the object from hash
|
174
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
175
|
+
# @return [Object] Returns the model itself
|
176
|
+
def build_from_hash(attributes)
|
177
|
+
return nil unless attributes.is_a?(Hash)
|
178
|
+
self.class.swagger_types.each_pair do |key, type|
|
179
|
+
if type =~ /\AArray<(.*)>/i
|
180
|
+
# check to ensure the input is an array given that the the attribute
|
181
|
+
# is documented as an array but the input is not
|
182
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
183
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
184
|
+
end
|
185
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
186
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
187
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
188
|
+
end
|
189
|
+
|
190
|
+
self
|
191
|
+
end
|
192
|
+
|
193
|
+
# Deserializes the data based on type
|
194
|
+
# @param string type Data type
|
195
|
+
# @param string value Value to be deserialized
|
196
|
+
# @return [Object] Deserialized data
|
197
|
+
def _deserialize(type, value)
|
198
|
+
case type.to_sym
|
199
|
+
when :DateTime
|
200
|
+
DateTime.parse(value)
|
201
|
+
when :Date
|
202
|
+
Date.parse(value)
|
203
|
+
when :String
|
204
|
+
value.to_s
|
205
|
+
when :Integer
|
206
|
+
value.to_i
|
207
|
+
when :Float
|
208
|
+
value.to_f
|
209
|
+
when :BOOLEAN
|
210
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
211
|
+
true
|
212
|
+
else
|
213
|
+
false
|
214
|
+
end
|
215
|
+
when :Object
|
216
|
+
# generic object (usually a Hash), return directly
|
217
|
+
value
|
218
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
219
|
+
inner_type = Regexp.last_match[:inner_type]
|
220
|
+
value.map { |v| _deserialize(inner_type, v) }
|
221
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
222
|
+
k_type = Regexp.last_match[:k_type]
|
223
|
+
v_type = Regexp.last_match[:v_type]
|
224
|
+
{}.tap do |hash|
|
225
|
+
value.each do |k, v|
|
226
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
else # model
|
230
|
+
temp_model = CloudsmithApi.const_get(type).new
|
231
|
+
temp_model.build_from_hash(value)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# Returns the string representation of the object
|
236
|
+
# @return [String] String presentation of the object
|
237
|
+
def to_s
|
238
|
+
to_hash.to_s
|
239
|
+
end
|
240
|
+
|
241
|
+
# to_body is an alias to to_hash (backward compatibility)
|
242
|
+
# @return [Hash] Returns the object in the form of hash
|
243
|
+
def to_body
|
244
|
+
to_hash
|
245
|
+
end
|
246
|
+
|
247
|
+
# Returns the object in the form of hash
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
249
|
+
def to_hash
|
250
|
+
hash = {}
|
251
|
+
self.class.attribute_map.each_pair do |attr, param|
|
252
|
+
value = self.send(attr)
|
253
|
+
next if value.nil?
|
254
|
+
hash[param] = _to_hash(value)
|
255
|
+
end
|
256
|
+
hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Outputs non-array value in the form of hash
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
261
|
+
# @param [Object] value Any valid value
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
263
|
+
def _to_hash(value)
|
264
|
+
if value.is_a?(Array)
|
265
|
+
value.compact.map{ |v| _to_hash(v) }
|
266
|
+
elsif value.is_a?(Hash)
|
267
|
+
{}.tap do |hash|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
269
|
+
end
|
270
|
+
elsif value.respond_to? :to_hash
|
271
|
+
value.to_hash
|
272
|
+
else
|
273
|
+
value
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|