cloudsmith-api 0.52.121 → 0.53.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55fcea9ddef9939cf76877cd5531ebed2d290c13e663fa350e1b5482083fc662
4
- data.tar.gz: eca6150ecb558832f7b65ec89ac683d128dbcd49da1a6c5f975065f76d5a7844
3
+ metadata.gz: be0f5251bd963602da9ad745b20e352f4a17efce5bf23cf51c563d58ed7f2b9b
4
+ data.tar.gz: 333221eb85802b94bb995c2fe32476de6efda60259d8a983386c2cd679c3e31f
5
5
  SHA512:
6
- metadata.gz: 628aa063fe3c9ba436f9c8ae43f300826c09ef1f7eef8da7101b8ba683aa0b6586dcc701e75d5a5f8b680b71df45cab895f70f02e143773d187cec354d02971e
7
- data.tar.gz: 959b71a05e116be1595348431856b2677860fae77c3829890057738dd67458c9d918c46790cfc3e5a8a632f690574ae62fae2bd6c7e7a2dafd3bc0fd5bce0de0
6
+ metadata.gz: e7401e4078ddaee20b5addfed40d24e6076b5e7e66be366f1529fe4311d519fb223bd9426ec7c61d585e787d05d2d400eeb0d9f11eed8356101e19b26f31bc5c
7
+ data.tar.gz: 0e3f9b12f55f130b0231f34b024fcf96c082709a01c62b1e510382f1e39c6014091063d4d9c2221e478a0de7329ac03f9a4f0eb3e20409da1b3deab903fef036
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudsmith-api (0.52.121)
4
+ cloudsmith-api (0.53.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
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.121
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.52.121.gem
27
+ gem install ./cloudsmith-api-0.53.1.gem
28
28
  ```
29
- (for development, run `gem install --dev ./cloudsmith-api-0.52.121.gem` to install the development dependencies)
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.52.121'
35
+ gem 'cloudsmith-api', '~> 0.53.1'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -178,6 +178,10 @@ Class | Method | HTTP request | Description
178
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
179
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
180
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.
181
185
  *CloudsmithApi::RatesApi* | [**rates_limits_list**](docs/RatesApi.md#rates_limits_list) | **GET** /rates/limits/ | Endpoint to check rate limits for current user.
182
186
  *CloudsmithApi::ReposApi* | [**repos_all_list**](docs/ReposApi.md#repos_all_list) | **GET** /repos/ | Get a list of all repositories associated with current user.
183
187
  *CloudsmithApi::ReposApi* | [**repos_create**](docs/ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace.
@@ -273,6 +277,9 @@ Class | Method | HTTP request | Description
273
277
  - [CloudsmithApi::PackagesValidateuploadVagrant](docs/PackagesValidateuploadVagrant.md)
274
278
  - [CloudsmithApi::PackagesownerrepoArchitectures](docs/PackagesownerrepoArchitectures.md)
275
279
  - [CloudsmithApi::PackagesownerrepoFiles](docs/PackagesownerrepoFiles.md)
280
+ - [CloudsmithApi::Quota](docs/Quota.md)
281
+ - [CloudsmithApi::QuotaHistory](docs/QuotaHistory.md)
282
+ - [CloudsmithApi::QuotaownerhistoryHistory](docs/QuotaownerhistoryHistory.md)
276
283
  - [CloudsmithApi::RawPackageUpload](docs/RawPackageUpload.md)
277
284
  - [CloudsmithApi::ReposCreate](docs/ReposCreate.md)
278
285
  - [CloudsmithApi::ReposGpgKeys](docs/ReposGpgKeys.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.121",
11
+ "gemVersion": "0.53.1",
12
12
  "hideGenerationTimestamp": true,
13
13
  "moduleName": "CloudsmithApi",
14
14
  "sortParamsByRequiredFlag": true
@@ -0,0 +1,8 @@
1
+ # CloudsmithApi::Quota
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **usage** | **Object** | |
7
+
8
+
@@ -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
+
@@ -0,0 +1,8 @@
1
+ # CloudsmithApi::QuotaHistory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **history** | [**Array<QuotaownerhistoryHistory>**](QuotaownerhistoryHistory.md) | |
7
+
8
+
@@ -0,0 +1,13 @@
1
+ # CloudsmithApi::QuotaownerhistoryHistory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **days** | **Integer** | | [optional]
7
+ **display** | **Object** | | [optional]
8
+ **_end** | **String** | | [optional]
9
+ **plan** | **String** | | [optional]
10
+ **raw** | **Object** | | [optional]
11
+ **start** | **String** | | [optional]
12
+
13
+
@@ -90,6 +90,9 @@ require 'cloudsmith-api/models/packages_validateupload_terraform'
90
90
  require 'cloudsmith-api/models/packages_validateupload_vagrant'
91
91
  require 'cloudsmith-api/models/packagesownerrepo_architectures'
92
92
  require 'cloudsmith-api/models/packagesownerrepo_files'
93
+ require 'cloudsmith-api/models/quota'
94
+ require 'cloudsmith-api/models/quota_history'
95
+ require 'cloudsmith-api/models/quotaownerhistory_history'
93
96
  require 'cloudsmith-api/models/raw_package_upload'
94
97
  require 'cloudsmith-api/models/repos_create'
95
98
  require 'cloudsmith-api/models/repos_gpg_keys'
@@ -123,6 +126,7 @@ require 'cloudsmith-api/api/metrics_api'
123
126
  require 'cloudsmith-api/api/namespaces_api'
124
127
  require 'cloudsmith-api/api/orgs_api'
125
128
  require 'cloudsmith-api/api/packages_api'
129
+ require 'cloudsmith-api/api/quota_api'
126
130
  require 'cloudsmith-api/api/rates_api'
127
131
  require 'cloudsmith-api/api/repos_api'
128
132
  require 'cloudsmith-api/api/status_api'
@@ -0,0 +1,251 @@
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 QuotaApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Quota history for a given namespace.
24
+ # Quota history for a given namespace.
25
+ # @param owner
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Integer] :page A page number within the paginated result set.
28
+ # @option opts [Integer] :page_size Number of results to return per page.
29
+ # @return [Array<QuotaHistory>]
30
+ def quota_history_list(owner, opts = {})
31
+ data, _status_code, _headers = quota_history_list_with_http_info(owner, opts)
32
+ return data
33
+ end
34
+
35
+ # Quota history for a given namespace.
36
+ # Quota history for a given namespace.
37
+ # @param owner
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Integer] :page A page number within the paginated result set.
40
+ # @option opts [Integer] :page_size Number of results to return per page.
41
+ # @return [Array<(Array<QuotaHistory>, Fixnum, Hash)>] Array<QuotaHistory> data, response status code and response headers
42
+ def quota_history_list_with_http_info(owner, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: QuotaApi.quota_history_list ..."
45
+ end
46
+ # verify the required parameter 'owner' is set
47
+ if @api_client.config.client_side_validation && owner.nil?
48
+ fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_history_list"
49
+ end
50
+ # resource path
51
+ local_var_path = "/quota/{owner}/history/".sub('{' + 'owner' + '}', owner.to_s)
52
+
53
+ # query parameters
54
+ query_params = {}
55
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
56
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
57
+
58
+ # header parameters
59
+ header_params = {}
60
+
61
+ # form parameters
62
+ form_params = {}
63
+
64
+ # http body (model)
65
+ post_body = nil
66
+ auth_names = ['apikey', 'csrf_token']
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => 'Array<QuotaHistory>')
74
+ if @api_client.config.debugging
75
+ @api_client.config.logger.debug "API called: QuotaApi#quota_history_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
76
+ end
77
+ return data, status_code, headers
78
+ end
79
+
80
+ # Quota usage for a given namespace.
81
+ # Quota usage for a given namespace.
82
+ # @param owner
83
+ # @param [Hash] opts the optional parameters
84
+ # @option opts [Integer] :page A page number within the paginated result set.
85
+ # @option opts [Integer] :page_size Number of results to return per page.
86
+ # @return [Array<Quota>]
87
+ def quota_list(owner, opts = {})
88
+ data, _status_code, _headers = quota_list_with_http_info(owner, opts)
89
+ return data
90
+ end
91
+
92
+ # Quota usage for a given namespace.
93
+ # Quota usage for a given namespace.
94
+ # @param owner
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [Integer] :page A page number within the paginated result set.
97
+ # @option opts [Integer] :page_size Number of results to return per page.
98
+ # @return [Array<(Array<Quota>, Fixnum, Hash)>] Array<Quota> data, response status code and response headers
99
+ def quota_list_with_http_info(owner, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "Calling API: QuotaApi.quota_list ..."
102
+ end
103
+ # verify the required parameter 'owner' is set
104
+ if @api_client.config.client_side_validation && owner.nil?
105
+ fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_list"
106
+ end
107
+ # resource path
108
+ local_var_path = "/quota/{owner}/".sub('{' + 'owner' + '}', owner.to_s)
109
+
110
+ # query parameters
111
+ query_params = {}
112
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
113
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
114
+
115
+ # header parameters
116
+ header_params = {}
117
+
118
+ # form parameters
119
+ form_params = {}
120
+
121
+ # http body (model)
122
+ post_body = nil
123
+ auth_names = ['apikey', 'csrf_token']
124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => 'Array<Quota>')
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug "API called: QuotaApi#quota_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ end
134
+ return data, status_code, headers
135
+ end
136
+
137
+ # Open-source Quota history for a given namespace.
138
+ # Open-source Quota history for a given namespace.
139
+ # @param owner
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [Integer] :page A page number within the paginated result set.
142
+ # @option opts [Integer] :page_size Number of results to return per page.
143
+ # @return [Array<QuotaHistory>]
144
+ def quota_oss_history_list(owner, opts = {})
145
+ data, _status_code, _headers = quota_oss_history_list_with_http_info(owner, opts)
146
+ return data
147
+ end
148
+
149
+ # Open-source Quota history for a given namespace.
150
+ # Open-source Quota history for a given namespace.
151
+ # @param owner
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [Integer] :page A page number within the paginated result set.
154
+ # @option opts [Integer] :page_size Number of results to return per page.
155
+ # @return [Array<(Array<QuotaHistory>, Fixnum, Hash)>] Array<QuotaHistory> data, response status code and response headers
156
+ def quota_oss_history_list_with_http_info(owner, opts = {})
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug "Calling API: QuotaApi.quota_oss_history_list ..."
159
+ end
160
+ # verify the required parameter 'owner' is set
161
+ if @api_client.config.client_side_validation && owner.nil?
162
+ fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_oss_history_list"
163
+ end
164
+ # resource path
165
+ local_var_path = "/quota/{owner}/oss/history/".sub('{' + 'owner' + '}', owner.to_s)
166
+
167
+ # query parameters
168
+ query_params = {}
169
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
170
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
171
+
172
+ # header parameters
173
+ header_params = {}
174
+
175
+ # form parameters
176
+ form_params = {}
177
+
178
+ # http body (model)
179
+ post_body = nil
180
+ auth_names = ['apikey', 'csrf_token']
181
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
182
+ :header_params => header_params,
183
+ :query_params => query_params,
184
+ :form_params => form_params,
185
+ :body => post_body,
186
+ :auth_names => auth_names,
187
+ :return_type => 'Array<QuotaHistory>')
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug "API called: QuotaApi#quota_oss_history_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
+ end
191
+ return data, status_code, headers
192
+ end
193
+
194
+ # Open-source Quota usage for a given namespace.
195
+ # Open-source Quota usage for a given namespace.
196
+ # @param owner
197
+ # @param [Hash] opts the optional parameters
198
+ # @option opts [Integer] :page A page number within the paginated result set.
199
+ # @option opts [Integer] :page_size Number of results to return per page.
200
+ # @return [Array<Quota>]
201
+ def quota_oss_list(owner, opts = {})
202
+ data, _status_code, _headers = quota_oss_list_with_http_info(owner, opts)
203
+ return data
204
+ end
205
+
206
+ # Open-source Quota usage for a given namespace.
207
+ # Open-source Quota usage for a given namespace.
208
+ # @param owner
209
+ # @param [Hash] opts the optional parameters
210
+ # @option opts [Integer] :page A page number within the paginated result set.
211
+ # @option opts [Integer] :page_size Number of results to return per page.
212
+ # @return [Array<(Array<Quota>, Fixnum, Hash)>] Array<Quota> data, response status code and response headers
213
+ def quota_oss_list_with_http_info(owner, opts = {})
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "Calling API: QuotaApi.quota_oss_list ..."
216
+ end
217
+ # verify the required parameter 'owner' is set
218
+ if @api_client.config.client_side_validation && owner.nil?
219
+ fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_oss_list"
220
+ end
221
+ # resource path
222
+ local_var_path = "/quota/{owner}/oss/".sub('{' + 'owner' + '}', owner.to_s)
223
+
224
+ # query parameters
225
+ query_params = {}
226
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
227
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
228
+
229
+ # header parameters
230
+ header_params = {}
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = ['apikey', 'csrf_token']
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'Array<Quota>')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: QuotaApi#quota_oss_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+ end
251
+ end