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
@@ -19,38 +19,120 @@ module Nodeum
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
22
|
+
# Get statistics about files, grouped by date
|
23
|
+
# **API Key Scope**: statistics / by_date
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :q Solr query
|
26
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
27
|
+
# @option opts [String] :date_attr Type of date to facet on
|
28
|
+
# @return [ByDateFacet]
|
29
|
+
def statistics_by_date(opts = {})
|
30
|
+
data, _status_code, _headers = statistics_by_date_with_http_info(opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get statistics about files, grouped by date
|
35
|
+
# **API Key Scope**: statistics / by_date
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :q Solr query
|
38
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
39
|
+
# @option opts [String] :date_attr Type of date to facet on
|
40
|
+
# @return [Array<(ByDateFacet, Integer, Hash)>] ByDateFacet data, response status code and response headers
|
41
|
+
def statistics_by_date_with_http_info(opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_date ...'
|
44
|
+
end
|
45
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
46
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
47
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/statistics/by_date'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
55
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
56
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = opts[:header_params] || {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:body]
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:return_type] || 'ByDateFacet'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:header_params => header_params,
|
77
|
+
:query_params => query_params,
|
78
|
+
:form_params => form_params,
|
79
|
+
:body => post_body,
|
80
|
+
:auth_names => auth_names,
|
81
|
+
:return_type => return_type
|
82
|
+
)
|
83
|
+
|
84
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_date\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Get statistics about files, grouped by file extension
|
23
92
|
# **API Key Scope**: statistics / by_file_extension
|
24
93
|
# @param [Hash] opts the optional parameters
|
25
94
|
# @option opts [String] :q Solr query
|
95
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
26
96
|
# @option opts [String] :date_attr Type of date to facet on
|
97
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
98
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
27
99
|
# @return [ByFileExtensionFacet]
|
28
100
|
def statistics_by_file_extension(opts = {})
|
29
101
|
data, _status_code, _headers = statistics_by_file_extension_with_http_info(opts)
|
30
102
|
data
|
31
103
|
end
|
32
104
|
|
33
|
-
#
|
105
|
+
# Get statistics about files, grouped by file extension
|
34
106
|
# **API Key Scope**: statistics / by_file_extension
|
35
107
|
# @param [Hash] opts the optional parameters
|
36
108
|
# @option opts [String] :q Solr query
|
109
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
37
110
|
# @option opts [String] :date_attr Type of date to facet on
|
111
|
+
# @option opts [String] :sort Sort results of facet
|
112
|
+
# @option opts [Integer] :limit Limit results of facet
|
38
113
|
# @return [Array<(ByFileExtensionFacet, Integer, Hash)>] ByFileExtensionFacet data, response status code and response headers
|
39
114
|
def statistics_by_file_extension_with_http_info(opts = {})
|
40
115
|
if @api_client.config.debugging
|
41
116
|
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_file_extension ...'
|
42
117
|
end
|
43
|
-
allowable_values = ["
|
118
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
44
119
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
45
120
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
46
121
|
end
|
122
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
123
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
124
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
125
|
+
end
|
47
126
|
# resource path
|
48
127
|
local_var_path = '/statistics/by_file_extension'
|
49
128
|
|
50
129
|
# query parameters
|
51
130
|
query_params = opts[:query_params] || {}
|
52
131
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
132
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
53
133
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
134
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
135
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
54
136
|
|
55
137
|
# header parameters
|
56
138
|
header_params = opts[:header_params] || {}
|
@@ -85,38 +167,51 @@ module Nodeum
|
|
85
167
|
return data, status_code, headers
|
86
168
|
end
|
87
169
|
|
88
|
-
#
|
170
|
+
# Get statistics about files, grouped by owner (group)
|
89
171
|
# **API Key Scope**: statistics / by_group_owner
|
90
172
|
# @param [Hash] opts the optional parameters
|
91
173
|
# @option opts [String] :q Solr query
|
174
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
92
175
|
# @option opts [String] :date_attr Type of date to facet on
|
176
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
177
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
93
178
|
# @return [ByGroupOwnerFacet]
|
94
179
|
def statistics_by_group_owner(opts = {})
|
95
180
|
data, _status_code, _headers = statistics_by_group_owner_with_http_info(opts)
|
96
181
|
data
|
97
182
|
end
|
98
183
|
|
99
|
-
#
|
184
|
+
# Get statistics about files, grouped by owner (group)
|
100
185
|
# **API Key Scope**: statistics / by_group_owner
|
101
186
|
# @param [Hash] opts the optional parameters
|
102
187
|
# @option opts [String] :q Solr query
|
188
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
103
189
|
# @option opts [String] :date_attr Type of date to facet on
|
190
|
+
# @option opts [String] :sort Sort results of facet
|
191
|
+
# @option opts [Integer] :limit Limit results of facet
|
104
192
|
# @return [Array<(ByGroupOwnerFacet, Integer, Hash)>] ByGroupOwnerFacet data, response status code and response headers
|
105
193
|
def statistics_by_group_owner_with_http_info(opts = {})
|
106
194
|
if @api_client.config.debugging
|
107
195
|
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_group_owner ...'
|
108
196
|
end
|
109
|
-
allowable_values = ["
|
197
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
110
198
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
111
199
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
112
200
|
end
|
201
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
202
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
203
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
204
|
+
end
|
113
205
|
# resource path
|
114
206
|
local_var_path = '/statistics/by_group_owner'
|
115
207
|
|
116
208
|
# query parameters
|
117
209
|
query_params = opts[:query_params] || {}
|
118
210
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
211
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
119
212
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
213
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
214
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
120
215
|
|
121
216
|
# header parameters
|
122
217
|
header_params = opts[:header_params] || {}
|
@@ -151,38 +246,130 @@ module Nodeum
|
|
151
246
|
return data, status_code, headers
|
152
247
|
end
|
153
248
|
|
154
|
-
#
|
249
|
+
# Get statistics about files, grouped by primary Cloud
|
250
|
+
# **API Key Scope**: statistics / by_primary_cloud
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @option opts [String] :q Solr query
|
253
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
254
|
+
# @option opts [String] :date_attr Type of date to facet on
|
255
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
256
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
257
|
+
# @return [ByPrimaryCloudFacet]
|
258
|
+
def statistics_by_primary_cloud(opts = {})
|
259
|
+
data, _status_code, _headers = statistics_by_primary_cloud_with_http_info(opts)
|
260
|
+
data
|
261
|
+
end
|
262
|
+
|
263
|
+
# Get statistics about files, grouped by primary Cloud
|
264
|
+
# **API Key Scope**: statistics / by_primary_cloud
|
265
|
+
# @param [Hash] opts the optional parameters
|
266
|
+
# @option opts [String] :q Solr query
|
267
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
268
|
+
# @option opts [String] :date_attr Type of date to facet on
|
269
|
+
# @option opts [String] :sort Sort results of facet
|
270
|
+
# @option opts [Integer] :limit Limit results of facet
|
271
|
+
# @return [Array<(ByPrimaryCloudFacet, Integer, Hash)>] ByPrimaryCloudFacet data, response status code and response headers
|
272
|
+
def statistics_by_primary_cloud_with_http_info(opts = {})
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_primary_cloud ...'
|
275
|
+
end
|
276
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
277
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
278
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
279
|
+
end
|
280
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
281
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
282
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
283
|
+
end
|
284
|
+
# resource path
|
285
|
+
local_var_path = '/statistics/by_primary_cloud'
|
286
|
+
|
287
|
+
# query parameters
|
288
|
+
query_params = opts[:query_params] || {}
|
289
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
290
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
291
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
292
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
293
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
294
|
+
|
295
|
+
# header parameters
|
296
|
+
header_params = opts[:header_params] || {}
|
297
|
+
# HTTP header 'Accept' (if needed)
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
299
|
+
|
300
|
+
# form parameters
|
301
|
+
form_params = opts[:form_params] || {}
|
302
|
+
|
303
|
+
# http body (model)
|
304
|
+
post_body = opts[:body]
|
305
|
+
|
306
|
+
# return_type
|
307
|
+
return_type = opts[:return_type] || 'ByPrimaryCloudFacet'
|
308
|
+
|
309
|
+
# auth_names
|
310
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
311
|
+
|
312
|
+
new_options = opts.merge(
|
313
|
+
:header_params => header_params,
|
314
|
+
:query_params => query_params,
|
315
|
+
:form_params => form_params,
|
316
|
+
:body => post_body,
|
317
|
+
:auth_names => auth_names,
|
318
|
+
:return_type => return_type
|
319
|
+
)
|
320
|
+
|
321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_primary_cloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
324
|
+
end
|
325
|
+
return data, status_code, headers
|
326
|
+
end
|
327
|
+
|
328
|
+
# Get statistics about files, grouped by primary storages
|
155
329
|
# **API Key Scope**: statistics / by_primary_name
|
156
330
|
# @param [Hash] opts the optional parameters
|
157
331
|
# @option opts [String] :q Solr query
|
332
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
158
333
|
# @option opts [String] :date_attr Type of date to facet on
|
334
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
335
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
159
336
|
# @return [ByPrimaryFacet]
|
160
337
|
def statistics_by_primary_name(opts = {})
|
161
338
|
data, _status_code, _headers = statistics_by_primary_name_with_http_info(opts)
|
162
339
|
data
|
163
340
|
end
|
164
341
|
|
165
|
-
#
|
342
|
+
# Get statistics about files, grouped by primary storages
|
166
343
|
# **API Key Scope**: statistics / by_primary_name
|
167
344
|
# @param [Hash] opts the optional parameters
|
168
345
|
# @option opts [String] :q Solr query
|
346
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
169
347
|
# @option opts [String] :date_attr Type of date to facet on
|
348
|
+
# @option opts [String] :sort Sort results of facet
|
349
|
+
# @option opts [Integer] :limit Limit results of facet
|
170
350
|
# @return [Array<(ByPrimaryFacet, Integer, Hash)>] ByPrimaryFacet data, response status code and response headers
|
171
351
|
def statistics_by_primary_name_with_http_info(opts = {})
|
172
352
|
if @api_client.config.debugging
|
173
353
|
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_primary_name ...'
|
174
354
|
end
|
175
|
-
allowable_values = ["
|
355
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
176
356
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
177
357
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
178
358
|
end
|
359
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
360
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
361
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
362
|
+
end
|
179
363
|
# resource path
|
180
364
|
local_var_path = '/statistics/by_primary_name'
|
181
365
|
|
182
366
|
# query parameters
|
183
367
|
query_params = opts[:query_params] || {}
|
184
368
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
369
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
185
370
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
371
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
372
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
186
373
|
|
187
374
|
# header parameters
|
188
375
|
header_params = opts[:header_params] || {}
|
@@ -217,38 +404,51 @@ module Nodeum
|
|
217
404
|
return data, status_code, headers
|
218
405
|
end
|
219
406
|
|
220
|
-
#
|
221
|
-
# **API Key Scope**: statistics /
|
407
|
+
# Get statistics about files, grouped by primary NAS
|
408
|
+
# **API Key Scope**: statistics / by_primary_nas
|
222
409
|
# @param [Hash] opts the optional parameters
|
223
410
|
# @option opts [String] :q Solr query
|
411
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
224
412
|
# @option opts [String] :date_attr Type of date to facet on
|
225
|
-
# @
|
226
|
-
|
227
|
-
|
413
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
414
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
415
|
+
# @return [ByPrimaryNasFacet]
|
416
|
+
def statistics_by_primary_nas(opts = {})
|
417
|
+
data, _status_code, _headers = statistics_by_primary_nas_with_http_info(opts)
|
228
418
|
data
|
229
419
|
end
|
230
420
|
|
231
|
-
#
|
232
|
-
# **API Key Scope**: statistics /
|
421
|
+
# Get statistics about files, grouped by primary NAS
|
422
|
+
# **API Key Scope**: statistics / by_primary_nas
|
233
423
|
# @param [Hash] opts the optional parameters
|
234
424
|
# @option opts [String] :q Solr query
|
425
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
235
426
|
# @option opts [String] :date_attr Type of date to facet on
|
236
|
-
# @
|
237
|
-
|
427
|
+
# @option opts [String] :sort Sort results of facet
|
428
|
+
# @option opts [Integer] :limit Limit results of facet
|
429
|
+
# @return [Array<(ByPrimaryNasFacet, Integer, Hash)>] ByPrimaryNasFacet data, response status code and response headers
|
430
|
+
def statistics_by_primary_nas_with_http_info(opts = {})
|
238
431
|
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug 'Calling API: StatisticsApi.
|
432
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_primary_nas ...'
|
240
433
|
end
|
241
|
-
allowable_values = ["
|
434
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
242
435
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
243
436
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
244
437
|
end
|
438
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
439
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
440
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
441
|
+
end
|
245
442
|
# resource path
|
246
|
-
local_var_path = '/statistics/
|
443
|
+
local_var_path = '/statistics/by_primary_nas'
|
247
444
|
|
248
445
|
# query parameters
|
249
446
|
query_params = opts[:query_params] || {}
|
250
447
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
448
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
251
449
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
450
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
451
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
252
452
|
|
253
453
|
# header parameters
|
254
454
|
header_params = opts[:header_params] || {}
|
@@ -262,7 +462,7 @@ module Nodeum
|
|
262
462
|
post_body = opts[:body]
|
263
463
|
|
264
464
|
# return_type
|
265
|
-
return_type = opts[:return_type] || '
|
465
|
+
return_type = opts[:return_type] || 'ByPrimaryNasFacet'
|
266
466
|
|
267
467
|
# auth_names
|
268
468
|
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
@@ -278,43 +478,56 @@ module Nodeum
|
|
278
478
|
|
279
479
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
280
480
|
if @api_client.config.debugging
|
281
|
-
@api_client.config.logger.debug "API called: StatisticsApi#
|
481
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_primary_nas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
282
482
|
end
|
283
483
|
return data, status_code, headers
|
284
484
|
end
|
285
485
|
|
286
|
-
#
|
287
|
-
# **API Key Scope**: statistics /
|
486
|
+
# Get statistics about files, grouped by primary storage
|
487
|
+
# **API Key Scope**: statistics / by_primary_storage
|
288
488
|
# @param [Hash] opts the optional parameters
|
289
489
|
# @option opts [String] :q Solr query
|
490
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
290
491
|
# @option opts [String] :date_attr Type of date to facet on
|
291
|
-
# @
|
292
|
-
|
293
|
-
|
492
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
493
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
494
|
+
# @return [ByPrimaryStorageFacet]
|
495
|
+
def statistics_by_primary_storage(opts = {})
|
496
|
+
data, _status_code, _headers = statistics_by_primary_storage_with_http_info(opts)
|
294
497
|
data
|
295
498
|
end
|
296
499
|
|
297
|
-
#
|
298
|
-
# **API Key Scope**: statistics /
|
500
|
+
# Get statistics about files, grouped by primary storage
|
501
|
+
# **API Key Scope**: statistics / by_primary_storage
|
299
502
|
# @param [Hash] opts the optional parameters
|
300
503
|
# @option opts [String] :q Solr query
|
504
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
301
505
|
# @option opts [String] :date_attr Type of date to facet on
|
302
|
-
# @
|
303
|
-
|
506
|
+
# @option opts [String] :sort Sort results of facet
|
507
|
+
# @option opts [Integer] :limit Limit results of facet
|
508
|
+
# @return [Array<(ByPrimaryStorageFacet, Integer, Hash)>] ByPrimaryStorageFacet data, response status code and response headers
|
509
|
+
def statistics_by_primary_storage_with_http_info(opts = {})
|
304
510
|
if @api_client.config.debugging
|
305
|
-
@api_client.config.logger.debug 'Calling API: StatisticsApi.
|
511
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_primary_storage ...'
|
306
512
|
end
|
307
|
-
allowable_values = ["
|
513
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
308
514
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
309
515
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
310
516
|
end
|
517
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
518
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
519
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
520
|
+
end
|
311
521
|
# resource path
|
312
|
-
local_var_path = '/statistics/
|
522
|
+
local_var_path = '/statistics/by_primary_storage'
|
313
523
|
|
314
524
|
# query parameters
|
315
525
|
query_params = opts[:query_params] || {}
|
316
526
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
527
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
317
528
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
529
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
530
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
318
531
|
|
319
532
|
# header parameters
|
320
533
|
header_params = opts[:header_params] || {}
|
@@ -328,7 +541,7 @@ module Nodeum
|
|
328
541
|
post_body = opts[:body]
|
329
542
|
|
330
543
|
# return_type
|
331
|
-
return_type = opts[:return_type] || '
|
544
|
+
return_type = opts[:return_type] || 'ByPrimaryStorageFacet'
|
332
545
|
|
333
546
|
# auth_names
|
334
547
|
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
@@ -344,43 +557,56 @@ module Nodeum
|
|
344
557
|
|
345
558
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
346
559
|
if @api_client.config.debugging
|
347
|
-
@api_client.config.logger.debug "API called: StatisticsApi#
|
560
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_primary_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
561
|
end
|
349
562
|
return data, status_code, headers
|
350
563
|
end
|
351
564
|
|
352
|
-
#
|
353
|
-
# **API Key Scope**: statistics /
|
565
|
+
# Get statistics about files, grouped by secondary Cloud
|
566
|
+
# **API Key Scope**: statistics / by_secondary_cloud
|
354
567
|
# @param [Hash] opts the optional parameters
|
355
568
|
# @option opts [String] :q Solr query
|
569
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
356
570
|
# @option opts [String] :date_attr Type of date to facet on
|
357
|
-
# @
|
358
|
-
|
359
|
-
|
571
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
572
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
573
|
+
# @return [BySecondaryCloudFacet]
|
574
|
+
def statistics_by_secondary_cloud(opts = {})
|
575
|
+
data, _status_code, _headers = statistics_by_secondary_cloud_with_http_info(opts)
|
360
576
|
data
|
361
577
|
end
|
362
578
|
|
363
|
-
#
|
364
|
-
# **API Key Scope**: statistics /
|
579
|
+
# Get statistics about files, grouped by secondary Cloud
|
580
|
+
# **API Key Scope**: statistics / by_secondary_cloud
|
365
581
|
# @param [Hash] opts the optional parameters
|
366
582
|
# @option opts [String] :q Solr query
|
583
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
367
584
|
# @option opts [String] :date_attr Type of date to facet on
|
368
|
-
# @
|
369
|
-
|
585
|
+
# @option opts [String] :sort Sort results of facet
|
586
|
+
# @option opts [Integer] :limit Limit results of facet
|
587
|
+
# @return [Array<(BySecondaryCloudFacet, Integer, Hash)>] BySecondaryCloudFacet data, response status code and response headers
|
588
|
+
def statistics_by_secondary_cloud_with_http_info(opts = {})
|
370
589
|
if @api_client.config.debugging
|
371
|
-
@api_client.config.logger.debug 'Calling API: StatisticsApi.
|
590
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_secondary_cloud ...'
|
372
591
|
end
|
373
|
-
allowable_values = ["
|
592
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
374
593
|
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
375
594
|
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
376
595
|
end
|
596
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
597
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
598
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
599
|
+
end
|
377
600
|
# resource path
|
378
|
-
local_var_path = '/statistics/
|
601
|
+
local_var_path = '/statistics/by_secondary_cloud'
|
379
602
|
|
380
603
|
# query parameters
|
381
604
|
query_params = opts[:query_params] || {}
|
382
605
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
606
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
383
607
|
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
608
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
609
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
384
610
|
|
385
611
|
# header parameters
|
386
612
|
header_params = opts[:header_params] || {}
|
@@ -394,7 +620,7 @@ module Nodeum
|
|
394
620
|
post_body = opts[:body]
|
395
621
|
|
396
622
|
# return_type
|
397
|
-
return_type = opts[:return_type] || '
|
623
|
+
return_type = opts[:return_type] || 'BySecondaryCloudFacet'
|
398
624
|
|
399
625
|
# auth_names
|
400
626
|
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
@@ -410,7 +636,640 @@ module Nodeum
|
|
410
636
|
|
411
637
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
412
638
|
if @api_client.config.debugging
|
413
|
-
@api_client.config.logger.debug "API called: StatisticsApi#
|
639
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_secondary_cloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
640
|
+
end
|
641
|
+
return data, status_code, headers
|
642
|
+
end
|
643
|
+
|
644
|
+
# Get statistics about files, grouped by secondary NAS
|
645
|
+
# **API Key Scope**: statistics / by_secondary_nas
|
646
|
+
# @param [Hash] opts the optional parameters
|
647
|
+
# @option opts [String] :q Solr query
|
648
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
649
|
+
# @option opts [String] :date_attr Type of date to facet on
|
650
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
651
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
652
|
+
# @return [BySecondaryNasFacet]
|
653
|
+
def statistics_by_secondary_nas(opts = {})
|
654
|
+
data, _status_code, _headers = statistics_by_secondary_nas_with_http_info(opts)
|
655
|
+
data
|
656
|
+
end
|
657
|
+
|
658
|
+
# Get statistics about files, grouped by secondary NAS
|
659
|
+
# **API Key Scope**: statistics / by_secondary_nas
|
660
|
+
# @param [Hash] opts the optional parameters
|
661
|
+
# @option opts [String] :q Solr query
|
662
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
663
|
+
# @option opts [String] :date_attr Type of date to facet on
|
664
|
+
# @option opts [String] :sort Sort results of facet
|
665
|
+
# @option opts [Integer] :limit Limit results of facet
|
666
|
+
# @return [Array<(BySecondaryNasFacet, Integer, Hash)>] BySecondaryNasFacet data, response status code and response headers
|
667
|
+
def statistics_by_secondary_nas_with_http_info(opts = {})
|
668
|
+
if @api_client.config.debugging
|
669
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_secondary_nas ...'
|
670
|
+
end
|
671
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
672
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
673
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
674
|
+
end
|
675
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
676
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
677
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
678
|
+
end
|
679
|
+
# resource path
|
680
|
+
local_var_path = '/statistics/by_secondary_nas'
|
681
|
+
|
682
|
+
# query parameters
|
683
|
+
query_params = opts[:query_params] || {}
|
684
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
685
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
686
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
687
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
688
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
689
|
+
|
690
|
+
# header parameters
|
691
|
+
header_params = opts[:header_params] || {}
|
692
|
+
# HTTP header 'Accept' (if needed)
|
693
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
694
|
+
|
695
|
+
# form parameters
|
696
|
+
form_params = opts[:form_params] || {}
|
697
|
+
|
698
|
+
# http body (model)
|
699
|
+
post_body = opts[:body]
|
700
|
+
|
701
|
+
# return_type
|
702
|
+
return_type = opts[:return_type] || 'BySecondaryNasFacet'
|
703
|
+
|
704
|
+
# auth_names
|
705
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
706
|
+
|
707
|
+
new_options = opts.merge(
|
708
|
+
:header_params => header_params,
|
709
|
+
:query_params => query_params,
|
710
|
+
:form_params => form_params,
|
711
|
+
:body => post_body,
|
712
|
+
:auth_names => auth_names,
|
713
|
+
:return_type => return_type
|
714
|
+
)
|
715
|
+
|
716
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
717
|
+
if @api_client.config.debugging
|
718
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_secondary_nas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
719
|
+
end
|
720
|
+
return data, status_code, headers
|
721
|
+
end
|
722
|
+
|
723
|
+
# Get statistics about files, grouped by secondary storage
|
724
|
+
# **API Key Scope**: statistics / by_secondary_storage
|
725
|
+
# @param [Hash] opts the optional parameters
|
726
|
+
# @option opts [String] :q Solr query
|
727
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
728
|
+
# @option opts [String] :date_attr Type of date to facet on
|
729
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
730
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
731
|
+
# @return [BySecondaryStorageFacet]
|
732
|
+
def statistics_by_secondary_storage(opts = {})
|
733
|
+
data, _status_code, _headers = statistics_by_secondary_storage_with_http_info(opts)
|
734
|
+
data
|
735
|
+
end
|
736
|
+
|
737
|
+
# Get statistics about files, grouped by secondary storage
|
738
|
+
# **API Key Scope**: statistics / by_secondary_storage
|
739
|
+
# @param [Hash] opts the optional parameters
|
740
|
+
# @option opts [String] :q Solr query
|
741
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
742
|
+
# @option opts [String] :date_attr Type of date to facet on
|
743
|
+
# @option opts [String] :sort Sort results of facet
|
744
|
+
# @option opts [Integer] :limit Limit results of facet
|
745
|
+
# @return [Array<(BySecondaryStorageFacet, Integer, Hash)>] BySecondaryStorageFacet data, response status code and response headers
|
746
|
+
def statistics_by_secondary_storage_with_http_info(opts = {})
|
747
|
+
if @api_client.config.debugging
|
748
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_secondary_storage ...'
|
749
|
+
end
|
750
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
751
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
752
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
753
|
+
end
|
754
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
755
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
756
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
757
|
+
end
|
758
|
+
# resource path
|
759
|
+
local_var_path = '/statistics/by_secondary_storage'
|
760
|
+
|
761
|
+
# query parameters
|
762
|
+
query_params = opts[:query_params] || {}
|
763
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
764
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
765
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
766
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
767
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
768
|
+
|
769
|
+
# header parameters
|
770
|
+
header_params = opts[:header_params] || {}
|
771
|
+
# HTTP header 'Accept' (if needed)
|
772
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
773
|
+
|
774
|
+
# form parameters
|
775
|
+
form_params = opts[:form_params] || {}
|
776
|
+
|
777
|
+
# http body (model)
|
778
|
+
post_body = opts[:body]
|
779
|
+
|
780
|
+
# return_type
|
781
|
+
return_type = opts[:return_type] || 'BySecondaryStorageFacet'
|
782
|
+
|
783
|
+
# auth_names
|
784
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
785
|
+
|
786
|
+
new_options = opts.merge(
|
787
|
+
:header_params => header_params,
|
788
|
+
:query_params => query_params,
|
789
|
+
:form_params => form_params,
|
790
|
+
:body => post_body,
|
791
|
+
:auth_names => auth_names,
|
792
|
+
:return_type => return_type
|
793
|
+
)
|
794
|
+
|
795
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
796
|
+
if @api_client.config.debugging
|
797
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_secondary_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
798
|
+
end
|
799
|
+
return data, status_code, headers
|
800
|
+
end
|
801
|
+
|
802
|
+
# Get statistics about files, grouped by secondary Tape
|
803
|
+
# **API Key Scope**: statistics / by_secondary_tape
|
804
|
+
# @param [Hash] opts the optional parameters
|
805
|
+
# @option opts [String] :q Solr query
|
806
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
807
|
+
# @option opts [String] :date_attr Type of date to facet on
|
808
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
809
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
810
|
+
# @return [BySecondaryTapeFacet]
|
811
|
+
def statistics_by_secondary_tape(opts = {})
|
812
|
+
data, _status_code, _headers = statistics_by_secondary_tape_with_http_info(opts)
|
813
|
+
data
|
814
|
+
end
|
815
|
+
|
816
|
+
# Get statistics about files, grouped by secondary Tape
|
817
|
+
# **API Key Scope**: statistics / by_secondary_tape
|
818
|
+
# @param [Hash] opts the optional parameters
|
819
|
+
# @option opts [String] :q Solr query
|
820
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
821
|
+
# @option opts [String] :date_attr Type of date to facet on
|
822
|
+
# @option opts [String] :sort Sort results of facet
|
823
|
+
# @option opts [Integer] :limit Limit results of facet
|
824
|
+
# @return [Array<(BySecondaryTapeFacet, Integer, Hash)>] BySecondaryTapeFacet data, response status code and response headers
|
825
|
+
def statistics_by_secondary_tape_with_http_info(opts = {})
|
826
|
+
if @api_client.config.debugging
|
827
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_secondary_tape ...'
|
828
|
+
end
|
829
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
830
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
831
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
832
|
+
end
|
833
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
834
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
835
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
836
|
+
end
|
837
|
+
# resource path
|
838
|
+
local_var_path = '/statistics/by_secondary_tape'
|
839
|
+
|
840
|
+
# query parameters
|
841
|
+
query_params = opts[:query_params] || {}
|
842
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
843
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
844
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
845
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
846
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
847
|
+
|
848
|
+
# header parameters
|
849
|
+
header_params = opts[:header_params] || {}
|
850
|
+
# HTTP header 'Accept' (if needed)
|
851
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
852
|
+
|
853
|
+
# form parameters
|
854
|
+
form_params = opts[:form_params] || {}
|
855
|
+
|
856
|
+
# http body (model)
|
857
|
+
post_body = opts[:body]
|
858
|
+
|
859
|
+
# return_type
|
860
|
+
return_type = opts[:return_type] || 'BySecondaryTapeFacet'
|
861
|
+
|
862
|
+
# auth_names
|
863
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
864
|
+
|
865
|
+
new_options = opts.merge(
|
866
|
+
:header_params => header_params,
|
867
|
+
:query_params => query_params,
|
868
|
+
:form_params => form_params,
|
869
|
+
:body => post_body,
|
870
|
+
:auth_names => auth_names,
|
871
|
+
:return_type => return_type
|
872
|
+
)
|
873
|
+
|
874
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
875
|
+
if @api_client.config.debugging
|
876
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_secondary_tape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
877
|
+
end
|
878
|
+
return data, status_code, headers
|
879
|
+
end
|
880
|
+
|
881
|
+
# Get statistics about files, grouped by size
|
882
|
+
# **API Key Scope**: statistics / by_size
|
883
|
+
# @param [Hash] opts the optional parameters
|
884
|
+
# @option opts [String] :q Solr query
|
885
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
886
|
+
# @option opts [String] :date_attr Type of date to facet on
|
887
|
+
# @return [BySizeFacet]
|
888
|
+
def statistics_by_size(opts = {})
|
889
|
+
data, _status_code, _headers = statistics_by_size_with_http_info(opts)
|
890
|
+
data
|
891
|
+
end
|
892
|
+
|
893
|
+
# Get statistics about files, grouped by size
|
894
|
+
# **API Key Scope**: statistics / by_size
|
895
|
+
# @param [Hash] opts the optional parameters
|
896
|
+
# @option opts [String] :q Solr query
|
897
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
898
|
+
# @option opts [String] :date_attr Type of date to facet on
|
899
|
+
# @return [Array<(BySizeFacet, Integer, Hash)>] BySizeFacet data, response status code and response headers
|
900
|
+
def statistics_by_size_with_http_info(opts = {})
|
901
|
+
if @api_client.config.debugging
|
902
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_size ...'
|
903
|
+
end
|
904
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
905
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
906
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
907
|
+
end
|
908
|
+
# resource path
|
909
|
+
local_var_path = '/statistics/by_size'
|
910
|
+
|
911
|
+
# query parameters
|
912
|
+
query_params = opts[:query_params] || {}
|
913
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
914
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
915
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
916
|
+
|
917
|
+
# header parameters
|
918
|
+
header_params = opts[:header_params] || {}
|
919
|
+
# HTTP header 'Accept' (if needed)
|
920
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
921
|
+
|
922
|
+
# form parameters
|
923
|
+
form_params = opts[:form_params] || {}
|
924
|
+
|
925
|
+
# http body (model)
|
926
|
+
post_body = opts[:body]
|
927
|
+
|
928
|
+
# return_type
|
929
|
+
return_type = opts[:return_type] || 'BySizeFacet'
|
930
|
+
|
931
|
+
# auth_names
|
932
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
933
|
+
|
934
|
+
new_options = opts.merge(
|
935
|
+
:header_params => header_params,
|
936
|
+
:query_params => query_params,
|
937
|
+
:form_params => form_params,
|
938
|
+
:body => post_body,
|
939
|
+
:auth_names => auth_names,
|
940
|
+
:return_type => return_type
|
941
|
+
)
|
942
|
+
|
943
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
944
|
+
if @api_client.config.debugging
|
945
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_size\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
946
|
+
end
|
947
|
+
return data, status_code, headers
|
948
|
+
end
|
949
|
+
|
950
|
+
# Get statistics about files, grouped by owner (user)
|
951
|
+
# **API Key Scope**: statistics / by_user_owner
|
952
|
+
# @param [Hash] opts the optional parameters
|
953
|
+
# @option opts [String] :q Solr query
|
954
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
955
|
+
# @option opts [String] :date_attr Type of date to facet on
|
956
|
+
# @option opts [String] :sort Sort results of facet (default to 'count')
|
957
|
+
# @option opts [Integer] :limit Limit results of facet (default to 10)
|
958
|
+
# @return [ByUserOwnerFacet]
|
959
|
+
def statistics_by_user_owner(opts = {})
|
960
|
+
data, _status_code, _headers = statistics_by_user_owner_with_http_info(opts)
|
961
|
+
data
|
962
|
+
end
|
963
|
+
|
964
|
+
# Get statistics about files, grouped by owner (user)
|
965
|
+
# **API Key Scope**: statistics / by_user_owner
|
966
|
+
# @param [Hash] opts the optional parameters
|
967
|
+
# @option opts [String] :q Solr query
|
968
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
969
|
+
# @option opts [String] :date_attr Type of date to facet on
|
970
|
+
# @option opts [String] :sort Sort results of facet
|
971
|
+
# @option opts [Integer] :limit Limit results of facet
|
972
|
+
# @return [Array<(ByUserOwnerFacet, Integer, Hash)>] ByUserOwnerFacet data, response status code and response headers
|
973
|
+
def statistics_by_user_owner_with_http_info(opts = {})
|
974
|
+
if @api_client.config.debugging
|
975
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_by_user_owner ...'
|
976
|
+
end
|
977
|
+
allowable_values = ["file_change_dt", "file_modification_dt", "file_access_dt"]
|
978
|
+
if @api_client.config.client_side_validation && opts[:'date_attr'] && !allowable_values.include?(opts[:'date_attr'])
|
979
|
+
fail ArgumentError, "invalid value for \"date_attr\", must be one of #{allowable_values}"
|
980
|
+
end
|
981
|
+
allowable_values = ["count", "files_count", "file_size_sum", "cost"]
|
982
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
983
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
984
|
+
end
|
985
|
+
# resource path
|
986
|
+
local_var_path = '/statistics/by_user_owner'
|
987
|
+
|
988
|
+
# query parameters
|
989
|
+
query_params = opts[:query_params] || {}
|
990
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
991
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
992
|
+
query_params[:'date_attr'] = opts[:'date_attr'] if !opts[:'date_attr'].nil?
|
993
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
994
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
995
|
+
|
996
|
+
# header parameters
|
997
|
+
header_params = opts[:header_params] || {}
|
998
|
+
# HTTP header 'Accept' (if needed)
|
999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1000
|
+
|
1001
|
+
# form parameters
|
1002
|
+
form_params = opts[:form_params] || {}
|
1003
|
+
|
1004
|
+
# http body (model)
|
1005
|
+
post_body = opts[:body]
|
1006
|
+
|
1007
|
+
# return_type
|
1008
|
+
return_type = opts[:return_type] || 'ByUserOwnerFacet'
|
1009
|
+
|
1010
|
+
# auth_names
|
1011
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1012
|
+
|
1013
|
+
new_options = opts.merge(
|
1014
|
+
:header_params => header_params,
|
1015
|
+
:query_params => query_params,
|
1016
|
+
:form_params => form_params,
|
1017
|
+
:body => post_body,
|
1018
|
+
:auth_names => auth_names,
|
1019
|
+
:return_type => return_type
|
1020
|
+
)
|
1021
|
+
|
1022
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1023
|
+
if @api_client.config.debugging
|
1024
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_by_user_owner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1025
|
+
end
|
1026
|
+
return data, status_code, headers
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# Get statistics about storages, grouped by types
|
1030
|
+
# **API Key Scope**: statistics / storages
|
1031
|
+
# @param [Hash] opts the optional parameters
|
1032
|
+
# @option opts [String] :q Solr query
|
1033
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1034
|
+
# @return [StorageFacet]
|
1035
|
+
def statistics_storage(opts = {})
|
1036
|
+
data, _status_code, _headers = statistics_storage_with_http_info(opts)
|
1037
|
+
data
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Get statistics about storages, grouped by types
|
1041
|
+
# **API Key Scope**: statistics / storages
|
1042
|
+
# @param [Hash] opts the optional parameters
|
1043
|
+
# @option opts [String] :q Solr query
|
1044
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1045
|
+
# @return [Array<(StorageFacet, Integer, Hash)>] StorageFacet data, response status code and response headers
|
1046
|
+
def statistics_storage_with_http_info(opts = {})
|
1047
|
+
if @api_client.config.debugging
|
1048
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_storage ...'
|
1049
|
+
end
|
1050
|
+
# resource path
|
1051
|
+
local_var_path = '/statistics/storage'
|
1052
|
+
|
1053
|
+
# query parameters
|
1054
|
+
query_params = opts[:query_params] || {}
|
1055
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
1056
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
1057
|
+
|
1058
|
+
# header parameters
|
1059
|
+
header_params = opts[:header_params] || {}
|
1060
|
+
# HTTP header 'Accept' (if needed)
|
1061
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1062
|
+
|
1063
|
+
# form parameters
|
1064
|
+
form_params = opts[:form_params] || {}
|
1065
|
+
|
1066
|
+
# http body (model)
|
1067
|
+
post_body = opts[:body]
|
1068
|
+
|
1069
|
+
# return_type
|
1070
|
+
return_type = opts[:return_type] || 'StorageFacet'
|
1071
|
+
|
1072
|
+
# auth_names
|
1073
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1074
|
+
|
1075
|
+
new_options = opts.merge(
|
1076
|
+
:header_params => header_params,
|
1077
|
+
:query_params => query_params,
|
1078
|
+
:form_params => form_params,
|
1079
|
+
:body => post_body,
|
1080
|
+
:auth_names => auth_names,
|
1081
|
+
:return_type => return_type
|
1082
|
+
)
|
1083
|
+
|
1084
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1085
|
+
if @api_client.config.debugging
|
1086
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1087
|
+
end
|
1088
|
+
return data, status_code, headers
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# Get statistics about tasks executions, grouped by status
|
1092
|
+
# **API Key Scope**: statistics / task_by_status
|
1093
|
+
# @param [Hash] opts the optional parameters
|
1094
|
+
# @option opts [String] :q Solr query
|
1095
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1096
|
+
# @return [ByTaskStatusFacet]
|
1097
|
+
def statistics_task_by_status(opts = {})
|
1098
|
+
data, _status_code, _headers = statistics_task_by_status_with_http_info(opts)
|
1099
|
+
data
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
# Get statistics about tasks executions, grouped by status
|
1103
|
+
# **API Key Scope**: statistics / task_by_status
|
1104
|
+
# @param [Hash] opts the optional parameters
|
1105
|
+
# @option opts [String] :q Solr query
|
1106
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1107
|
+
# @return [Array<(ByTaskStatusFacet, Integer, Hash)>] ByTaskStatusFacet data, response status code and response headers
|
1108
|
+
def statistics_task_by_status_with_http_info(opts = {})
|
1109
|
+
if @api_client.config.debugging
|
1110
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_task_by_status ...'
|
1111
|
+
end
|
1112
|
+
# resource path
|
1113
|
+
local_var_path = '/statistics/task_by_status'
|
1114
|
+
|
1115
|
+
# query parameters
|
1116
|
+
query_params = opts[:query_params] || {}
|
1117
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
1118
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
1119
|
+
|
1120
|
+
# header parameters
|
1121
|
+
header_params = opts[:header_params] || {}
|
1122
|
+
# HTTP header 'Accept' (if needed)
|
1123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1124
|
+
|
1125
|
+
# form parameters
|
1126
|
+
form_params = opts[:form_params] || {}
|
1127
|
+
|
1128
|
+
# http body (model)
|
1129
|
+
post_body = opts[:body]
|
1130
|
+
|
1131
|
+
# return_type
|
1132
|
+
return_type = opts[:return_type] || 'ByTaskStatusFacet'
|
1133
|
+
|
1134
|
+
# auth_names
|
1135
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1136
|
+
|
1137
|
+
new_options = opts.merge(
|
1138
|
+
:header_params => header_params,
|
1139
|
+
:query_params => query_params,
|
1140
|
+
:form_params => form_params,
|
1141
|
+
:body => post_body,
|
1142
|
+
:auth_names => auth_names,
|
1143
|
+
:return_type => return_type
|
1144
|
+
)
|
1145
|
+
|
1146
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1147
|
+
if @api_client.config.debugging
|
1148
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_task_by_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1149
|
+
end
|
1150
|
+
return data, status_code, headers
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# Get statistics about tasks executions, grouped by source and destination
|
1154
|
+
# **API Key Scope**: statistics / task_by_storage
|
1155
|
+
# @param [Hash] opts the optional parameters
|
1156
|
+
# @option opts [String] :q Solr query
|
1157
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1158
|
+
# @return [ByTaskStorageFacet]
|
1159
|
+
def statistics_task_by_storage(opts = {})
|
1160
|
+
data, _status_code, _headers = statistics_task_by_storage_with_http_info(opts)
|
1161
|
+
data
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Get statistics about tasks executions, grouped by source and destination
|
1165
|
+
# **API Key Scope**: statistics / task_by_storage
|
1166
|
+
# @param [Hash] opts the optional parameters
|
1167
|
+
# @option opts [String] :q Solr query
|
1168
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1169
|
+
# @return [Array<(ByTaskStorageFacet, Integer, Hash)>] ByTaskStorageFacet data, response status code and response headers
|
1170
|
+
def statistics_task_by_storage_with_http_info(opts = {})
|
1171
|
+
if @api_client.config.debugging
|
1172
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_task_by_storage ...'
|
1173
|
+
end
|
1174
|
+
# resource path
|
1175
|
+
local_var_path = '/statistics/task_by_storage'
|
1176
|
+
|
1177
|
+
# query parameters
|
1178
|
+
query_params = opts[:query_params] || {}
|
1179
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
1180
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
1181
|
+
|
1182
|
+
# header parameters
|
1183
|
+
header_params = opts[:header_params] || {}
|
1184
|
+
# HTTP header 'Accept' (if needed)
|
1185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1186
|
+
|
1187
|
+
# form parameters
|
1188
|
+
form_params = opts[:form_params] || {}
|
1189
|
+
|
1190
|
+
# http body (model)
|
1191
|
+
post_body = opts[:body]
|
1192
|
+
|
1193
|
+
# return_type
|
1194
|
+
return_type = opts[:return_type] || 'ByTaskStorageFacet'
|
1195
|
+
|
1196
|
+
# auth_names
|
1197
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1198
|
+
|
1199
|
+
new_options = opts.merge(
|
1200
|
+
:header_params => header_params,
|
1201
|
+
:query_params => query_params,
|
1202
|
+
:form_params => form_params,
|
1203
|
+
:body => post_body,
|
1204
|
+
:auth_names => auth_names,
|
1205
|
+
:return_type => return_type
|
1206
|
+
)
|
1207
|
+
|
1208
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1209
|
+
if @api_client.config.debugging
|
1210
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_task_by_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1211
|
+
end
|
1212
|
+
return data, status_code, headers
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
# Get statistics about tasks executions, grouped by workflow
|
1216
|
+
# **API Key Scope**: statistics / task_by_workflow
|
1217
|
+
# @param [Hash] opts the optional parameters
|
1218
|
+
# @option opts [String] :q Solr query
|
1219
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1220
|
+
# @return [ByTaskWorkflowFacet]
|
1221
|
+
def statistics_task_by_workflow(opts = {})
|
1222
|
+
data, _status_code, _headers = statistics_task_by_workflow_with_http_info(opts)
|
1223
|
+
data
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Get statistics about tasks executions, grouped by workflow
|
1227
|
+
# **API Key Scope**: statistics / task_by_workflow
|
1228
|
+
# @param [Hash] opts the optional parameters
|
1229
|
+
# @option opts [String] :q Solr query
|
1230
|
+
# @option opts [Array<String>] :fq Solr filter query Multiple query can be separated by `|`.
|
1231
|
+
# @return [Array<(ByTaskWorkflowFacet, Integer, Hash)>] ByTaskWorkflowFacet data, response status code and response headers
|
1232
|
+
def statistics_task_by_workflow_with_http_info(opts = {})
|
1233
|
+
if @api_client.config.debugging
|
1234
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.statistics_task_by_workflow ...'
|
1235
|
+
end
|
1236
|
+
# resource path
|
1237
|
+
local_var_path = '/statistics/task_by_workflow'
|
1238
|
+
|
1239
|
+
# query parameters
|
1240
|
+
query_params = opts[:query_params] || {}
|
1241
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
1242
|
+
query_params[:'fq'] = @api_client.build_collection_param(opts[:'fq'], :pipe) if !opts[:'fq'].nil?
|
1243
|
+
|
1244
|
+
# header parameters
|
1245
|
+
header_params = opts[:header_params] || {}
|
1246
|
+
# HTTP header 'Accept' (if needed)
|
1247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1248
|
+
|
1249
|
+
# form parameters
|
1250
|
+
form_params = opts[:form_params] || {}
|
1251
|
+
|
1252
|
+
# http body (model)
|
1253
|
+
post_body = opts[:body]
|
1254
|
+
|
1255
|
+
# return_type
|
1256
|
+
return_type = opts[:return_type] || 'ByTaskWorkflowFacet'
|
1257
|
+
|
1258
|
+
# auth_names
|
1259
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1260
|
+
|
1261
|
+
new_options = opts.merge(
|
1262
|
+
:header_params => header_params,
|
1263
|
+
:query_params => query_params,
|
1264
|
+
:form_params => form_params,
|
1265
|
+
:body => post_body,
|
1266
|
+
:auth_names => auth_names,
|
1267
|
+
:return_type => return_type
|
1268
|
+
)
|
1269
|
+
|
1270
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1271
|
+
if @api_client.config.debugging
|
1272
|
+
@api_client.config.logger.debug "API called: StatisticsApi#statistics_task_by_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
1273
|
end
|
415
1274
|
return data, status_code, headers
|
416
1275
|
end
|