cloudsmith-api 0.52.5 → 0.52.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 +1 -1
- data/README.md +6 -4
- data/build.json +1 -1
- data/docs/EntitlmentTokenMetric.md +9 -0
- data/docs/MetricsApi.md +83 -0
- data/docs/RepositoryToken.md +1 -0
- data/docs/RepositoryTokenRefresh.md +1 -0
- data/docs/RepositoryTokenSyncTokens.md +1 -0
- data/lib/cloudsmith-api.rb +2 -0
- data/lib/cloudsmith-api/api/metrics_api.rb +95 -0
- data/lib/cloudsmith-api/models/entitlment_token_metric.rb +209 -0
- data/lib/cloudsmith-api/models/repository_token.rb +11 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +11 -1
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +11 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/metrics_api_spec.rb +53 -0
- data/spec/models/entitlment_token_metric_spec.rb +48 -0
- data/spec/models/repository_token_refresh_spec.rb +6 -0
- data/spec/models/repository_token_spec.rb +6 -0
- data/spec/models/repository_token_sync_tokens_spec.rb +6 -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/specifications/sys-uname-1.2.1.gemspec +1 -1
- metadata +95 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac0c23c48552b5709804cc0ee3ae65c0c7bc5e0ab070613bc543c268cf375648
|
4
|
+
data.tar.gz: 510b8dfecf90c850d19c12a89e2acfcaeee6d313bb069b987f8cc96b1c9310eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b2ab045adb806c82955199fe9b41fdf251a85e02b75a18f191832ec957b507829a20c0edb55e2508b6a23b29b98fbc05d8984da23cfe2bd36b9e47932602f04
|
7
|
+
data.tar.gz: 60edab0ce0ce1e6070f880fa4e4770fafe3023b3dbc680b16fe72e7209f094eb315f538d2ce31e9aa096eb317f3d8217561181b0c82379f04fa739a4c8ce5bff
|
data/Gemfile.lock
CHANGED
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.52.
|
10
|
+
- Package version: 0.52.79
|
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.52.
|
27
|
+
gem install ./cloudsmith-api-0.52.79.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./cloudsmith-api-0.52.
|
29
|
+
(for development, run `gem install --dev ./cloudsmith-api-0.52.79.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.52.
|
35
|
+
gem 'cloudsmith-api', '~> 0.52.79'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -122,6 +122,7 @@ 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.
|
125
126
|
*CloudsmithApi::NamespacesApi* | [**namespaces_list**](docs/NamespacesApi.md#namespaces_list) | **GET** /namespaces/ | Get a list of all namespaces the user belongs to.
|
126
127
|
*CloudsmithApi::NamespacesApi* | [**namespaces_read**](docs/NamespacesApi.md#namespaces_read) | **GET** /namespaces/{slug}/ | Views for working with namespaces.
|
127
128
|
*CloudsmithApi::OrgsApi* | [**orgs_list**](docs/OrgsApi.md#orgs_list) | **GET** /orgs/ | Get a list of all the organizations you are associated with.
|
@@ -206,6 +207,7 @@ Class | Method | HTTP request | Description
|
|
206
207
|
- [CloudsmithApi::EntitlementsPartialUpdate](docs/EntitlementsPartialUpdate.md)
|
207
208
|
- [CloudsmithApi::EntitlementsRefresh](docs/EntitlementsRefresh.md)
|
208
209
|
- [CloudsmithApi::EntitlementsSync](docs/EntitlementsSync.md)
|
210
|
+
- [CloudsmithApi::EntitlmentTokenMetric](docs/EntitlmentTokenMetric.md)
|
209
211
|
- [CloudsmithApi::FilesAbort](docs/FilesAbort.md)
|
210
212
|
- [CloudsmithApi::FilesComplete](docs/FilesComplete.md)
|
211
213
|
- [CloudsmithApi::FilesCreate](docs/FilesCreate.md)
|
data/build.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"gemName": "cloudsmith-api",
|
9
9
|
"gemRequiredRubyVersion": ">= 1.9",
|
10
10
|
"gemSummary": "Cloudsmith API",
|
11
|
-
"gemVersion": "0.52.
|
11
|
+
"gemVersion": "0.52.79",
|
12
12
|
"hideGenerationTimestamp": true,
|
13
13
|
"moduleName": "CloudsmithApi",
|
14
14
|
"sortParamsByRequiredFlag": true
|
data/docs/MetricsApi.md
ADDED
@@ -0,0 +1,83 @@
|
|
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
|
+
|
9
|
+
|
10
|
+
# **metrics_entitlements_usage_list**
|
11
|
+
> Array<EntitlmentTokenMetric> metrics_entitlements_usage_list(owner, repo, opts)
|
12
|
+
|
13
|
+
View for listing entitlement token usage as a metric.
|
14
|
+
|
15
|
+
View for listing entitlement token usage as a metric.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'cloudsmith-api'
|
21
|
+
# setup authorization
|
22
|
+
CloudsmithApi.configure do |config|
|
23
|
+
# Configure API key authorization: apikey
|
24
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
27
|
+
|
28
|
+
# Configure API key authorization: csrf_token
|
29
|
+
config.api_key['X-CSRFToken'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
#config.api_key_prefix['X-CSRFToken'] = 'Bearer'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = CloudsmithApi::MetricsApi.new
|
35
|
+
|
36
|
+
owner = "owner_example" # String |
|
37
|
+
|
38
|
+
repo = "repo_example" # String |
|
39
|
+
|
40
|
+
opts = {
|
41
|
+
page: 56, # Integer | A page number within the paginated result set.
|
42
|
+
page_size: 56, # Integer | Number of results to return per page.
|
43
|
+
finish: 56, # Integer | Filter token usage ending before this timestamp. Defaults to now if not supplied.
|
44
|
+
start: 56, # Integer | Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)).
|
45
|
+
tokens: "tokens_example" # String | A comma seperated list of tokens (slug perm) to include in the results.
|
46
|
+
}
|
47
|
+
|
48
|
+
begin
|
49
|
+
#View for listing entitlement token usage as a metric.
|
50
|
+
result = api_instance.metrics_entitlements_usage_list(owner, repo, opts)
|
51
|
+
p result
|
52
|
+
rescue CloudsmithApi::ApiError => e
|
53
|
+
puts "Exception when calling MetricsApi->metrics_entitlements_usage_list: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**owner** | **String**| |
|
62
|
+
**repo** | **String**| |
|
63
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
64
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
65
|
+
**finish** | **Integer**| Filter token usage ending before this timestamp. Defaults to now if not supplied. | [optional]
|
66
|
+
**start** | **Integer**| Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)). | [optional]
|
67
|
+
**tokens** | **String**| A comma seperated list of tokens (slug perm) to include in the results. | [optional]
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
[**Array<EntitlmentTokenMetric>**](EntitlmentTokenMetric.md)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
[apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token)
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: Not defined
|
80
|
+
- **Accept**: Not defined
|
81
|
+
|
82
|
+
|
83
|
+
|
data/docs/RepositoryToken.md
CHANGED
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
|
|
26
26
|
**updated_at** | **String** | The datetime the token was updated at. | [optional]
|
27
27
|
**updated_by** | **String** | | [optional]
|
28
28
|
**updated_by_url** | **String** | | [optional]
|
29
|
+
**usage** | **String** | | [optional]
|
29
30
|
**user** | **String** | | [optional]
|
30
31
|
**user_url** | **String** | | [optional]
|
31
32
|
|
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
|
|
26
26
|
**updated_at** | **String** | The datetime the token was updated at. | [optional]
|
27
27
|
**updated_by** | **String** | | [optional]
|
28
28
|
**updated_by_url** | **String** | | [optional]
|
29
|
+
**usage** | **String** | | [optional]
|
29
30
|
**user** | **String** | | [optional]
|
30
31
|
**user_url** | **String** | | [optional]
|
31
32
|
|
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
|
|
26
26
|
**updated_at** | **String** | The datetime the token was updated at. | [optional]
|
27
27
|
**updated_by** | **String** | | [optional]
|
28
28
|
**updated_by_url** | **String** | | [optional]
|
29
|
+
**usage** | **String** | | [optional]
|
29
30
|
**user** | **String** | | [optional]
|
30
31
|
**user_url** | **String** | | [optional]
|
31
32
|
|
data/lib/cloudsmith-api.rb
CHANGED
@@ -25,6 +25,7 @@ require 'cloudsmith-api/models/entitlements_create'
|
|
25
25
|
require 'cloudsmith-api/models/entitlements_partial_update'
|
26
26
|
require 'cloudsmith-api/models/entitlements_refresh'
|
27
27
|
require 'cloudsmith-api/models/entitlements_sync'
|
28
|
+
require 'cloudsmith-api/models/entitlment_token_metric'
|
28
29
|
require 'cloudsmith-api/models/files_abort'
|
29
30
|
require 'cloudsmith-api/models/files_complete'
|
30
31
|
require 'cloudsmith-api/models/files_create'
|
@@ -116,6 +117,7 @@ require 'cloudsmith-api/api/distros_api'
|
|
116
117
|
require 'cloudsmith-api/api/entitlements_api'
|
117
118
|
require 'cloudsmith-api/api/files_api'
|
118
119
|
require 'cloudsmith-api/api/formats_api'
|
120
|
+
require 'cloudsmith-api/api/metrics_api'
|
119
121
|
require 'cloudsmith-api/api/namespaces_api'
|
120
122
|
require 'cloudsmith-api/api/orgs_api'
|
121
123
|
require 'cloudsmith-api/api/packages_api'
|
@@ -0,0 +1,95 @@
|
|
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 MetricsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# View for listing entitlement token usage as a metric.
|
24
|
+
# View for listing entitlement token usage as a metric.
|
25
|
+
# @param owner
|
26
|
+
# @param repo
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
29
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
30
|
+
# @option opts [Integer] :finish Filter token usage ending before this timestamp. Defaults to now if not supplied.
|
31
|
+
# @option opts [Integer] :start Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)).
|
32
|
+
# @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results.
|
33
|
+
# @return [Array<EntitlmentTokenMetric>]
|
34
|
+
def metrics_entitlements_usage_list(owner, repo, opts = {})
|
35
|
+
data, _status_code, _headers = metrics_entitlements_usage_list_with_http_info(owner, repo, opts)
|
36
|
+
return data
|
37
|
+
end
|
38
|
+
|
39
|
+
# View for listing entitlement token usage as a metric.
|
40
|
+
# View for listing entitlement token usage as a metric.
|
41
|
+
# @param owner
|
42
|
+
# @param repo
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
45
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
46
|
+
# @option opts [Integer] :finish Filter token usage ending before this timestamp. Defaults to now if not supplied.
|
47
|
+
# @option opts [Integer] :start Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)).
|
48
|
+
# @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results.
|
49
|
+
# @return [Array<(Array<EntitlmentTokenMetric>, Fixnum, Hash)>] Array<EntitlmentTokenMetric> data, response status code and response headers
|
50
|
+
def metrics_entitlements_usage_list_with_http_info(owner, repo, opts = {})
|
51
|
+
if @api_client.config.debugging
|
52
|
+
@api_client.config.logger.debug "Calling API: MetricsApi.metrics_entitlements_usage_list ..."
|
53
|
+
end
|
54
|
+
# verify the required parameter 'owner' is set
|
55
|
+
if @api_client.config.client_side_validation && owner.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling MetricsApi.metrics_entitlements_usage_list"
|
57
|
+
end
|
58
|
+
# verify the required parameter 'repo' is set
|
59
|
+
if @api_client.config.client_side_validation && repo.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'repo' when calling MetricsApi.metrics_entitlements_usage_list"
|
61
|
+
end
|
62
|
+
# resource path
|
63
|
+
local_var_path = "/metrics/{owner}/{repo}/entitlements/usage/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
|
64
|
+
|
65
|
+
# query parameters
|
66
|
+
query_params = {}
|
67
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
68
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
69
|
+
query_params[:'finish'] = opts[:'finish'] if !opts[:'finish'].nil?
|
70
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
71
|
+
query_params[:'tokens'] = opts[:'tokens'] if !opts[:'tokens'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = {}
|
75
|
+
|
76
|
+
# form parameters
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
# http body (model)
|
80
|
+
post_body = nil
|
81
|
+
auth_names = ['apikey', 'csrf_token']
|
82
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => 'Array<EntitlmentTokenMetric>')
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: MetricsApi#metrics_entitlements_usage_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,209 @@
|
|
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 EntitlmentTokenMetric
|
18
|
+
#
|
19
|
+
attr_accessor :bandwidth_per_token
|
20
|
+
|
21
|
+
#
|
22
|
+
attr_accessor :totals
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'bandwidth_per_token' => :'bandwidth_per_token',
|
29
|
+
:'totals' => :'totals'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'bandwidth_per_token' => :'Object',
|
37
|
+
:'totals' => :'Object'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'bandwidth_per_token')
|
50
|
+
self.bandwidth_per_token = attributes[:'bandwidth_per_token']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'totals')
|
54
|
+
self.totals = attributes[:'totals']
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properies with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
if @bandwidth_per_token.nil?
|
64
|
+
invalid_properties.push("invalid value for 'bandwidth_per_token', bandwidth_per_token cannot be nil.")
|
65
|
+
end
|
66
|
+
|
67
|
+
if @totals.nil?
|
68
|
+
invalid_properties.push("invalid value for 'totals', totals cannot be nil.")
|
69
|
+
end
|
70
|
+
|
71
|
+
return invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
return false if @bandwidth_per_token.nil?
|
78
|
+
return false if @totals.nil?
|
79
|
+
return true
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def ==(o)
|
85
|
+
return true if self.equal?(o)
|
86
|
+
self.class == o.class &&
|
87
|
+
bandwidth_per_token == o.bandwidth_per_token &&
|
88
|
+
totals == o.totals
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Fixnum] Hash code
|
99
|
+
def hash
|
100
|
+
[bandwidth_per_token, totals].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
114
|
+
end
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
118
|
+
end
|
119
|
+
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
# Deserializes the data based on type
|
124
|
+
# @param string type Data type
|
125
|
+
# @param string value Value to be deserialized
|
126
|
+
# @return [Object] Deserialized data
|
127
|
+
def _deserialize(type, value)
|
128
|
+
case type.to_sym
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
131
|
+
when :Date
|
132
|
+
Date.parse(value)
|
133
|
+
when :String
|
134
|
+
value.to_s
|
135
|
+
when :Integer
|
136
|
+
value.to_i
|
137
|
+
when :Float
|
138
|
+
value.to_f
|
139
|
+
when :BOOLEAN
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
141
|
+
true
|
142
|
+
else
|
143
|
+
false
|
144
|
+
end
|
145
|
+
when :Object
|
146
|
+
# generic object (usually a Hash), return directly
|
147
|
+
value
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
154
|
+
{}.tap do |hash|
|
155
|
+
value.each do |k, v|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
else # model
|
160
|
+
temp_model = CloudsmithApi.const_get(type).new
|
161
|
+
temp_model.build_from_hash(value)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the string representation of the object
|
166
|
+
# @return [String] String presentation of the object
|
167
|
+
def to_s
|
168
|
+
to_hash.to_s
|
169
|
+
end
|
170
|
+
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_body
|
174
|
+
to_hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the object in the form of hash
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_hash
|
180
|
+
hash = {}
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
182
|
+
value = self.send(attr)
|
183
|
+
next if value.nil?
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Outputs non-array value in the form of hash
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
191
|
+
# @param [Object] value Any valid value
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
193
|
+
def _to_hash(value)
|
194
|
+
if value.is_a?(Array)
|
195
|
+
value.compact.map{ |v| _to_hash(v) }
|
196
|
+
elsif value.is_a?(Hash)
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
+
end
|
200
|
+
elsif value.respond_to? :to_hash
|
201
|
+
value.to_hash
|
202
|
+
else
|
203
|
+
value
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
208
|
+
|
209
|
+
end
|
@@ -84,6 +84,9 @@ module CloudsmithApi
|
|
84
84
|
#
|
85
85
|
attr_accessor :updated_by_url
|
86
86
|
|
87
|
+
#
|
88
|
+
attr_accessor :usage
|
89
|
+
|
87
90
|
#
|
88
91
|
attr_accessor :user
|
89
92
|
|
@@ -117,6 +120,7 @@ module CloudsmithApi
|
|
117
120
|
:'updated_at' => :'updated_at',
|
118
121
|
:'updated_by' => :'updated_by',
|
119
122
|
:'updated_by_url' => :'updated_by_url',
|
123
|
+
:'usage' => :'usage',
|
120
124
|
:'user' => :'user',
|
121
125
|
:'user_url' => :'user_url'
|
122
126
|
}
|
@@ -148,6 +152,7 @@ module CloudsmithApi
|
|
148
152
|
:'updated_at' => :'String',
|
149
153
|
:'updated_by' => :'String',
|
150
154
|
:'updated_by_url' => :'String',
|
155
|
+
:'usage' => :'String',
|
151
156
|
:'user' => :'String',
|
152
157
|
:'user_url' => :'String'
|
153
158
|
}
|
@@ -253,6 +258,10 @@ module CloudsmithApi
|
|
253
258
|
self.updated_by_url = attributes[:'updated_by_url']
|
254
259
|
end
|
255
260
|
|
261
|
+
if attributes.has_key?(:'usage')
|
262
|
+
self.usage = attributes[:'usage']
|
263
|
+
end
|
264
|
+
|
256
265
|
if attributes.has_key?(:'user')
|
257
266
|
self.user = attributes[:'user']
|
258
267
|
end
|
@@ -309,6 +318,7 @@ module CloudsmithApi
|
|
309
318
|
updated_at == o.updated_at &&
|
310
319
|
updated_by == o.updated_by &&
|
311
320
|
updated_by_url == o.updated_by_url &&
|
321
|
+
usage == o.usage &&
|
312
322
|
user == o.user &&
|
313
323
|
user_url == o.user_url
|
314
324
|
end
|
@@ -322,7 +332,7 @@ module CloudsmithApi
|
|
322
332
|
# Calculates hash code according to all attributes.
|
323
333
|
# @return [Fixnum] Hash code
|
324
334
|
def hash
|
325
|
-
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, user, user_url].hash
|
335
|
+
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
326
336
|
end
|
327
337
|
|
328
338
|
# Builds the object from hash
|
@@ -84,6 +84,9 @@ module CloudsmithApi
|
|
84
84
|
#
|
85
85
|
attr_accessor :updated_by_url
|
86
86
|
|
87
|
+
#
|
88
|
+
attr_accessor :usage
|
89
|
+
|
87
90
|
#
|
88
91
|
attr_accessor :user
|
89
92
|
|
@@ -117,6 +120,7 @@ module CloudsmithApi
|
|
117
120
|
:'updated_at' => :'updated_at',
|
118
121
|
:'updated_by' => :'updated_by',
|
119
122
|
:'updated_by_url' => :'updated_by_url',
|
123
|
+
:'usage' => :'usage',
|
120
124
|
:'user' => :'user',
|
121
125
|
:'user_url' => :'user_url'
|
122
126
|
}
|
@@ -148,6 +152,7 @@ module CloudsmithApi
|
|
148
152
|
:'updated_at' => :'String',
|
149
153
|
:'updated_by' => :'String',
|
150
154
|
:'updated_by_url' => :'String',
|
155
|
+
:'usage' => :'String',
|
151
156
|
:'user' => :'String',
|
152
157
|
:'user_url' => :'String'
|
153
158
|
}
|
@@ -253,6 +258,10 @@ module CloudsmithApi
|
|
253
258
|
self.updated_by_url = attributes[:'updated_by_url']
|
254
259
|
end
|
255
260
|
|
261
|
+
if attributes.has_key?(:'usage')
|
262
|
+
self.usage = attributes[:'usage']
|
263
|
+
end
|
264
|
+
|
256
265
|
if attributes.has_key?(:'user')
|
257
266
|
self.user = attributes[:'user']
|
258
267
|
end
|
@@ -304,6 +313,7 @@ module CloudsmithApi
|
|
304
313
|
updated_at == o.updated_at &&
|
305
314
|
updated_by == o.updated_by &&
|
306
315
|
updated_by_url == o.updated_by_url &&
|
316
|
+
usage == o.usage &&
|
307
317
|
user == o.user &&
|
308
318
|
user_url == o.user_url
|
309
319
|
end
|
@@ -317,7 +327,7 @@ module CloudsmithApi
|
|
317
327
|
# Calculates hash code according to all attributes.
|
318
328
|
# @return [Fixnum] Hash code
|
319
329
|
def hash
|
320
|
-
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, user, user_url].hash
|
330
|
+
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
321
331
|
end
|
322
332
|
|
323
333
|
# Builds the object from hash
|
@@ -84,6 +84,9 @@ module CloudsmithApi
|
|
84
84
|
#
|
85
85
|
attr_accessor :updated_by_url
|
86
86
|
|
87
|
+
#
|
88
|
+
attr_accessor :usage
|
89
|
+
|
87
90
|
#
|
88
91
|
attr_accessor :user
|
89
92
|
|
@@ -117,6 +120,7 @@ module CloudsmithApi
|
|
117
120
|
:'updated_at' => :'updated_at',
|
118
121
|
:'updated_by' => :'updated_by',
|
119
122
|
:'updated_by_url' => :'updated_by_url',
|
123
|
+
:'usage' => :'usage',
|
120
124
|
:'user' => :'user',
|
121
125
|
:'user_url' => :'user_url'
|
122
126
|
}
|
@@ -148,6 +152,7 @@ module CloudsmithApi
|
|
148
152
|
:'updated_at' => :'String',
|
149
153
|
:'updated_by' => :'String',
|
150
154
|
:'updated_by_url' => :'String',
|
155
|
+
:'usage' => :'String',
|
151
156
|
:'user' => :'String',
|
152
157
|
:'user_url' => :'String'
|
153
158
|
}
|
@@ -253,6 +258,10 @@ module CloudsmithApi
|
|
253
258
|
self.updated_by_url = attributes[:'updated_by_url']
|
254
259
|
end
|
255
260
|
|
261
|
+
if attributes.has_key?(:'usage')
|
262
|
+
self.usage = attributes[:'usage']
|
263
|
+
end
|
264
|
+
|
256
265
|
if attributes.has_key?(:'user')
|
257
266
|
self.user = attributes[:'user']
|
258
267
|
end
|
@@ -304,6 +313,7 @@ module CloudsmithApi
|
|
304
313
|
updated_at == o.updated_at &&
|
305
314
|
updated_by == o.updated_by &&
|
306
315
|
updated_by_url == o.updated_by_url &&
|
316
|
+
usage == o.usage &&
|
307
317
|
user == o.user &&
|
308
318
|
user_url == o.user_url
|
309
319
|
end
|
@@ -317,7 +327,7 @@ module CloudsmithApi
|
|
317
327
|
# Calculates hash code according to all attributes.
|
318
328
|
# @return [Fixnum] Hash code
|
319
329
|
def hash
|
320
|
-
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, user, user_url].hash
|
330
|
+
[created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
321
331
|
end
|
322
332
|
|
323
333
|
# Builds the object from hash
|
@@ -0,0 +1,53 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for CloudsmithApi::MetricsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'MetricsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = CloudsmithApi::MetricsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of MetricsApi' do
|
30
|
+
it 'should create an instance of MetricsApi' do
|
31
|
+
expect(@instance).to be_instance_of(CloudsmithApi::MetricsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for metrics_entitlements_usage_list
|
36
|
+
# View for listing entitlement token usage as a metric.
|
37
|
+
# View for listing entitlement token usage as a metric.
|
38
|
+
# @param owner
|
39
|
+
# @param repo
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
42
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
43
|
+
# @option opts [Integer] :finish Filter token usage ending before this timestamp. Defaults to now if not supplied.
|
44
|
+
# @option opts [Integer] :start Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)).
|
45
|
+
# @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results.
|
46
|
+
# @return [Array<EntitlmentTokenMetric>]
|
47
|
+
describe 'metrics_entitlements_usage_list test' do
|
48
|
+
it "should work" do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::EntitlmentTokenMetric
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EntitlmentTokenMetric' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::EntitlmentTokenMetric.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EntitlmentTokenMetric' do
|
31
|
+
it 'should create an instance of EntitlmentTokenMetric' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::EntitlmentTokenMetric)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "bandwidth_per_token"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "totals"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
@@ -170,6 +170,12 @@ describe 'RepositoryTokenRefresh' do
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
+
describe 'test attribute "usage"' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
173
179
|
describe 'test attribute "user"' do
|
174
180
|
it 'should work' do
|
175
181
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -170,6 +170,12 @@ describe 'RepositoryToken' do
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
+
describe 'test attribute "usage"' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
173
179
|
describe 'test attribute "user"' do
|
174
180
|
it 'should work' do
|
175
181
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -170,6 +170,12 @@ describe 'RepositoryTokenSyncTokens' do
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
+
describe 'test attribute "usage"' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
173
179
|
describe 'test attribute "user"' do
|
174
180
|
it 'should work' do
|
175
181
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.17/ext/fsevent
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200901-895-1yd4tav.rb extconf.rb
|
3
3
|
|
4
4
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.17/ext/fsevent
|
5
5
|
make "DESTDIR=" clean
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200901-895-1qkqlvf.rb extconf.rb
|
3
3
|
checking for ffi_prep_closure_loc() in -lffi... yes
|
4
4
|
checking for ffi_prep_cif_var()... yes
|
5
5
|
checking for ffi_raw_call()... yes
|
@@ -39,4 +39,4 @@ linking shared-object ffi_c.so
|
|
39
39
|
|
40
40
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c
|
41
41
|
make "DESTDIR=" install
|
42
|
-
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.
|
42
|
+
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20200901-895-c4l6gt
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200901-895-16rhez1.rb extconf.rb
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json
|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
31
31
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
32
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
33
|
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.
|
34
|
+
sitearchdir = $(DESTDIR)./.gem.20200901-895-c4l6gt
|
35
|
+
sitelibdir = $(DESTDIR)./.gem.20200901-895-c4l6gt
|
36
36
|
sitedir = $(rubylibprefix)/site_ruby
|
37
37
|
rubyarchdir = $(rubylibdir)/$(arch)
|
38
38
|
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
@@ -141,7 +141,7 @@ LIBS = $(LIBRUBYARG_SHARED) -lffi -lffi -lm -lc
|
|
141
141
|
ORIG_SRCS = AbstractMemory.c ArrayType.c Buffer.c Call.c ClosurePool.c DynamicLibrary.c Function.c FunctionInfo.c LastError.c LongDouble.c MappedType.c MemoryPointer.c MethodHandle.c Platform.c Pointer.c Struct.c StructByValue.c StructLayout.c Thread.c Type.c Types.c Variadic.c ffi.c
|
142
142
|
SRCS = $(ORIG_SRCS)
|
143
143
|
OBJS = AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DynamicLibrary.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o ffi.o
|
144
|
-
HDRS = $(srcdir)/
|
144
|
+
HDRS = $(srcdir)/AbstractMemory.h $(srcdir)/MemoryPointer.h $(srcdir)/Pointer.h $(srcdir)/LongDouble.h $(srcdir)/ClosurePool.h $(srcdir)/Call.h $(srcdir)/compat.h $(srcdir)/LastError.h $(srcdir)/Types.h $(srcdir)/ArrayType.h $(srcdir)/Platform.h $(srcdir)/Function.h $(srcdir)/DynamicLibrary.h $(srcdir)/rbffi.h $(srcdir)/Struct.h $(srcdir)/MappedType.h $(srcdir)/MethodHandle.h $(srcdir)/StructByValue.h $(srcdir)/Thread.h $(srcdir)/extconf.h $(srcdir)/Type.h $(srcdir)/rbffi_endian.h
|
145
145
|
LOCAL_HDRS =
|
146
146
|
TARGET = ffi_c
|
147
147
|
TARGET_NAME = ffi_c
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib".freeze]
|
11
11
|
s.authors = ["Daniel J. Berger".freeze]
|
12
12
|
s.cert_chain = ["-----BEGIN CERTIFICATE-----\nMIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl\ncmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t\nMB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi\nZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv\nbTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h\nA+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj\nu95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph\n75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO\n6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL\niLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3\nctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq\n74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq\n058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV\nHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e\nAzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq\nYmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq\n/3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ\nh9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY\n6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH\nks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE\n1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf\nDYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR\nORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM\nWZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh\n-----END CERTIFICATE-----\n".freeze]
|
13
|
-
s.date = "2020-
|
13
|
+
s.date = "2020-09-01"
|
14
14
|
s.description = " The sys-uname library provides an interface for gathering information\n about your current platform. The library is named after the Unix 'uname'\n command but also works on MS Windows. Available information includes\n OS name, OS version, system name and so on. Additional information is\n available for certain platforms.\n".freeze
|
15
15
|
s.email = "djberg96@gmail.com".freeze
|
16
16
|
s.extra_rdoc_files = ["CHANGES.rdoc".freeze, "MANIFEST.rdoc".freeze, "README.rdoc".freeze]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudsmith-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.52.
|
4
|
+
version: 0.52.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudsmith Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -214,6 +214,7 @@ files:
|
|
214
214
|
- docs/EntitlementsPartialUpdate.md
|
215
215
|
- docs/EntitlementsRefresh.md
|
216
216
|
- docs/EntitlementsSync.md
|
217
|
+
- docs/EntitlmentTokenMetric.md
|
217
218
|
- docs/FilesAbort.md
|
218
219
|
- docs/FilesApi.md
|
219
220
|
- docs/FilesComplete.md
|
@@ -223,6 +224,7 @@ files:
|
|
223
224
|
- docs/FormatsApi.md
|
224
225
|
- docs/FormatsDistributions.md
|
225
226
|
- docs/MavenPackageUpload.md
|
227
|
+
- docs/MetricsApi.md
|
226
228
|
- docs/Namespace.md
|
227
229
|
- docs/NamespacesApi.md
|
228
230
|
- docs/Organization.md
|
@@ -317,6 +319,7 @@ files:
|
|
317
319
|
- lib/cloudsmith-api/api/entitlements_api.rb
|
318
320
|
- lib/cloudsmith-api/api/files_api.rb
|
319
321
|
- lib/cloudsmith-api/api/formats_api.rb
|
322
|
+
- lib/cloudsmith-api/api/metrics_api.rb
|
320
323
|
- lib/cloudsmith-api/api/namespaces_api.rb
|
321
324
|
- lib/cloudsmith-api/api/orgs_api.rb
|
322
325
|
- lib/cloudsmith-api/api/packages_api.rb
|
@@ -338,6 +341,7 @@ files:
|
|
338
341
|
- lib/cloudsmith-api/models/entitlements_partial_update.rb
|
339
342
|
- lib/cloudsmith-api/models/entitlements_refresh.rb
|
340
343
|
- lib/cloudsmith-api/models/entitlements_sync.rb
|
344
|
+
- lib/cloudsmith-api/models/entitlment_token_metric.rb
|
341
345
|
- lib/cloudsmith-api/models/files_abort.rb
|
342
346
|
- lib/cloudsmith-api/models/files_complete.rb
|
343
347
|
- lib/cloudsmith-api/models/files_create.rb
|
@@ -428,6 +432,7 @@ files:
|
|
428
432
|
- spec/api/entitlements_api_spec.rb
|
429
433
|
- spec/api/files_api_spec.rb
|
430
434
|
- spec/api/formats_api_spec.rb
|
435
|
+
- spec/api/metrics_api_spec.rb
|
431
436
|
- spec/api/namespaces_api_spec.rb
|
432
437
|
- spec/api/orgs_api_spec.rb
|
433
438
|
- spec/api/packages_api_spec.rb
|
@@ -448,6 +453,7 @@ files:
|
|
448
453
|
- spec/models/entitlements_partial_update_spec.rb
|
449
454
|
- spec/models/entitlements_refresh_spec.rb
|
450
455
|
- spec/models/entitlements_sync_spec.rb
|
456
|
+
- spec/models/entitlment_token_metric_spec.rb
|
451
457
|
- spec/models/files_abort_spec.rb
|
452
458
|
- spec/models/files_complete_spec.rb
|
453
459
|
- spec/models/files_create_spec.rb
|
@@ -2429,113 +2435,115 @@ signing_key:
|
|
2429
2435
|
specification_version: 4
|
2430
2436
|
summary: Cloudsmith API
|
2431
2437
|
test_files:
|
2438
|
+
- spec/api/badges_api_spec.rb
|
2439
|
+
- spec/api/files_api_spec.rb
|
2440
|
+
- spec/api/users_api_spec.rb
|
2432
2441
|
- spec/api/storageregions_api_spec.rb
|
2442
|
+
- spec/api/distros_api_spec.rb
|
2433
2443
|
- spec/api/formats_api_spec.rb
|
2434
|
-
- spec/api/
|
2435
|
-
- spec/api/users_api_spec.rb
|
2436
|
-
- spec/api/user_api_spec.rb
|
2437
|
-
- spec/api/badges_api_spec.rb
|
2444
|
+
- spec/api/rates_api_spec.rb
|
2438
2445
|
- spec/api/namespaces_api_spec.rb
|
2439
|
-
- spec/api/
|
2446
|
+
- spec/api/user_api_spec.rb
|
2440
2447
|
- spec/api/entitlements_api_spec.rb
|
2441
2448
|
- spec/api/status_api_spec.rb
|
2442
|
-
- spec/api/repos_api_spec.rb
|
2443
2449
|
- spec/api/packages_api_spec.rb
|
2444
|
-
- spec/api/
|
2445
|
-
- spec/api/
|
2450
|
+
- spec/api/orgs_api_spec.rb
|
2451
|
+
- spec/api/repos_api_spec.rb
|
2446
2452
|
- spec/api/webhooks_api_spec.rb
|
2453
|
+
- spec/api/metrics_api_spec.rb
|
2447
2454
|
- spec/api_client_spec.rb
|
2448
2455
|
- spec/configuration_spec.rb
|
2449
|
-
- spec/models/repos_create_spec.rb
|
2450
|
-
- spec/models/webhooks_partial_update_spec.rb
|
2451
|
-
- spec/models/entitlements_sync_spec.rb
|
2452
2456
|
- spec/models/packagesownerrepo_files_spec.rb
|
2457
|
+
- spec/models/package_file_parts_upload_spec.rb
|
2458
|
+
- spec/models/repository_token_spec.rb
|
2459
|
+
- spec/models/packages_upload_vagrant_spec.rb
|
2460
|
+
- spec/models/packages_validateupload_cocoapods_spec.rb
|
2461
|
+
- spec/models/repository_spec.rb
|
2453
2462
|
- spec/models/vagrant_package_upload_spec.rb
|
2463
|
+
- spec/models/files_abort_spec.rb
|
2464
|
+
- spec/models/packages_validateupload_cargo_spec.rb
|
2465
|
+
- spec/models/resources_rate_check_spec.rb
|
2466
|
+
- spec/models/packages_upload_luarocks_spec.rb
|
2467
|
+
- spec/models/packages_upload_cran_spec.rb
|
2468
|
+
- spec/models/packages_upload_npm_spec.rb
|
2469
|
+
- spec/models/packages_validateupload_npm_spec.rb
|
2470
|
+
- spec/models/packages_validateupload_luarocks_spec.rb
|
2471
|
+
- spec/models/distros_versions_spec.rb
|
2472
|
+
- spec/models/distribution_spec.rb
|
2473
|
+
- spec/models/packages_upload_go_spec.rb
|
2474
|
+
- spec/models/alpine_package_upload_spec.rb
|
2475
|
+
- spec/models/packages_upload_deb_spec.rb
|
2476
|
+
- spec/models/packages_validateupload_ruby_spec.rb
|
2477
|
+
- spec/models/packages_copy_spec.rb
|
2454
2478
|
- spec/models/packages_validateupload_python_spec.rb
|
2455
|
-
- spec/models/
|
2479
|
+
- spec/models/packages_upload_conan_spec.rb
|
2480
|
+
- spec/models/files_validate_spec.rb
|
2481
|
+
- spec/models/packages_validateupload_composer_spec.rb
|
2482
|
+
- spec/models/maven_package_upload_spec.rb
|
2483
|
+
- spec/models/repos_create_spec.rb
|
2456
2484
|
- spec/models/entitlements_refresh_spec.rb
|
2485
|
+
- spec/models/conan_package_upload_spec.rb
|
2486
|
+
- spec/models/packages_upload_cargo_spec.rb
|
2487
|
+
- spec/models/packages_validateupload_raw_spec.rb
|
2488
|
+
- spec/models/packages_validateupload_dart_spec.rb
|
2489
|
+
- spec/models/packages_validateupload_vagrant_spec.rb
|
2490
|
+
- spec/models/packages_upload_ruby_spec.rb
|
2491
|
+
- spec/models/status_spec.rb
|
2492
|
+
- spec/models/storage_region_spec.rb
|
2493
|
+
- spec/models/entitlements_partial_update_spec.rb
|
2494
|
+
- spec/models/repository_token_sync_spec.rb
|
2495
|
+
- spec/models/package_file_upload_spec.rb
|
2457
2496
|
- spec/models/packages_upload_maven_spec.rb
|
2458
|
-
- spec/models/
|
2459
|
-
- spec/models/
|
2460
|
-
- spec/models/
|
2461
|
-
- spec/models/
|
2462
|
-
- spec/models/
|
2463
|
-
- spec/models/
|
2464
|
-
- spec/models/
|
2465
|
-
- spec/models/
|
2466
|
-
- spec/models/
|
2467
|
-
- spec/models/
|
2497
|
+
- spec/models/packages_upload_python_spec.rb
|
2498
|
+
- spec/models/packages_validateupload_alpine_spec.rb
|
2499
|
+
- spec/models/webhooks_partial_update_spec.rb
|
2500
|
+
- spec/models/package_spec.rb
|
2501
|
+
- spec/models/organization_spec.rb
|
2502
|
+
- spec/models/repository_token_refresh_spec.rb
|
2503
|
+
- spec/models/packages_validateupload_cran_spec.rb
|
2504
|
+
- spec/models/webhooksownerrepo_templates_spec.rb
|
2505
|
+
- spec/models/packages_upload_terraform_spec.rb
|
2506
|
+
- spec/models/repos_gpg_keys_spec.rb
|
2468
2507
|
- spec/models/package_status_spec.rb
|
2508
|
+
- spec/models/packages_validateupload_rpm_spec.rb
|
2509
|
+
- spec/models/packagesownerrepo_architectures_spec.rb
|
2510
|
+
- spec/models/files_complete_spec.rb
|
2511
|
+
- spec/models/packages_validateupload_helm_spec.rb
|
2512
|
+
- spec/models/namespace_spec.rb
|
2513
|
+
- spec/models/user_auth_token_spec.rb
|
2469
2514
|
- spec/models/package_move_spec.rb
|
2470
|
-
- spec/models/packages_upload_dart_spec.rb
|
2471
|
-
- spec/models/files_create_spec.rb
|
2472
|
-
- spec/models/packages_upload_terraform_spec.rb
|
2473
|
-
- spec/models/packages_upload_npm_spec.rb
|
2474
|
-
- spec/models/organization_spec.rb
|
2475
|
-
- spec/models/packages_validateupload_cocoapods_spec.rb
|
2476
|
-
- spec/models/status_spec.rb
|
2477
|
-
- spec/models/packages_upload_luarocks_spec.rb
|
2478
2515
|
- spec/models/user_profile_spec.rb
|
2516
|
+
- spec/models/user_brief_spec.rb
|
2517
|
+
- spec/models/raw_package_upload_spec.rb
|
2518
|
+
- spec/models/packages_upload_helm_spec.rb
|
2519
|
+
- spec/models/webhooks_create_spec.rb
|
2520
|
+
- spec/models/packages_upload_alpine_spec.rb
|
2521
|
+
- spec/models/packages_move_spec.rb
|
2522
|
+
- spec/models/formats_distributions_spec.rb
|
2523
|
+
- spec/models/files_create_spec.rb
|
2479
2524
|
- spec/models/packages_validateupload_terraform_spec.rb
|
2480
|
-
- spec/models/packages_validateupload_docker_spec.rb
|
2481
|
-
- spec/models/webhooksownerrepo_templates_spec.rb
|
2482
|
-
- spec/models/packages_upload_docker_spec.rb
|
2483
2525
|
- spec/models/packages_upload_rpm_spec.rb
|
2484
|
-
- spec/models/
|
2485
|
-
- spec/models/
|
2526
|
+
- spec/models/packages_upload_docker_spec.rb
|
2527
|
+
- spec/models/packages_validateupload_maven_spec.rb
|
2528
|
+
- spec/models/packages_validateupload_go_spec.rb
|
2486
2529
|
- spec/models/package_copy_spec.rb
|
2487
|
-
- spec/models/files_complete_spec.rb
|
2488
|
-
- spec/models/raw_package_upload_spec.rb
|
2489
|
-
- spec/models/packages_validateupload_deb_spec.rb
|
2490
2530
|
- spec/models/user_token_create_spec.rb
|
2491
|
-
- spec/models/
|
2492
|
-
- spec/models/
|
2493
|
-
- spec/models/alpine_package_upload_spec.rb
|
2494
|
-
- spec/models/packagesownerrepo_architectures_spec.rb
|
2495
|
-
- spec/models/packages_upload_ruby_spec.rb
|
2496
|
-
- spec/models/package_spec.rb
|
2497
|
-
- spec/models/user_auth_token_spec.rb
|
2498
|
-
- spec/models/packages_validateupload_cran_spec.rb
|
2499
|
-
- spec/models/packages_move_spec.rb
|
2500
|
-
- spec/models/distros_versions_spec.rb
|
2501
|
-
- spec/models/packages_upload_python_spec.rb
|
2502
|
-
- spec/models/packages_validateupload_vagrant_spec.rb
|
2503
|
-
- spec/models/format_spec.rb
|
2504
|
-
- spec/models/maven_package_upload_spec.rb
|
2505
|
-
- spec/models/resources_rate_check_spec.rb
|
2506
|
-
- spec/models/packages_upload_vagrant_spec.rb
|
2507
|
-
- spec/models/packages_upload_alpine_spec.rb
|
2508
|
-
- spec/models/files_abort_spec.rb
|
2509
|
-
- spec/models/packages_upload_raw_spec.rb
|
2510
|
-
- spec/models/repository_token_sync_spec.rb
|
2511
|
-
- spec/models/webhooks_create_spec.rb
|
2512
|
-
- spec/models/package_file_upload_spec.rb
|
2513
|
-
- spec/models/packages_upload_cran_spec.rb
|
2514
|
-
- spec/models/packages_upload_go_spec.rb
|
2515
|
-
- spec/models/repository_token_sync_tokens_spec.rb
|
2516
|
-
- spec/models/storage_region_spec.rb
|
2517
|
-
- spec/models/packages_validateupload_raw_spec.rb
|
2518
|
-
- spec/models/packages_upload_cargo_spec.rb
|
2519
|
-
- spec/models/packages_upload_helm_spec.rb
|
2531
|
+
- spec/models/packages_validateupload_deb_spec.rb
|
2532
|
+
- spec/models/entitlements_sync_spec.rb
|
2520
2533
|
- spec/models/repos_partial_update_spec.rb
|
2521
|
-
- spec/models/
|
2522
|
-
- spec/models/
|
2523
|
-
- spec/models/
|
2524
|
-
- spec/models/repository_webhook_spec.rb
|
2525
|
-
- spec/models/packages_validateupload_dart_spec.rb
|
2526
|
-
- spec/models/packages_upload_cocoapods_spec.rb
|
2527
|
-
- spec/models/repository_token_spec.rb
|
2528
|
-
- spec/models/packages_validateupload_npm_spec.rb
|
2529
|
-
- spec/models/packages_validateupload_ruby_spec.rb
|
2530
|
-
- spec/models/packages_upload_deb_spec.rb
|
2531
|
-
- spec/models/user_brief_spec.rb
|
2532
|
-
- spec/models/packages_validateupload_composer_spec.rb
|
2533
|
-
- spec/models/repository_token_refresh_spec.rb
|
2534
|
-
- spec/models/packages_copy_spec.rb
|
2535
|
-
- spec/models/files_validate_spec.rb
|
2536
|
-
- spec/models/packages_validateupload_rpm_spec.rb
|
2537
|
-
- spec/models/repos_gpg_keys_spec.rb
|
2534
|
+
- spec/models/entitlements_create_spec.rb
|
2535
|
+
- spec/models/repository_token_sync_tokens_spec.rb
|
2536
|
+
- spec/models/entitlment_token_metric_spec.rb
|
2538
2537
|
- spec/models/packages_upload_nuget_spec.rb
|
2538
|
+
- spec/models/packages_upload_dart_spec.rb
|
2539
|
+
- spec/models/packages_upload_cocoapods_spec.rb
|
2539
2540
|
- spec/models/status_basic_spec.rb
|
2540
|
-
- spec/models/
|
2541
|
+
- spec/models/packages_upload_raw_spec.rb
|
2542
|
+
- spec/models/packages_upload_composer_spec.rb
|
2543
|
+
- spec/models/format_spec.rb
|
2544
|
+
- spec/models/packages_validateupload_docker_spec.rb
|
2545
|
+
- spec/models/packages_validateupload_conan_spec.rb
|
2546
|
+
- spec/models/packages_validateupload_nuget_spec.rb
|
2547
|
+
- spec/models/packages_tag_spec.rb
|
2548
|
+
- spec/models/repository_webhook_spec.rb
|
2541
2549
|
- spec/spec_helper.rb
|