cloudsmith-api 0.52.0 → 0.53.1
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 +16 -4
- data/build.json +1 -1
- data/docs/EntitlementTokenMetric.md +9 -0
- data/docs/MetricsApi.md +158 -0
- data/docs/MetricsownerrepopackagesusageActivePackages.md +10 -0
- data/docs/PackageUsageMetric.md +11 -0
- data/docs/PackagesCopy.md +1 -0
- data/docs/Quota.md +8 -0
- data/docs/QuotaApi.md +272 -0
- data/docs/QuotaHistory.md +8 -0
- data/docs/QuotaownerhistoryHistory.md +13 -0
- data/docs/RepositoryToken.md +3 -0
- data/docs/RepositoryTokenRefresh.md +3 -0
- data/docs/RepositoryTokenSyncTokens.md +3 -0
- data/lib/cloudsmith-api.rb +8 -0
- data/lib/cloudsmith-api/api/metrics_api.rb +167 -0
- data/lib/cloudsmith-api/api/quota_api.rb +251 -0
- data/lib/cloudsmith-api/models/entitlement_token_metric.rb +209 -0
- data/lib/cloudsmith-api/models/metricsownerrepopackagesusage_active_packages.rb +209 -0
- data/lib/cloudsmith-api/models/package_usage_metric.rb +243 -0
- data/lib/cloudsmith-api/models/packages_copy.rb +14 -4
- data/lib/cloudsmith-api/models/quota.rb +194 -0
- data/lib/cloudsmith-api/models/quota_history.rb +196 -0
- data/lib/cloudsmith-api/models/quotaownerhistory_history.rb +239 -0
- data/lib/cloudsmith-api/models/repository_token.rb +31 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +31 -1
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +31 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/metrics_api_spec.rb +71 -0
- data/spec/api/quota_api_spec.rb +91 -0
- data/spec/models/entitlement_token_metric_spec.rb +48 -0
- data/spec/models/metricsownerrepopackagesusage_active_packages_spec.rb +54 -0
- data/spec/models/package_usage_metric_spec.rb +60 -0
- data/spec/models/packages_copy_spec.rb +6 -0
- data/spec/models/quota_history_spec.rb +42 -0
- data/spec/models/quota_spec.rb +42 -0
- data/spec/models/quotaownerhistory_history_spec.rb +72 -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/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.6.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/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/FUNDING.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/workflows/tests.yml +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop_opinionated.yml +1 -18
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.travis.yml +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/2.0-Upgrade.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/CHANGELOG.md +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Gemfile +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/SECURITY.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/bin/console +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/codecov.yml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/data/list.txt +312 -78
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/domain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/errors.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/list.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/rule.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/public_suffix.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/.empty +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/acceptance_test.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_find.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_find_all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_names.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_select.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_select_incremental.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_valid.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/domain_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/find_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/find_profiler_jp.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/initialization_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/list_profsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/object_binsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/psl_test.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/test_helper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/tests.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/domain_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/errors_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/list_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/public_suffix_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/rule_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-4.0.5.gemspec → public_suffix-4.0.6.gemspec} +4 -4
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
- metadata +166 -134
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.5.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be0f5251bd963602da9ad745b20e352f4a17efce5bf23cf51c563d58ed7f2b9b
|
4
|
+
data.tar.gz: 333221eb85802b94bb995c2fe32476de6efda60259d8a983386c2cd679c3e31f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7401e4078ddaee20b5addfed40d24e6076b5e7e66be366f1529fe4311d519fb223bd9426ec7c61d585e787d05d2d400eeb0d9f11eed8356101e19b26f31bc5c
|
7
|
+
data.tar.gz: 0e3f9b12f55f130b0231f34b024fcf96c082709a01c62b1e510382f1e39c6014091063d4d9c2221e478a0de7329ac03f9a4f0eb3e20409da1b3deab903fef036
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudsmith-api (0.
|
4
|
+
cloudsmith-api (0.53.1)
|
5
5
|
json (~> 2.1, >= 2.1.0)
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
7
7
|
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
ffi (1.13.1)
|
26
26
|
hashdiff (1.0.1)
|
27
27
|
json (2.3.1)
|
28
|
-
public_suffix (4.0.
|
28
|
+
public_suffix (4.0.6)
|
29
29
|
rake (12.0.0)
|
30
30
|
rspec (3.9.0)
|
31
31
|
rspec-core (~> 3.9.0)
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The API to the Cloudsmith Service
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 0.
|
10
|
+
- Package version: 0.53.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./cloudsmith-api-0.
|
27
|
+
gem install ./cloudsmith-api-0.53.1.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./cloudsmith-api-0.
|
29
|
+
(for development, run `gem install --dev ./cloudsmith-api-0.53.1.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'cloudsmith-api', '~> 0.
|
35
|
+
gem 'cloudsmith-api', '~> 0.53.1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -122,6 +122,8 @@ Class | Method | HTTP request | Description
|
|
122
122
|
*CloudsmithApi::FilesApi* | [**files_validate**](docs/FilesApi.md#files_validate) | **POST** /files/{owner}/{repo}/validate/ | Validate parameters used for create.
|
123
123
|
*CloudsmithApi::FormatsApi* | [**formats_list**](docs/FormatsApi.md#formats_list) | **GET** /formats/ | Get a list of all supported package formats.
|
124
124
|
*CloudsmithApi::FormatsApi* | [**formats_read**](docs/FormatsApi.md#formats_read) | **GET** /formats/{slug}/ | Get a specific supported package format.
|
125
|
+
*CloudsmithApi::MetricsApi* | [**metrics_entitlements_usage_list**](docs/MetricsApi.md#metrics_entitlements_usage_list) | **GET** /metrics/{owner}/{repo}/entitlements/usage/ | View for listing entitlement token usage as a metric.
|
126
|
+
*CloudsmithApi::MetricsApi* | [**metrics_packages_usage_list**](docs/MetricsApi.md#metrics_packages_usage_list) | **GET** /metrics/{owner}/{repo}/packages/usage/ | View for listing package usage metrics by user.
|
125
127
|
*CloudsmithApi::NamespacesApi* | [**namespaces_list**](docs/NamespacesApi.md#namespaces_list) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to.
|
126
128
|
*CloudsmithApi::NamespacesApi* | [**namespaces_read**](docs/NamespacesApi.md#namespaces_read) | **GET** /namespaces/{slug}/ | Views for working with namespaces.
|
127
129
|
*CloudsmithApi::OrgsApi* | [**orgs_list**](docs/OrgsApi.md#orgs_list) | **GET** /orgs/ | Get a list of all the organizations you are associated with.
|
@@ -176,6 +178,10 @@ Class | Method | HTTP request | Description
|
|
176
178
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_ruby**](docs/PackagesApi.md#packages_validate_upload_ruby) | **POST** /packages/{owner}/{repo}/validate-upload/ruby/ | Validate parameters for create Ruby package
|
177
179
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_terraform**](docs/PackagesApi.md#packages_validate_upload_terraform) | **POST** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package
|
178
180
|
*CloudsmithApi::PackagesApi* | [**packages_validate_upload_vagrant**](docs/PackagesApi.md#packages_validate_upload_vagrant) | **POST** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package
|
181
|
+
*CloudsmithApi::QuotaApi* | [**quota_history_list**](docs/QuotaApi.md#quota_history_list) | **GET** /quota/{owner}/history/ | Quota history for a given namespace.
|
182
|
+
*CloudsmithApi::QuotaApi* | [**quota_list**](docs/QuotaApi.md#quota_list) | **GET** /quota/{owner}/ | Quota usage for a given namespace.
|
183
|
+
*CloudsmithApi::QuotaApi* | [**quota_oss_history_list**](docs/QuotaApi.md#quota_oss_history_list) | **GET** /quota/{owner}/oss/history/ | Open-source Quota history for a given namespace.
|
184
|
+
*CloudsmithApi::QuotaApi* | [**quota_oss_list**](docs/QuotaApi.md#quota_oss_list) | **GET** /quota/{owner}/oss/ | Open-source Quota usage for a given namespace.
|
179
185
|
*CloudsmithApi::RatesApi* | [**rates_limits_list**](docs/RatesApi.md#rates_limits_list) | **GET** /rates/limits/ | Endpoint to check rate limits for current user.
|
180
186
|
*CloudsmithApi::ReposApi* | [**repos_all_list**](docs/ReposApi.md#repos_all_list) | **GET** /repos/ | Get a list of all repositories associated with current user.
|
181
187
|
*CloudsmithApi::ReposApi* | [**repos_create**](docs/ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace.
|
@@ -202,6 +208,7 @@ Class | Method | HTTP request | Description
|
|
202
208
|
- [CloudsmithApi::ConanPackageUpload](docs/ConanPackageUpload.md)
|
203
209
|
- [CloudsmithApi::Distribution](docs/Distribution.md)
|
204
210
|
- [CloudsmithApi::DistrosVersions](docs/DistrosVersions.md)
|
211
|
+
- [CloudsmithApi::EntitlementTokenMetric](docs/EntitlementTokenMetric.md)
|
205
212
|
- [CloudsmithApi::EntitlementsCreate](docs/EntitlementsCreate.md)
|
206
213
|
- [CloudsmithApi::EntitlementsPartialUpdate](docs/EntitlementsPartialUpdate.md)
|
207
214
|
- [CloudsmithApi::EntitlementsRefresh](docs/EntitlementsRefresh.md)
|
@@ -213,6 +220,7 @@ Class | Method | HTTP request | Description
|
|
213
220
|
- [CloudsmithApi::Format](docs/Format.md)
|
214
221
|
- [CloudsmithApi::FormatsDistributions](docs/FormatsDistributions.md)
|
215
222
|
- [CloudsmithApi::MavenPackageUpload](docs/MavenPackageUpload.md)
|
223
|
+
- [CloudsmithApi::MetricsownerrepopackagesusageActivePackages](docs/MetricsownerrepopackagesusageActivePackages.md)
|
216
224
|
- [CloudsmithApi::Namespace](docs/Namespace.md)
|
217
225
|
- [CloudsmithApi::Organization](docs/Organization.md)
|
218
226
|
- [CloudsmithApi::Package](docs/Package.md)
|
@@ -221,6 +229,7 @@ Class | Method | HTTP request | Description
|
|
221
229
|
- [CloudsmithApi::PackageFileUpload](docs/PackageFileUpload.md)
|
222
230
|
- [CloudsmithApi::PackageMove](docs/PackageMove.md)
|
223
231
|
- [CloudsmithApi::PackageStatus](docs/PackageStatus.md)
|
232
|
+
- [CloudsmithApi::PackageUsageMetric](docs/PackageUsageMetric.md)
|
224
233
|
- [CloudsmithApi::PackagesCopy](docs/PackagesCopy.md)
|
225
234
|
- [CloudsmithApi::PackagesMove](docs/PackagesMove.md)
|
226
235
|
- [CloudsmithApi::PackagesTag](docs/PackagesTag.md)
|
@@ -268,6 +277,9 @@ Class | Method | HTTP request | Description
|
|
268
277
|
- [CloudsmithApi::PackagesValidateuploadVagrant](docs/PackagesValidateuploadVagrant.md)
|
269
278
|
- [CloudsmithApi::PackagesownerrepoArchitectures](docs/PackagesownerrepoArchitectures.md)
|
270
279
|
- [CloudsmithApi::PackagesownerrepoFiles](docs/PackagesownerrepoFiles.md)
|
280
|
+
- [CloudsmithApi::Quota](docs/Quota.md)
|
281
|
+
- [CloudsmithApi::QuotaHistory](docs/QuotaHistory.md)
|
282
|
+
- [CloudsmithApi::QuotaownerhistoryHistory](docs/QuotaownerhistoryHistory.md)
|
271
283
|
- [CloudsmithApi::RawPackageUpload](docs/RawPackageUpload.md)
|
272
284
|
- [CloudsmithApi::ReposCreate](docs/ReposCreate.md)
|
273
285
|
- [CloudsmithApi::ReposGpgKeys](docs/ReposGpgKeys.md)
|
data/build.json
CHANGED
data/docs/MetricsApi.md
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
# CloudsmithApi::MetricsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudsmith.io*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**metrics_entitlements_usage_list**](MetricsApi.md#metrics_entitlements_usage_list) | **GET** /metrics/{owner}/{repo}/entitlements/usage/ | View for listing entitlement token usage as a metric.
|
8
|
+
[**metrics_packages_usage_list**](MetricsApi.md#metrics_packages_usage_list) | **GET** /metrics/{owner}/{repo}/packages/usage/ | View for listing package usage metrics by user.
|
9
|
+
|
10
|
+
|
11
|
+
# **metrics_entitlements_usage_list**
|
12
|
+
> Array<EntitlementTokenMetric> metrics_entitlements_usage_list(owner, repo, opts)
|
13
|
+
|
14
|
+
View for listing entitlement token usage as a metric.
|
15
|
+
|
16
|
+
View for listing entitlement token usage as a metric.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'cloudsmith-api'
|
22
|
+
# setup authorization
|
23
|
+
CloudsmithApi.configure do |config|
|
24
|
+
# Configure API key authorization: apikey
|
25
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
28
|
+
|
29
|
+
# Configure API key authorization: csrf_token
|
30
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = CloudsmithApi::MetricsApi.new
|
36
|
+
|
37
|
+
owner = "owner_example" # String |
|
38
|
+
|
39
|
+
repo = "repo_example" # String |
|
40
|
+
|
41
|
+
opts = {
|
42
|
+
page: 56, # Integer | A page number within the paginated result set.
|
43
|
+
page_size: 56, # Integer | Number of results to return per page.
|
44
|
+
finish: 56, # Integer | Filter token usage ending before this datetime (UTC by default unless otherwise specified). Defaults to now if not supplied.
|
45
|
+
start: 56, # Integer | Filter token usage starting from this datetime (UTC by default unless otherwise specified)).
|
46
|
+
tokens: "tokens_example" # String | A comma seperated list of tokens (slug perm) to include in the results.
|
47
|
+
}
|
48
|
+
|
49
|
+
begin
|
50
|
+
#View for listing entitlement token usage as a metric.
|
51
|
+
result = api_instance.metrics_entitlements_usage_list(owner, repo, opts)
|
52
|
+
p result
|
53
|
+
rescue CloudsmithApi::ApiError => e
|
54
|
+
puts "Exception when calling MetricsApi->metrics_entitlements_usage_list: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
Name | Type | Description | Notes
|
61
|
+
------------- | ------------- | ------------- | -------------
|
62
|
+
**owner** | **String**| |
|
63
|
+
**repo** | **String**| |
|
64
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
65
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
66
|
+
**finish** | **Integer**| Filter token usage ending before this datetime (UTC by default unless otherwise specified). Defaults to now if not supplied. | [optional]
|
67
|
+
**start** | **Integer**| Filter token usage starting from this datetime (UTC by default unless otherwise specified)). | [optional]
|
68
|
+
**tokens** | **String**| A comma seperated list of tokens (slug perm) to include in the results. | [optional]
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**Array<EntitlementTokenMetric>**](EntitlementTokenMetric.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: Not defined
|
81
|
+
- **Accept**: Not defined
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
# **metrics_packages_usage_list**
|
86
|
+
> Array<PackageUsageMetric> metrics_packages_usage_list(owner, repo, opts)
|
87
|
+
|
88
|
+
View for listing package usage metrics by user.
|
89
|
+
|
90
|
+
View for listing package usage metrics by user.
|
91
|
+
|
92
|
+
### Example
|
93
|
+
```ruby
|
94
|
+
# load the gem
|
95
|
+
require 'cloudsmith-api'
|
96
|
+
# setup authorization
|
97
|
+
CloudsmithApi.configure do |config|
|
98
|
+
# Configure API key authorization: apikey
|
99
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
101
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
102
|
+
|
103
|
+
# Configure API key authorization: csrf_token
|
104
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
105
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
106
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = CloudsmithApi::MetricsApi.new
|
110
|
+
|
111
|
+
owner = "owner_example" # String |
|
112
|
+
|
113
|
+
repo = "repo_example" # String |
|
114
|
+
|
115
|
+
opts = {
|
116
|
+
page: 56, # Integer | A page number within the paginated result set.
|
117
|
+
page_size: 56, # Integer | Number of results to return per page.
|
118
|
+
finish: 56, # Integer | Filter token usage ending before this datetime (UTC). Defaults to now if not supplied.
|
119
|
+
packages: "packages_example", # String | A comma seperated list of packages (slug perm) to include in the results.
|
120
|
+
start: 56 # Integer | Filter token usage starting from this datetime (UTC)).
|
121
|
+
}
|
122
|
+
|
123
|
+
begin
|
124
|
+
#View for listing package usage metrics by user.
|
125
|
+
result = api_instance.metrics_packages_usage_list(owner, repo, opts)
|
126
|
+
p result
|
127
|
+
rescue CloudsmithApi::ApiError => e
|
128
|
+
puts "Exception when calling MetricsApi->metrics_packages_usage_list: #{e}"
|
129
|
+
end
|
130
|
+
```
|
131
|
+
|
132
|
+
### Parameters
|
133
|
+
|
134
|
+
Name | Type | Description | Notes
|
135
|
+
------------- | ------------- | ------------- | -------------
|
136
|
+
**owner** | **String**| |
|
137
|
+
**repo** | **String**| |
|
138
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
139
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
140
|
+
**finish** | **Integer**| Filter token usage ending before this datetime (UTC). Defaults to now if not supplied. | [optional]
|
141
|
+
**packages** | **String**| A comma seperated list of packages (slug perm) to include in the results. | [optional]
|
142
|
+
**start** | **Integer**| Filter token usage starting from this datetime (UTC)). | [optional]
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
[**Array<PackageUsageMetric>**](PackageUsageMetric.md)
|
147
|
+
|
148
|
+
### Authorization
|
149
|
+
|
150
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
151
|
+
|
152
|
+
### HTTP request headers
|
153
|
+
|
154
|
+
- **Content-Type**: Not defined
|
155
|
+
- **Accept**: Not defined
|
156
|
+
|
157
|
+
|
158
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudsmithApi::MetricsownerrepopackagesusageActivePackages
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | | [optional]
|
7
|
+
**slug** | **String** | | [optional]
|
8
|
+
**version** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudsmithApi::PackageUsageMetric
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**active_packages** | [**Array<MetricsownerrepopackagesusageActivePackages>**](MetricsownerrepopackagesusageActivePackages.md) | |
|
7
|
+
**downloads_per_package** | **Object** | |
|
8
|
+
**inactive_packages** | [**Array<MetricsownerrepopackagesusageActivePackages>**](MetricsownerrepopackagesusageActivePackages.md) | |
|
9
|
+
**totals** | **Object** | |
|
10
|
+
|
11
|
+
|
data/docs/PackagesCopy.md
CHANGED
@@ -4,5 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**destination** | **String** | None |
|
7
|
+
**republish** | **BOOLEAN** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
|
7
8
|
|
8
9
|
|
data/docs/Quota.md
ADDED
data/docs/QuotaApi.md
ADDED
@@ -0,0 +1,272 @@
|
|
1
|
+
# CloudsmithApi::QuotaApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudsmith.io*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**quota_history_list**](QuotaApi.md#quota_history_list) | **GET** /quota/{owner}/history/ | Quota history for a given namespace.
|
8
|
+
[**quota_list**](QuotaApi.md#quota_list) | **GET** /quota/{owner}/ | Quota usage for a given namespace.
|
9
|
+
[**quota_oss_history_list**](QuotaApi.md#quota_oss_history_list) | **GET** /quota/{owner}/oss/history/ | Open-source Quota history for a given namespace.
|
10
|
+
[**quota_oss_list**](QuotaApi.md#quota_oss_list) | **GET** /quota/{owner}/oss/ | Open-source Quota usage for a given namespace.
|
11
|
+
|
12
|
+
|
13
|
+
# **quota_history_list**
|
14
|
+
> Array<QuotaHistory> quota_history_list(owner, opts)
|
15
|
+
|
16
|
+
Quota history for a given namespace.
|
17
|
+
|
18
|
+
Quota history for a given namespace.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'cloudsmith-api'
|
24
|
+
# setup authorization
|
25
|
+
CloudsmithApi.configure do |config|
|
26
|
+
# Configure API key authorization: apikey
|
27
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
30
|
+
|
31
|
+
# Configure API key authorization: csrf_token
|
32
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
34
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = CloudsmithApi::QuotaApi.new
|
38
|
+
|
39
|
+
owner = "owner_example" # String |
|
40
|
+
|
41
|
+
opts = {
|
42
|
+
page: 56, # Integer | A page number within the paginated result set.
|
43
|
+
page_size: 56 # Integer | Number of results to return per page.
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Quota history for a given namespace.
|
48
|
+
result = api_instance.quota_history_list(owner, opts)
|
49
|
+
p result
|
50
|
+
rescue CloudsmithApi::ApiError => e
|
51
|
+
puts "Exception when calling QuotaApi->quota_history_list: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**owner** | **String**| |
|
60
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
61
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**Array<QuotaHistory>**](QuotaHistory.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: Not defined
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
# **quota_list**
|
79
|
+
> Array<Quota> quota_list(owner, opts)
|
80
|
+
|
81
|
+
Quota usage for a given namespace.
|
82
|
+
|
83
|
+
Quota usage for a given namespace.
|
84
|
+
|
85
|
+
### Example
|
86
|
+
```ruby
|
87
|
+
# load the gem
|
88
|
+
require 'cloudsmith-api'
|
89
|
+
# setup authorization
|
90
|
+
CloudsmithApi.configure do |config|
|
91
|
+
# Configure API key authorization: apikey
|
92
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
93
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
94
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
95
|
+
|
96
|
+
# Configure API key authorization: csrf_token
|
97
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
98
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
99
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
100
|
+
end
|
101
|
+
|
102
|
+
api_instance = CloudsmithApi::QuotaApi.new
|
103
|
+
|
104
|
+
owner = "owner_example" # String |
|
105
|
+
|
106
|
+
opts = {
|
107
|
+
page: 56, # Integer | A page number within the paginated result set.
|
108
|
+
page_size: 56 # Integer | Number of results to return per page.
|
109
|
+
}
|
110
|
+
|
111
|
+
begin
|
112
|
+
#Quota usage for a given namespace.
|
113
|
+
result = api_instance.quota_list(owner, opts)
|
114
|
+
p result
|
115
|
+
rescue CloudsmithApi::ApiError => e
|
116
|
+
puts "Exception when calling QuotaApi->quota_list: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
Name | Type | Description | Notes
|
123
|
+
------------- | ------------- | ------------- | -------------
|
124
|
+
**owner** | **String**| |
|
125
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
126
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
127
|
+
|
128
|
+
### Return type
|
129
|
+
|
130
|
+
[**Array<Quota>**](Quota.md)
|
131
|
+
|
132
|
+
### Authorization
|
133
|
+
|
134
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
135
|
+
|
136
|
+
### HTTP request headers
|
137
|
+
|
138
|
+
- **Content-Type**: Not defined
|
139
|
+
- **Accept**: Not defined
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
# **quota_oss_history_list**
|
144
|
+
> Array<QuotaHistory> quota_oss_history_list(owner, opts)
|
145
|
+
|
146
|
+
Open-source Quota history for a given namespace.
|
147
|
+
|
148
|
+
Open-source Quota history for a given namespace.
|
149
|
+
|
150
|
+
### Example
|
151
|
+
```ruby
|
152
|
+
# load the gem
|
153
|
+
require 'cloudsmith-api'
|
154
|
+
# setup authorization
|
155
|
+
CloudsmithApi.configure do |config|
|
156
|
+
# Configure API key authorization: apikey
|
157
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
158
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
159
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
160
|
+
|
161
|
+
# Configure API key authorization: csrf_token
|
162
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
163
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
164
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
165
|
+
end
|
166
|
+
|
167
|
+
api_instance = CloudsmithApi::QuotaApi.new
|
168
|
+
|
169
|
+
owner = "owner_example" # String |
|
170
|
+
|
171
|
+
opts = {
|
172
|
+
page: 56, # Integer | A page number within the paginated result set.
|
173
|
+
page_size: 56 # Integer | Number of results to return per page.
|
174
|
+
}
|
175
|
+
|
176
|
+
begin
|
177
|
+
#Open-source Quota history for a given namespace.
|
178
|
+
result = api_instance.quota_oss_history_list(owner, opts)
|
179
|
+
p result
|
180
|
+
rescue CloudsmithApi::ApiError => e
|
181
|
+
puts "Exception when calling QuotaApi->quota_oss_history_list: #{e}"
|
182
|
+
end
|
183
|
+
```
|
184
|
+
|
185
|
+
### Parameters
|
186
|
+
|
187
|
+
Name | Type | Description | Notes
|
188
|
+
------------- | ------------- | ------------- | -------------
|
189
|
+
**owner** | **String**| |
|
190
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
191
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
192
|
+
|
193
|
+
### Return type
|
194
|
+
|
195
|
+
[**Array<QuotaHistory>**](QuotaHistory.md)
|
196
|
+
|
197
|
+
### Authorization
|
198
|
+
|
199
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
200
|
+
|
201
|
+
### HTTP request headers
|
202
|
+
|
203
|
+
- **Content-Type**: Not defined
|
204
|
+
- **Accept**: Not defined
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
# **quota_oss_list**
|
209
|
+
> Array<Quota> quota_oss_list(owner, opts)
|
210
|
+
|
211
|
+
Open-source Quota usage for a given namespace.
|
212
|
+
|
213
|
+
Open-source Quota usage for a given namespace.
|
214
|
+
|
215
|
+
### Example
|
216
|
+
```ruby
|
217
|
+
# load the gem
|
218
|
+
require 'cloudsmith-api'
|
219
|
+
# setup authorization
|
220
|
+
CloudsmithApi.configure do |config|
|
221
|
+
# Configure API key authorization: apikey
|
222
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
223
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
224
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
225
|
+
|
226
|
+
# Configure API key authorization: csrf_token
|
227
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
228
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
229
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
230
|
+
end
|
231
|
+
|
232
|
+
api_instance = CloudsmithApi::QuotaApi.new
|
233
|
+
|
234
|
+
owner = "owner_example" # String |
|
235
|
+
|
236
|
+
opts = {
|
237
|
+
page: 56, # Integer | A page number within the paginated result set.
|
238
|
+
page_size: 56 # Integer | Number of results to return per page.
|
239
|
+
}
|
240
|
+
|
241
|
+
begin
|
242
|
+
#Open-source Quota usage for a given namespace.
|
243
|
+
result = api_instance.quota_oss_list(owner, opts)
|
244
|
+
p result
|
245
|
+
rescue CloudsmithApi::ApiError => e
|
246
|
+
puts "Exception when calling QuotaApi->quota_oss_list: #{e}"
|
247
|
+
end
|
248
|
+
```
|
249
|
+
|
250
|
+
### Parameters
|
251
|
+
|
252
|
+
Name | Type | Description | Notes
|
253
|
+
------------- | ------------- | ------------- | -------------
|
254
|
+
**owner** | **String**| |
|
255
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
256
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
257
|
+
|
258
|
+
### Return type
|
259
|
+
|
260
|
+
[**Array<Quota>**](Quota.md)
|
261
|
+
|
262
|
+
### Authorization
|
263
|
+
|
264
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
265
|
+
|
266
|
+
### HTTP request headers
|
267
|
+
|
268
|
+
- **Content-Type**: Not defined
|
269
|
+
- **Accept**: Not defined
|
270
|
+
|
271
|
+
|
272
|
+
|