nodeum_sdk 1.85.1 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +69 -14
- data/docs/ByDateFacet.md +4 -0
- data/docs/ByFileExtensionFacet.md +2 -2
- data/docs/ByFileExtensionFacetAllOf.md +2 -2
- data/docs/ByGroupOwnerFacet.md +2 -2
- data/docs/ByGroupOwnerFacetAllOf.md +2 -2
- data/docs/ByPrimaryCloudFacet.md +21 -0
- data/docs/ByPrimaryCloudFacetAllOf.md +21 -0
- data/docs/ByPrimaryFacet.md +2 -2
- data/docs/ByPrimaryFacetAllOf.md +2 -2
- data/docs/ByPrimaryNasFacet.md +21 -0
- data/docs/ByPrimaryNasFacetAllOf.md +21 -0
- data/docs/ByPrimaryStorageFacet.md +31 -0
- data/docs/ByPrimaryTypeFacet.md +41 -0
- data/docs/BySecondaryCloudFacet.md +21 -0
- data/docs/BySecondaryCloudFacetAllOf.md +21 -0
- data/docs/BySecondaryNasFacet.md +21 -0
- data/docs/BySecondaryNasFacetAllOf.md +21 -0
- data/docs/BySecondaryStorageFacet.md +35 -0
- data/docs/BySecondaryTapeFacet.md +21 -0
- data/docs/BySecondaryTapeFacetAllOf.md +21 -0
- data/docs/BySecondaryTypeFacet.md +2 -2
- data/docs/BySecondaryTypeFacetAllOf.md +2 -2
- data/docs/BySizeFacet.md +4 -0
- data/docs/ByTaskStatusFacet.md +17 -0
- data/docs/ByTaskStatusFacetAllOf.md +17 -0
- data/docs/ByTaskStorageFacet.md +19 -0
- data/docs/ByTaskStorageFacetAllOf.md +19 -0
- data/docs/ByTaskWorkflowFacet.md +17 -0
- data/docs/ByTaskWorkflowFacetAllOf.md +17 -0
- data/docs/ByTypeFacetBucket.md +19 -0
- data/docs/ByTypeFacetBuckets.md +17 -0
- data/docs/ByUserOwnerFacet.md +2 -2
- data/docs/ByUserOwnerFacetAllOf.md +2 -2
- data/docs/Container.md +4 -0
- data/docs/DefaultFacet.md +17 -0
- data/docs/FileFacet.md +5 -3
- data/docs/FileFacetAllOf.md +21 -0
- data/docs/StatisticsApi.md +805 -42
- data/docs/StorageByTypeFacets.md +25 -0
- data/docs/StorageCloudBucketByTypeFacets.md +19 -0
- data/docs/StorageCloudBucketFacets.md +21 -0
- data/docs/StorageFacet.md +27 -0
- data/docs/StorageNasShareByTypeFacets.md +19 -0
- data/docs/StorageNasShareFacets.md +21 -0
- data/docs/StoragePoolByTypeFacets.md +19 -0
- data/docs/StoragePoolFacets.md +21 -0
- data/docs/StorageTapeByTypeFacets.md +21 -0
- data/docs/StorageTapeFacets.md +23 -0
- data/docs/TaskByWorkflowBucket.md +19 -0
- data/docs/TaskByWorkflowBucketAllOf.md +19 -0
- data/docs/TaskByWorkflowBuckets.md +17 -0
- data/docs/TaskFacet.md +27 -0
- data/docs/TaskFacetAllOf.md +27 -0
- data/docs/TaskFacetBucket.md +31 -0
- data/docs/TaskFacetBuckets.md +17 -0
- data/docs/TypeToPrimaryFacets.md +23 -0
- data/docs/TypeToSecondaryFacets.md +2 -0
- data/docs/UserConfiguration.md +21 -0
- data/docs/UserConfigurationCollection.md +19 -0
- data/docs/UsersApi.md +300 -0
- data/lib/nodeum_sdk.rb +43 -4
- data/lib/nodeum_sdk/api/statistics_api.rb +910 -51
- data/lib/nodeum_sdk/api/users_api.rb +318 -0
- data/lib/nodeum_sdk/models/by_date_facet.rb +19 -1
- data/lib/nodeum_sdk/models/by_file_extension_facet.rb +7 -7
- data/lib/nodeum_sdk/models/by_file_extension_facet_all_of.rb +7 -7
- data/lib/nodeum_sdk/models/by_group_owner_facet.rb +7 -7
- data/lib/nodeum_sdk/models/by_group_owner_facet_all_of.rb +7 -7
- data/lib/nodeum_sdk/models/by_primary_cloud_facet.rb +236 -0
- data/lib/nodeum_sdk/models/by_primary_cloud_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/by_primary_facet.rb +7 -7
- data/lib/nodeum_sdk/models/by_primary_facet_all_of.rb +7 -7
- data/lib/nodeum_sdk/models/by_primary_nas_facet.rb +236 -0
- data/lib/nodeum_sdk/models/by_primary_nas_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/by_primary_storage_facet.rb +277 -0
- data/lib/nodeum_sdk/models/by_primary_type_facet.rb +322 -0
- data/lib/nodeum_sdk/models/by_secondary_cloud_facet.rb +236 -0
- data/lib/nodeum_sdk/models/by_secondary_cloud_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/by_secondary_nas_facet.rb +236 -0
- data/lib/nodeum_sdk/models/by_secondary_nas_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/by_secondary_storage_facet.rb +295 -0
- data/lib/nodeum_sdk/models/by_secondary_tape_facet.rb +236 -0
- data/lib/nodeum_sdk/models/by_secondary_tape_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/by_secondary_type_facet.rb +7 -7
- data/lib/nodeum_sdk/models/by_secondary_type_facet_all_of.rb +7 -7
- data/lib/nodeum_sdk/models/by_size_facet.rb +19 -1
- data/lib/nodeum_sdk/models/by_task_status_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_task_status_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_task_storage_facet.rb +227 -0
- data/lib/nodeum_sdk/models/by_task_storage_facet_all_of.rb +215 -0
- data/lib/nodeum_sdk/models/by_task_workflow_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_task_workflow_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_type_facet_bucket.rb +223 -0
- data/lib/nodeum_sdk/models/by_type_facet_buckets.rb +208 -0
- data/lib/nodeum_sdk/models/by_user_owner_facet.rb +7 -7
- data/lib/nodeum_sdk/models/by_user_owner_facet_all_of.rb +7 -7
- data/lib/nodeum_sdk/models/container.rb +19 -1
- data/lib/nodeum_sdk/models/default_facet.rb +206 -0
- data/lib/nodeum_sdk/models/file_facet.rb +35 -14
- data/lib/nodeum_sdk/models/file_facet_all_of.rb +224 -0
- data/lib/nodeum_sdk/models/storage_by_type_facets.rb +242 -0
- data/lib/nodeum_sdk/models/storage_cloud_bucket_by_type_facets.rb +215 -0
- data/lib/nodeum_sdk/models/storage_cloud_bucket_facets.rb +232 -0
- data/lib/nodeum_sdk/models/storage_facet.rb +259 -0
- data/lib/nodeum_sdk/models/storage_nas_share_by_type_facets.rb +215 -0
- data/lib/nodeum_sdk/models/storage_nas_share_facets.rb +232 -0
- data/lib/nodeum_sdk/models/storage_pool_by_type_facets.rb +215 -0
- data/lib/nodeum_sdk/models/storage_pool_facets.rb +232 -0
- data/lib/nodeum_sdk/models/storage_tape_by_type_facets.rb +224 -0
- data/lib/nodeum_sdk/models/storage_tape_facets.rb +241 -0
- data/lib/nodeum_sdk/models/task_by_workflow_bucket.rb +227 -0
- data/lib/nodeum_sdk/models/task_by_workflow_bucket_all_of.rb +215 -0
- data/lib/nodeum_sdk/models/task_by_workflow_buckets.rb +208 -0
- data/lib/nodeum_sdk/models/task_facet.rb +263 -0
- data/lib/nodeum_sdk/models/task_facet_all_of.rb +251 -0
- data/lib/nodeum_sdk/models/task_facet_bucket.rb +277 -0
- data/lib/nodeum_sdk/models/task_facet_buckets.rb +208 -0
- data/lib/nodeum_sdk/models/type_to_primary_facets.rb +233 -0
- data/lib/nodeum_sdk/models/type_to_secondary_facets.rb +10 -1
- data/lib/nodeum_sdk/models/user_configuration.rb +224 -0
- data/lib/nodeum_sdk/models/user_configuration_collection.rb +217 -0
- data/lib/nodeum_sdk/version.rb +1 -1
- data/spec/models/by_primary_cloud_facet_all_of_spec.rb +53 -0
- data/spec/models/by_primary_cloud_facet_spec.rb +53 -0
- data/spec/models/by_primary_nas_facet_all_of_spec.rb +53 -0
- data/spec/models/by_primary_nas_facet_spec.rb +53 -0
- data/spec/models/by_primary_storage_facet_spec.rb +83 -0
- data/spec/models/by_primary_type_facet_spec.rb +113 -0
- data/spec/models/by_secondary_cloud_facet_all_of_spec.rb +53 -0
- data/spec/models/by_secondary_cloud_facet_spec.rb +53 -0
- data/spec/models/by_secondary_nas_facet_all_of_spec.rb +53 -0
- data/spec/models/by_secondary_nas_facet_spec.rb +53 -0
- data/spec/models/by_secondary_storage_facet_spec.rb +95 -0
- data/spec/models/by_secondary_tape_facet_all_of_spec.rb +53 -0
- data/spec/models/by_secondary_tape_facet_spec.rb +53 -0
- data/spec/models/by_task_status_facet_all_of_spec.rb +41 -0
- data/spec/models/by_task_status_facet_spec.rb +41 -0
- data/spec/models/by_task_storage_facet_all_of_spec.rb +47 -0
- data/spec/models/by_task_storage_facet_spec.rb +47 -0
- data/spec/models/by_task_workflow_facet_all_of_spec.rb +41 -0
- data/spec/models/by_task_workflow_facet_spec.rb +41 -0
- data/spec/models/by_type_facet_bucket_spec.rb +47 -0
- data/spec/models/by_type_facet_buckets_spec.rb +41 -0
- data/spec/models/default_facet_spec.rb +41 -0
- data/spec/models/file_facet_all_of_spec.rb +53 -0
- data/spec/models/storage_by_type_facets_spec.rb +65 -0
- data/spec/models/storage_cloud_bucket_by_type_facets_spec.rb +47 -0
- data/spec/models/storage_cloud_bucket_facets_spec.rb +53 -0
- data/spec/models/storage_facet_spec.rb +71 -0
- data/spec/models/storage_nas_share_by_type_facets_spec.rb +47 -0
- data/spec/models/storage_nas_share_facets_spec.rb +53 -0
- data/spec/models/storage_pool_by_type_facets_spec.rb +47 -0
- data/spec/models/storage_pool_facets_spec.rb +53 -0
- data/spec/models/storage_tape_by_type_facets_spec.rb +53 -0
- data/spec/models/storage_tape_facets_spec.rb +59 -0
- data/spec/models/task_by_workflow_bucket_all_of_spec.rb +47 -0
- data/spec/models/task_by_workflow_bucket_spec.rb +47 -0
- data/spec/models/task_by_workflow_buckets_spec.rb +41 -0
- data/spec/models/task_facet_all_of_spec.rb +71 -0
- data/spec/models/task_facet_bucket_spec.rb +83 -0
- data/spec/models/task_facet_buckets_spec.rb +41 -0
- data/spec/models/task_facet_spec.rb +71 -0
- data/spec/models/type_to_primary_facets_spec.rb +59 -0
- data/spec/models/user_configuration_collection_spec.rb +47 -0
- data/spec/models/user_configuration_spec.rb +53 -0
- metadata +174 -2
@@ -83,6 +83,70 @@ module Nodeum
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
+
# Creates a new configuration value for current user.
|
87
|
+
# **API Key Scope**: configurations / create
|
88
|
+
# @param configuration_body [UserConfiguration]
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [UserConfiguration]
|
91
|
+
def create_configuration(configuration_body, opts = {})
|
92
|
+
data, _status_code, _headers = create_configuration_with_http_info(configuration_body, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Creates a new configuration value for current user.
|
97
|
+
# **API Key Scope**: configurations / create
|
98
|
+
# @param configuration_body [UserConfiguration]
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(UserConfiguration, Integer, Hash)>] UserConfiguration data, response status code and response headers
|
101
|
+
def create_configuration_with_http_info(configuration_body, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_configuration ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'configuration_body' is set
|
106
|
+
if @api_client.config.client_side_validation && configuration_body.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'configuration_body' when calling UsersApi.create_configuration"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/users/me/configurations'
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
# HTTP header 'Content-Type'
|
120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body] || @api_client.object_to_http_body(configuration_body)
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type] || 'UserConfiguration'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type
|
141
|
+
)
|
142
|
+
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: UsersApi#create_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
86
150
|
# Destroys a specific API Key.
|
87
151
|
# **API Key Scope**: api_keys / destroy
|
88
152
|
# @param api_key_id [Integer] Numeric ID of API Key.
|
@@ -143,6 +207,66 @@ module Nodeum
|
|
143
207
|
return data, status_code, headers
|
144
208
|
end
|
145
209
|
|
210
|
+
# Destroys a specific configuration value.
|
211
|
+
# **API Key Scope**: configurations / destroy
|
212
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [nil]
|
215
|
+
def destroy_configuration(configuration_id, opts = {})
|
216
|
+
destroy_configuration_with_http_info(configuration_id, opts)
|
217
|
+
nil
|
218
|
+
end
|
219
|
+
|
220
|
+
# Destroys a specific configuration value.
|
221
|
+
# **API Key Scope**: configurations / destroy
|
222
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
225
|
+
def destroy_configuration_with_http_info(configuration_id, opts = {})
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.destroy_configuration ...'
|
228
|
+
end
|
229
|
+
# verify the required parameter 'configuration_id' is set
|
230
|
+
if @api_client.config.client_side_validation && configuration_id.nil?
|
231
|
+
fail ArgumentError, "Missing the required parameter 'configuration_id' when calling UsersApi.destroy_configuration"
|
232
|
+
end
|
233
|
+
# resource path
|
234
|
+
local_var_path = '/users/me/configurations/{configuration_id}'.sub('{' + 'configuration_id' + '}', CGI.escape(configuration_id.to_s))
|
235
|
+
|
236
|
+
# query parameters
|
237
|
+
query_params = opts[:query_params] || {}
|
238
|
+
|
239
|
+
# header parameters
|
240
|
+
header_params = opts[:header_params] || {}
|
241
|
+
|
242
|
+
# form parameters
|
243
|
+
form_params = opts[:form_params] || {}
|
244
|
+
|
245
|
+
# http body (model)
|
246
|
+
post_body = opts[:body]
|
247
|
+
|
248
|
+
# return_type
|
249
|
+
return_type = opts[:return_type]
|
250
|
+
|
251
|
+
# auth_names
|
252
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
253
|
+
|
254
|
+
new_options = opts.merge(
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => return_type
|
261
|
+
)
|
262
|
+
|
263
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: UsersApi#destroy_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
|
+
end
|
267
|
+
return data, status_code, headers
|
268
|
+
end
|
269
|
+
|
146
270
|
# Lists all API keys of current user.
|
147
271
|
# **API Key Scope**: api_keys / index
|
148
272
|
# @param [Hash] opts the optional parameters
|
@@ -205,6 +329,68 @@ module Nodeum
|
|
205
329
|
return data, status_code, headers
|
206
330
|
end
|
207
331
|
|
332
|
+
# Lists all configurations of current user.
|
333
|
+
# **API Key Scope**: configurations / index
|
334
|
+
# @param [Hash] opts the optional parameters
|
335
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
336
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
337
|
+
# @return [UserConfigurationCollection]
|
338
|
+
def index_configurations(opts = {})
|
339
|
+
data, _status_code, _headers = index_configurations_with_http_info(opts)
|
340
|
+
data
|
341
|
+
end
|
342
|
+
|
343
|
+
# Lists all configurations of current user.
|
344
|
+
# **API Key Scope**: configurations / index
|
345
|
+
# @param [Hash] opts the optional parameters
|
346
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
347
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
348
|
+
# @return [Array<(UserConfigurationCollection, Integer, Hash)>] UserConfigurationCollection data, response status code and response headers
|
349
|
+
def index_configurations_with_http_info(opts = {})
|
350
|
+
if @api_client.config.debugging
|
351
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.index_configurations ...'
|
352
|
+
end
|
353
|
+
# resource path
|
354
|
+
local_var_path = '/users/me/configurations'
|
355
|
+
|
356
|
+
# query parameters
|
357
|
+
query_params = opts[:query_params] || {}
|
358
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
359
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
360
|
+
|
361
|
+
# header parameters
|
362
|
+
header_params = opts[:header_params] || {}
|
363
|
+
# HTTP header 'Accept' (if needed)
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
365
|
+
|
366
|
+
# form parameters
|
367
|
+
form_params = opts[:form_params] || {}
|
368
|
+
|
369
|
+
# http body (model)
|
370
|
+
post_body = opts[:body]
|
371
|
+
|
372
|
+
# return_type
|
373
|
+
return_type = opts[:return_type] || 'UserConfigurationCollection'
|
374
|
+
|
375
|
+
# auth_names
|
376
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
377
|
+
|
378
|
+
new_options = opts.merge(
|
379
|
+
:header_params => header_params,
|
380
|
+
:query_params => query_params,
|
381
|
+
:form_params => form_params,
|
382
|
+
:body => post_body,
|
383
|
+
:auth_names => auth_names,
|
384
|
+
:return_type => return_type
|
385
|
+
)
|
386
|
+
|
387
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug "API called: UsersApi#index_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
390
|
+
end
|
391
|
+
return data, status_code, headers
|
392
|
+
end
|
393
|
+
|
208
394
|
# List all system groups.
|
209
395
|
# **API Key Scope**: groups / systems
|
210
396
|
# @param [Hash] opts the optional parameters
|
@@ -379,6 +565,68 @@ module Nodeum
|
|
379
565
|
return data, status_code, headers
|
380
566
|
end
|
381
567
|
|
568
|
+
# Displays a specific configuration value.
|
569
|
+
# **API Key Scope**: configurations / show
|
570
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
571
|
+
# @param [Hash] opts the optional parameters
|
572
|
+
# @return [UserConfiguration]
|
573
|
+
def show_configuration(configuration_id, opts = {})
|
574
|
+
data, _status_code, _headers = show_configuration_with_http_info(configuration_id, opts)
|
575
|
+
data
|
576
|
+
end
|
577
|
+
|
578
|
+
# Displays a specific configuration value.
|
579
|
+
# **API Key Scope**: configurations / show
|
580
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
581
|
+
# @param [Hash] opts the optional parameters
|
582
|
+
# @return [Array<(UserConfiguration, Integer, Hash)>] UserConfiguration data, response status code and response headers
|
583
|
+
def show_configuration_with_http_info(configuration_id, opts = {})
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.show_configuration ...'
|
586
|
+
end
|
587
|
+
# verify the required parameter 'configuration_id' is set
|
588
|
+
if @api_client.config.client_side_validation && configuration_id.nil?
|
589
|
+
fail ArgumentError, "Missing the required parameter 'configuration_id' when calling UsersApi.show_configuration"
|
590
|
+
end
|
591
|
+
# resource path
|
592
|
+
local_var_path = '/users/me/configurations/{configuration_id}'.sub('{' + 'configuration_id' + '}', CGI.escape(configuration_id.to_s))
|
593
|
+
|
594
|
+
# query parameters
|
595
|
+
query_params = opts[:query_params] || {}
|
596
|
+
|
597
|
+
# header parameters
|
598
|
+
header_params = opts[:header_params] || {}
|
599
|
+
# HTTP header 'Accept' (if needed)
|
600
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
601
|
+
|
602
|
+
# form parameters
|
603
|
+
form_params = opts[:form_params] || {}
|
604
|
+
|
605
|
+
# http body (model)
|
606
|
+
post_body = opts[:body]
|
607
|
+
|
608
|
+
# return_type
|
609
|
+
return_type = opts[:return_type] || 'UserConfiguration'
|
610
|
+
|
611
|
+
# auth_names
|
612
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
613
|
+
|
614
|
+
new_options = opts.merge(
|
615
|
+
:header_params => header_params,
|
616
|
+
:query_params => query_params,
|
617
|
+
:form_params => form_params,
|
618
|
+
:body => post_body,
|
619
|
+
:auth_names => auth_names,
|
620
|
+
:return_type => return_type
|
621
|
+
)
|
622
|
+
|
623
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
624
|
+
if @api_client.config.debugging
|
625
|
+
@api_client.config.logger.debug "API called: UsersApi#show_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
626
|
+
end
|
627
|
+
return data, status_code, headers
|
628
|
+
end
|
629
|
+
|
382
630
|
# Updates a specific API Key.
|
383
631
|
# **API Key Scope**: api_keys / update
|
384
632
|
# @param api_key_id [Integer] Numeric ID of API Key.
|
@@ -448,5 +696,75 @@ module Nodeum
|
|
448
696
|
end
|
449
697
|
return data, status_code, headers
|
450
698
|
end
|
699
|
+
|
700
|
+
# Updates a specific configuration value.
|
701
|
+
# **API Key Scope**: configurations / update
|
702
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
703
|
+
# @param configuration_body [UserConfiguration]
|
704
|
+
# @param [Hash] opts the optional parameters
|
705
|
+
# @return [UserConfiguration]
|
706
|
+
def update_configuration(configuration_id, configuration_body, opts = {})
|
707
|
+
data, _status_code, _headers = update_configuration_with_http_info(configuration_id, configuration_body, opts)
|
708
|
+
data
|
709
|
+
end
|
710
|
+
|
711
|
+
# Updates a specific configuration value.
|
712
|
+
# **API Key Scope**: configurations / update
|
713
|
+
# @param configuration_id [String] Numeric ID, or key of configuration.
|
714
|
+
# @param configuration_body [UserConfiguration]
|
715
|
+
# @param [Hash] opts the optional parameters
|
716
|
+
# @return [Array<(UserConfiguration, Integer, Hash)>] UserConfiguration data, response status code and response headers
|
717
|
+
def update_configuration_with_http_info(configuration_id, configuration_body, opts = {})
|
718
|
+
if @api_client.config.debugging
|
719
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_configuration ...'
|
720
|
+
end
|
721
|
+
# verify the required parameter 'configuration_id' is set
|
722
|
+
if @api_client.config.client_side_validation && configuration_id.nil?
|
723
|
+
fail ArgumentError, "Missing the required parameter 'configuration_id' when calling UsersApi.update_configuration"
|
724
|
+
end
|
725
|
+
# verify the required parameter 'configuration_body' is set
|
726
|
+
if @api_client.config.client_side_validation && configuration_body.nil?
|
727
|
+
fail ArgumentError, "Missing the required parameter 'configuration_body' when calling UsersApi.update_configuration"
|
728
|
+
end
|
729
|
+
# resource path
|
730
|
+
local_var_path = '/users/me/configurations/{configuration_id}'.sub('{' + 'configuration_id' + '}', CGI.escape(configuration_id.to_s))
|
731
|
+
|
732
|
+
# query parameters
|
733
|
+
query_params = opts[:query_params] || {}
|
734
|
+
|
735
|
+
# header parameters
|
736
|
+
header_params = opts[:header_params] || {}
|
737
|
+
# HTTP header 'Accept' (if needed)
|
738
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
739
|
+
# HTTP header 'Content-Type'
|
740
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
741
|
+
|
742
|
+
# form parameters
|
743
|
+
form_params = opts[:form_params] || {}
|
744
|
+
|
745
|
+
# http body (model)
|
746
|
+
post_body = opts[:body] || @api_client.object_to_http_body(configuration_body)
|
747
|
+
|
748
|
+
# return_type
|
749
|
+
return_type = opts[:return_type] || 'UserConfiguration'
|
750
|
+
|
751
|
+
# auth_names
|
752
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
753
|
+
|
754
|
+
new_options = opts.merge(
|
755
|
+
:header_params => header_params,
|
756
|
+
:query_params => query_params,
|
757
|
+
:form_params => form_params,
|
758
|
+
:body => post_body,
|
759
|
+
:auth_names => auth_names,
|
760
|
+
:return_type => return_type
|
761
|
+
)
|
762
|
+
|
763
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
764
|
+
if @api_client.config.debugging
|
765
|
+
@api_client.config.logger.debug "API called: UsersApi#update_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
766
|
+
end
|
767
|
+
return data, status_code, headers
|
768
|
+
end
|
451
769
|
end
|
452
770
|
end
|
@@ -16,8 +16,12 @@ module Nodeum
|
|
16
16
|
class ByDateFacet
|
17
17
|
attr_accessor :count
|
18
18
|
|
19
|
+
attr_accessor :files_count
|
20
|
+
|
19
21
|
attr_accessor :file_size_sum
|
20
22
|
|
23
|
+
attr_accessor :cost
|
24
|
+
|
21
25
|
attr_accessor :in_cache
|
22
26
|
|
23
27
|
attr_accessor :less_1_week
|
@@ -38,7 +42,9 @@ module Nodeum
|
|
38
42
|
def self.attribute_map
|
39
43
|
{
|
40
44
|
:'count' => :'count',
|
45
|
+
:'files_count' => :'files_count',
|
41
46
|
:'file_size_sum' => :'file_size_sum',
|
47
|
+
:'cost' => :'cost',
|
42
48
|
:'in_cache' => :'in_cache',
|
43
49
|
:'less_1_week' => :'less_1_week',
|
44
50
|
:'less_1_month' => :'less_1_month',
|
@@ -54,7 +60,9 @@ module Nodeum
|
|
54
60
|
def self.openapi_types
|
55
61
|
{
|
56
62
|
:'count' => :'Integer',
|
63
|
+
:'files_count' => :'Integer',
|
57
64
|
:'file_size_sum' => :'Integer',
|
65
|
+
:'cost' => :'Float',
|
58
66
|
:'in_cache' => :'FileFacet',
|
59
67
|
:'less_1_week' => :'FileFacet',
|
60
68
|
:'less_1_month' => :'FileFacet',
|
@@ -99,10 +107,18 @@ module Nodeum
|
|
99
107
|
self.count = attributes[:'count']
|
100
108
|
end
|
101
109
|
|
110
|
+
if attributes.key?(:'files_count')
|
111
|
+
self.files_count = attributes[:'files_count']
|
112
|
+
end
|
113
|
+
|
102
114
|
if attributes.key?(:'file_size_sum')
|
103
115
|
self.file_size_sum = attributes[:'file_size_sum']
|
104
116
|
end
|
105
117
|
|
118
|
+
if attributes.key?(:'cost')
|
119
|
+
self.cost = attributes[:'cost']
|
120
|
+
end
|
121
|
+
|
106
122
|
if attributes.key?(:'in_cache')
|
107
123
|
self.in_cache = attributes[:'in_cache']
|
108
124
|
end
|
@@ -155,7 +171,9 @@ module Nodeum
|
|
155
171
|
return true if self.equal?(o)
|
156
172
|
self.class == o.class &&
|
157
173
|
count == o.count &&
|
174
|
+
files_count == o.files_count &&
|
158
175
|
file_size_sum == o.file_size_sum &&
|
176
|
+
cost == o.cost &&
|
159
177
|
in_cache == o.in_cache &&
|
160
178
|
less_1_week == o.less_1_week &&
|
161
179
|
less_1_month == o.less_1_month &&
|
@@ -175,7 +193,7 @@ module Nodeum
|
|
175
193
|
# Calculates hash code according to all attributes.
|
176
194
|
# @return [Integer] Hash code
|
177
195
|
def hash
|
178
|
-
[count, file_size_sum, in_cache, less_1_week, less_1_month, less_3_months, less_6_months, less_1_year, less_2_years, more_2_years].hash
|
196
|
+
[count, files_count, file_size_sum, cost, in_cache, less_1_week, less_1_month, less_3_months, less_6_months, less_1_year, less_2_years, more_2_years].hash
|
179
197
|
end
|
180
198
|
|
181
199
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Nodeum
|
16
16
|
class ByFileExtensionFacet < FileFacet
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :file_extension_s
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'file_extension_s' => :'file_extension_s'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.openapi_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'file_extension_s' => :'ByDateFacetBuckets'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -62,8 +62,8 @@ module Nodeum
|
|
62
62
|
# call parent's initialize
|
63
63
|
super(attributes)
|
64
64
|
|
65
|
-
if attributes.key?(:'
|
66
|
-
self.
|
65
|
+
if attributes.key?(:'file_extension_s')
|
66
|
+
self.file_extension_s = attributes[:'file_extension_s']
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -85,7 +85,7 @@ module Nodeum
|
|
85
85
|
def ==(o)
|
86
86
|
return true if self.equal?(o)
|
87
87
|
self.class == o.class &&
|
88
|
-
|
88
|
+
file_extension_s == o.file_extension_s && super(o)
|
89
89
|
end
|
90
90
|
|
91
91
|
# @see the `==` method
|
@@ -97,7 +97,7 @@ module Nodeum
|
|
97
97
|
# Calculates hash code according to all attributes.
|
98
98
|
# @return [Integer] Hash code
|
99
99
|
def hash
|
100
|
-
[
|
100
|
+
[file_extension_s].hash
|
101
101
|
end
|
102
102
|
|
103
103
|
# Builds the object from hash
|