pulp_gem_client 0.7.0 → 0.7.2
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 +5 -4
- data/docs/ContentGemApi.md +22 -8
- data/docs/DistributionsGemApi.md +76 -34
- data/docs/GemGemContentResponse.md +2 -0
- data/docs/GemGemRemoteResponse.md +1 -1
- data/docs/PublicationsGemApi.md +44 -18
- data/docs/RemotesGemApi.md +72 -32
- data/docs/RepositoriesGemApi.md +88 -40
- data/docs/RepositoriesGemVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_gem_client/api/content_gem_api.rb +15 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +42 -3
- data/lib/pulp_gem_client/api/publications_gem_api.rb +30 -3
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +36 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +42 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +15 -3
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +10 -1
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +0 -17
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +0 -17
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +0 -15
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +0 -15
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +0 -17
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +0 -15
- data/lib/pulp_gem_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_gem_client/version.rb +1 -1
- data/pulp_gem_client.gemspec +0 -1
- data/spec/api/content_gem_api_spec.rb +5 -0
- data/spec/api/distributions_gem_api_spec.rb +14 -1
- data/spec/api/publications_gem_api_spec.rb +10 -1
- data/spec/api/remotes_gem_api_spec.rb +12 -0
- data/spec/api/repositories_gem_api_spec.rb +14 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +5 -1
- data/spec/models/gem_gem_content_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +28 -48
@@ -22,6 +22,7 @@ module PulpGemClient
|
|
22
22
|
# Create a gem content
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
25
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
27
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
27
28
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -35,6 +36,7 @@ module PulpGemClient
|
|
35
36
|
# Create a gem content
|
36
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
37
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
38
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
39
41
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
40
42
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -59,6 +61,7 @@ module PulpGemClient
|
|
59
61
|
if !content_type.nil?
|
60
62
|
header_params['Content-Type'] = content_type
|
61
63
|
end
|
64
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
62
65
|
|
63
66
|
# form parameters
|
64
67
|
form_params = opts[:form_params] || {}
|
@@ -96,6 +99,7 @@ module PulpGemClient
|
|
96
99
|
# List gem contents
|
97
100
|
# A ViewSet for GemContent.
|
98
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
99
103
|
# @option opts [String] :checksum Filter results where checksum matches value
|
100
104
|
# @option opts [Integer] :limit Number of results to return per page.
|
101
105
|
# @option opts [String] :name Filter results where name matches value
|
@@ -123,6 +127,7 @@ module PulpGemClient
|
|
123
127
|
# List gem contents
|
124
128
|
# A ViewSet for GemContent.
|
125
129
|
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
126
131
|
# @option opts [String] :checksum Filter results where checksum matches value
|
127
132
|
# @option opts [Integer] :limit Number of results to return per page.
|
128
133
|
# @option opts [String] :name Filter results where name matches value
|
@@ -178,6 +183,7 @@ module PulpGemClient
|
|
178
183
|
header_params = opts[:header_params] || {}
|
179
184
|
# HTTP header 'Accept' (if needed)
|
180
185
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
186
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
181
187
|
|
182
188
|
# form parameters
|
183
189
|
form_params = opts[:form_params] || {}
|
@@ -212,6 +218,7 @@ module PulpGemClient
|
|
212
218
|
# A ViewSet for GemContent.
|
213
219
|
# @param gem_gem_content_href [String]
|
214
220
|
# @param [Hash] opts the optional parameters
|
221
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
215
222
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
216
223
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
217
224
|
# @return [GemGemContentResponse]
|
@@ -224,6 +231,7 @@ module PulpGemClient
|
|
224
231
|
# A ViewSet for GemContent.
|
225
232
|
# @param gem_gem_content_href [String]
|
226
233
|
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
227
235
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
228
236
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
229
237
|
# @return [Array<(GemGemContentResponse, Integer, Hash)>] GemGemContentResponse data, response status code and response headers
|
@@ -247,6 +255,7 @@ module PulpGemClient
|
|
247
255
|
header_params = opts[:header_params] || {}
|
248
256
|
# HTTP header 'Accept' (if needed)
|
249
257
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
258
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
250
259
|
|
251
260
|
# form parameters
|
252
261
|
form_params = opts[:form_params] || {}
|
@@ -282,6 +291,7 @@ module PulpGemClient
|
|
282
291
|
# @param gem_gem_content_href [String]
|
283
292
|
# @param set_label [SetLabel]
|
284
293
|
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
285
295
|
# @return [SetLabelResponse]
|
286
296
|
def set_label(gem_gem_content_href, set_label, opts = {})
|
287
297
|
data, _status_code, _headers = set_label_with_http_info(gem_gem_content_href, set_label, opts)
|
@@ -293,6 +303,7 @@ module PulpGemClient
|
|
293
303
|
# @param gem_gem_content_href [String]
|
294
304
|
# @param set_label [SetLabel]
|
295
305
|
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
296
307
|
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
297
308
|
def set_label_with_http_info(gem_gem_content_href, set_label, opts = {})
|
298
309
|
if @api_client.config.debugging
|
@@ -321,6 +332,7 @@ module PulpGemClient
|
|
321
332
|
if !content_type.nil?
|
322
333
|
header_params['Content-Type'] = content_type
|
323
334
|
end
|
335
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
324
336
|
|
325
337
|
# form parameters
|
326
338
|
form_params = opts[:form_params] || {}
|
@@ -356,6 +368,7 @@ module PulpGemClient
|
|
356
368
|
# @param gem_gem_content_href [String]
|
357
369
|
# @param unset_label [UnsetLabel]
|
358
370
|
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
359
372
|
# @return [UnsetLabelResponse]
|
360
373
|
def unset_label(gem_gem_content_href, unset_label, opts = {})
|
361
374
|
data, _status_code, _headers = unset_label_with_http_info(gem_gem_content_href, unset_label, opts)
|
@@ -367,6 +380,7 @@ module PulpGemClient
|
|
367
380
|
# @param gem_gem_content_href [String]
|
368
381
|
# @param unset_label [UnsetLabel]
|
369
382
|
# @param [Hash] opts the optional parameters
|
383
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
370
384
|
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
371
385
|
def unset_label_with_http_info(gem_gem_content_href, unset_label, opts = {})
|
372
386
|
if @api_client.config.debugging
|
@@ -395,6 +409,7 @@ module PulpGemClient
|
|
395
409
|
if !content_type.nil?
|
396
410
|
header_params['Content-Type'] = content_type
|
397
411
|
end
|
412
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
398
413
|
|
399
414
|
# form parameters
|
400
415
|
form_params = opts[:form_params] || {}
|
@@ -24,6 +24,7 @@ module PulpGemClient
|
|
24
24
|
# @param gem_gem_distribution_href [String]
|
25
25
|
# @param nested_role [NestedRole]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
27
28
|
# @return [NestedRoleResponse]
|
28
29
|
def add_role(gem_gem_distribution_href, nested_role, opts = {})
|
29
30
|
data, _status_code, _headers = add_role_with_http_info(gem_gem_distribution_href, nested_role, opts)
|
@@ -35,6 +36,7 @@ module PulpGemClient
|
|
35
36
|
# @param gem_gem_distribution_href [String]
|
36
37
|
# @param nested_role [NestedRole]
|
37
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
38
40
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
41
|
def add_role_with_http_info(gem_gem_distribution_href, nested_role, opts = {})
|
40
42
|
if @api_client.config.debugging
|
@@ -63,6 +65,7 @@ module PulpGemClient
|
|
63
65
|
if !content_type.nil?
|
64
66
|
header_params['Content-Type'] = content_type
|
65
67
|
end
|
68
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
66
69
|
|
67
70
|
# form parameters
|
68
71
|
form_params = opts[:form_params] || {}
|
@@ -97,6 +100,7 @@ module PulpGemClient
|
|
97
100
|
# Trigger an asynchronous create task
|
98
101
|
# @param gem_gem_distribution [GemGemDistribution]
|
99
102
|
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
100
104
|
# @return [AsyncOperationResponse]
|
101
105
|
def create(gem_gem_distribution, opts = {})
|
102
106
|
data, _status_code, _headers = create_with_http_info(gem_gem_distribution, opts)
|
@@ -107,6 +111,7 @@ module PulpGemClient
|
|
107
111
|
# Trigger an asynchronous create task
|
108
112
|
# @param gem_gem_distribution [GemGemDistribution]
|
109
113
|
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
110
115
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
111
116
|
def create_with_http_info(gem_gem_distribution, opts = {})
|
112
117
|
if @api_client.config.debugging
|
@@ -131,6 +136,7 @@ module PulpGemClient
|
|
131
136
|
if !content_type.nil?
|
132
137
|
header_params['Content-Type'] = content_type
|
133
138
|
end
|
139
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
134
140
|
|
135
141
|
# form parameters
|
136
142
|
form_params = opts[:form_params] || {}
|
@@ -165,6 +171,7 @@ module PulpGemClient
|
|
165
171
|
# Trigger an asynchronous delete task
|
166
172
|
# @param gem_gem_distribution_href [String]
|
167
173
|
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
168
175
|
# @return [AsyncOperationResponse]
|
169
176
|
def delete(gem_gem_distribution_href, opts = {})
|
170
177
|
data, _status_code, _headers = delete_with_http_info(gem_gem_distribution_href, opts)
|
@@ -175,6 +182,7 @@ module PulpGemClient
|
|
175
182
|
# Trigger an asynchronous delete task
|
176
183
|
# @param gem_gem_distribution_href [String]
|
177
184
|
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
178
186
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
179
187
|
def delete_with_http_info(gem_gem_distribution_href, opts = {})
|
180
188
|
if @api_client.config.debugging
|
@@ -194,6 +202,7 @@ module PulpGemClient
|
|
194
202
|
header_params = opts[:header_params] || {}
|
195
203
|
# HTTP header 'Accept' (if needed)
|
196
204
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
205
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
197
206
|
|
198
207
|
# form parameters
|
199
208
|
form_params = opts[:form_params] || {}
|
@@ -227,10 +236,12 @@ module PulpGemClient
|
|
227
236
|
# List gem distributions
|
228
237
|
# ViewSet for GemDistributions.
|
229
238
|
# @param [Hash] opts the optional parameters
|
239
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
230
240
|
# @option opts [String] :base_path Filter results where base_path matches value
|
231
241
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
242
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
243
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
244
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
245
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
246
|
# @option opts [String] :name Filter results where name matches value
|
236
247
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -242,7 +253,7 @@ module PulpGemClient
|
|
242
253
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
243
254
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
255
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
245
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
256
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
246
257
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
247
258
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
248
259
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -262,10 +273,12 @@ module PulpGemClient
|
|
262
273
|
# List gem distributions
|
263
274
|
# ViewSet for GemDistributions.
|
264
275
|
# @param [Hash] opts the optional parameters
|
276
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
265
277
|
# @option opts [String] :base_path Filter results where base_path matches value
|
266
278
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
267
279
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
268
280
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
281
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
269
282
|
# @option opts [Integer] :limit Number of results to return per page.
|
270
283
|
# @option opts [String] :name Filter results where name matches value
|
271
284
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -277,7 +290,7 @@ module PulpGemClient
|
|
277
290
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
278
291
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
279
292
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
280
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
293
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
281
294
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
282
295
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
283
296
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -293,7 +306,7 @@ module PulpGemClient
|
|
293
306
|
if @api_client.config.debugging
|
294
307
|
@api_client.config.logger.debug 'Calling API: DistributionsGemApi.list ...'
|
295
308
|
end
|
296
|
-
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
309
|
+
allowable_values = ["-base_path", "-checkpoint", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
297
310
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
298
311
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
299
312
|
end
|
@@ -306,6 +319,7 @@ module PulpGemClient
|
|
306
319
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
307
320
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
308
321
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
322
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
309
323
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
310
324
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
311
325
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -333,6 +347,7 @@ module PulpGemClient
|
|
333
347
|
header_params = opts[:header_params] || {}
|
334
348
|
# HTTP header 'Accept' (if needed)
|
335
349
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
350
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
336
351
|
|
337
352
|
# form parameters
|
338
353
|
form_params = opts[:form_params] || {}
|
@@ -367,6 +382,7 @@ module PulpGemClient
|
|
367
382
|
# List roles assigned to this object.
|
368
383
|
# @param gem_gem_distribution_href [String]
|
369
384
|
# @param [Hash] opts the optional parameters
|
385
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
370
386
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
371
387
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
372
388
|
# @return [ObjectRolesResponse]
|
@@ -379,6 +395,7 @@ module PulpGemClient
|
|
379
395
|
# List roles assigned to this object.
|
380
396
|
# @param gem_gem_distribution_href [String]
|
381
397
|
# @param [Hash] opts the optional parameters
|
398
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
382
399
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
383
400
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
384
401
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
@@ -402,6 +419,7 @@ module PulpGemClient
|
|
402
419
|
header_params = opts[:header_params] || {}
|
403
420
|
# HTTP header 'Accept' (if needed)
|
404
421
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
422
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
405
423
|
|
406
424
|
# form parameters
|
407
425
|
form_params = opts[:form_params] || {}
|
@@ -436,6 +454,7 @@ module PulpGemClient
|
|
436
454
|
# List permissions available to the current user on this object.
|
437
455
|
# @param gem_gem_distribution_href [String]
|
438
456
|
# @param [Hash] opts the optional parameters
|
457
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
439
458
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
440
459
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
441
460
|
# @return [MyPermissionsResponse]
|
@@ -448,6 +467,7 @@ module PulpGemClient
|
|
448
467
|
# List permissions available to the current user on this object.
|
449
468
|
# @param gem_gem_distribution_href [String]
|
450
469
|
# @param [Hash] opts the optional parameters
|
470
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
451
471
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
452
472
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
453
473
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
@@ -471,6 +491,7 @@ module PulpGemClient
|
|
471
491
|
header_params = opts[:header_params] || {}
|
472
492
|
# HTTP header 'Accept' (if needed)
|
473
493
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
494
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
474
495
|
|
475
496
|
# form parameters
|
476
497
|
form_params = opts[:form_params] || {}
|
@@ -506,6 +527,7 @@ module PulpGemClient
|
|
506
527
|
# @param gem_gem_distribution_href [String]
|
507
528
|
# @param patchedgem_gem_distribution [PatchedgemGemDistribution]
|
508
529
|
# @param [Hash] opts the optional parameters
|
530
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
509
531
|
# @return [AsyncOperationResponse]
|
510
532
|
def partial_update(gem_gem_distribution_href, patchedgem_gem_distribution, opts = {})
|
511
533
|
data, _status_code, _headers = partial_update_with_http_info(gem_gem_distribution_href, patchedgem_gem_distribution, opts)
|
@@ -517,6 +539,7 @@ module PulpGemClient
|
|
517
539
|
# @param gem_gem_distribution_href [String]
|
518
540
|
# @param patchedgem_gem_distribution [PatchedgemGemDistribution]
|
519
541
|
# @param [Hash] opts the optional parameters
|
542
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
520
543
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
521
544
|
def partial_update_with_http_info(gem_gem_distribution_href, patchedgem_gem_distribution, opts = {})
|
522
545
|
if @api_client.config.debugging
|
@@ -545,6 +568,7 @@ module PulpGemClient
|
|
545
568
|
if !content_type.nil?
|
546
569
|
header_params['Content-Type'] = content_type
|
547
570
|
end
|
571
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
548
572
|
|
549
573
|
# form parameters
|
550
574
|
form_params = opts[:form_params] || {}
|
@@ -579,6 +603,7 @@ module PulpGemClient
|
|
579
603
|
# ViewSet for GemDistributions.
|
580
604
|
# @param gem_gem_distribution_href [String]
|
581
605
|
# @param [Hash] opts the optional parameters
|
606
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
582
607
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
583
608
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
584
609
|
# @return [GemGemDistributionResponse]
|
@@ -591,6 +616,7 @@ module PulpGemClient
|
|
591
616
|
# ViewSet for GemDistributions.
|
592
617
|
# @param gem_gem_distribution_href [String]
|
593
618
|
# @param [Hash] opts the optional parameters
|
619
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
594
620
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
595
621
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
596
622
|
# @return [Array<(GemGemDistributionResponse, Integer, Hash)>] GemGemDistributionResponse data, response status code and response headers
|
@@ -614,6 +640,7 @@ module PulpGemClient
|
|
614
640
|
header_params = opts[:header_params] || {}
|
615
641
|
# HTTP header 'Accept' (if needed)
|
616
642
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
643
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
617
644
|
|
618
645
|
# form parameters
|
619
646
|
form_params = opts[:form_params] || {}
|
@@ -649,6 +676,7 @@ module PulpGemClient
|
|
649
676
|
# @param gem_gem_distribution_href [String]
|
650
677
|
# @param nested_role [NestedRole]
|
651
678
|
# @param [Hash] opts the optional parameters
|
679
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
652
680
|
# @return [NestedRoleResponse]
|
653
681
|
def remove_role(gem_gem_distribution_href, nested_role, opts = {})
|
654
682
|
data, _status_code, _headers = remove_role_with_http_info(gem_gem_distribution_href, nested_role, opts)
|
@@ -660,6 +688,7 @@ module PulpGemClient
|
|
660
688
|
# @param gem_gem_distribution_href [String]
|
661
689
|
# @param nested_role [NestedRole]
|
662
690
|
# @param [Hash] opts the optional parameters
|
691
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
663
692
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
664
693
|
def remove_role_with_http_info(gem_gem_distribution_href, nested_role, opts = {})
|
665
694
|
if @api_client.config.debugging
|
@@ -688,6 +717,7 @@ module PulpGemClient
|
|
688
717
|
if !content_type.nil?
|
689
718
|
header_params['Content-Type'] = content_type
|
690
719
|
end
|
720
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
691
721
|
|
692
722
|
# form parameters
|
693
723
|
form_params = opts[:form_params] || {}
|
@@ -723,6 +753,7 @@ module PulpGemClient
|
|
723
753
|
# @param gem_gem_distribution_href [String]
|
724
754
|
# @param set_label [SetLabel]
|
725
755
|
# @param [Hash] opts the optional parameters
|
756
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
726
757
|
# @return [SetLabelResponse]
|
727
758
|
def set_label(gem_gem_distribution_href, set_label, opts = {})
|
728
759
|
data, _status_code, _headers = set_label_with_http_info(gem_gem_distribution_href, set_label, opts)
|
@@ -734,6 +765,7 @@ module PulpGemClient
|
|
734
765
|
# @param gem_gem_distribution_href [String]
|
735
766
|
# @param set_label [SetLabel]
|
736
767
|
# @param [Hash] opts the optional parameters
|
768
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
737
769
|
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
738
770
|
def set_label_with_http_info(gem_gem_distribution_href, set_label, opts = {})
|
739
771
|
if @api_client.config.debugging
|
@@ -762,6 +794,7 @@ module PulpGemClient
|
|
762
794
|
if !content_type.nil?
|
763
795
|
header_params['Content-Type'] = content_type
|
764
796
|
end
|
797
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
765
798
|
|
766
799
|
# form parameters
|
767
800
|
form_params = opts[:form_params] || {}
|
@@ -797,6 +830,7 @@ module PulpGemClient
|
|
797
830
|
# @param gem_gem_distribution_href [String]
|
798
831
|
# @param unset_label [UnsetLabel]
|
799
832
|
# @param [Hash] opts the optional parameters
|
833
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
800
834
|
# @return [UnsetLabelResponse]
|
801
835
|
def unset_label(gem_gem_distribution_href, unset_label, opts = {})
|
802
836
|
data, _status_code, _headers = unset_label_with_http_info(gem_gem_distribution_href, unset_label, opts)
|
@@ -808,6 +842,7 @@ module PulpGemClient
|
|
808
842
|
# @param gem_gem_distribution_href [String]
|
809
843
|
# @param unset_label [UnsetLabel]
|
810
844
|
# @param [Hash] opts the optional parameters
|
845
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
811
846
|
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
812
847
|
def unset_label_with_http_info(gem_gem_distribution_href, unset_label, opts = {})
|
813
848
|
if @api_client.config.debugging
|
@@ -836,6 +871,7 @@ module PulpGemClient
|
|
836
871
|
if !content_type.nil?
|
837
872
|
header_params['Content-Type'] = content_type
|
838
873
|
end
|
874
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
839
875
|
|
840
876
|
# form parameters
|
841
877
|
form_params = opts[:form_params] || {}
|
@@ -871,6 +907,7 @@ module PulpGemClient
|
|
871
907
|
# @param gem_gem_distribution_href [String]
|
872
908
|
# @param gem_gem_distribution [GemGemDistribution]
|
873
909
|
# @param [Hash] opts the optional parameters
|
910
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
874
911
|
# @return [AsyncOperationResponse]
|
875
912
|
def update(gem_gem_distribution_href, gem_gem_distribution, opts = {})
|
876
913
|
data, _status_code, _headers = update_with_http_info(gem_gem_distribution_href, gem_gem_distribution, opts)
|
@@ -882,6 +919,7 @@ module PulpGemClient
|
|
882
919
|
# @param gem_gem_distribution_href [String]
|
883
920
|
# @param gem_gem_distribution [GemGemDistribution]
|
884
921
|
# @param [Hash] opts the optional parameters
|
922
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
885
923
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
886
924
|
def update_with_http_info(gem_gem_distribution_href, gem_gem_distribution, opts = {})
|
887
925
|
if @api_client.config.debugging
|
@@ -910,6 +948,7 @@ module PulpGemClient
|
|
910
948
|
if !content_type.nil?
|
911
949
|
header_params['Content-Type'] = content_type
|
912
950
|
end
|
951
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
913
952
|
|
914
953
|
# form parameters
|
915
954
|
form_params = opts[:form_params] || {}
|