pulp_container_client 2.24.0 → 2.25.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 +14 -5
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +2 -2
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +2 -2
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +150 -2
- data/docs/ContentManifestsApi.md +150 -2
- data/docs/ContentSignaturesApi.md +150 -2
- data/docs/ContentTagsApi.md +150 -2
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/DistributionsPullThroughApi.md +4 -2
- data/docs/PatchedcontainerContainerDistribution.md +2 -2
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +2 -2
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/api/content_blobs_api.rb +154 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +154 -3
- data/lib/pulp_container_client/api/content_signatures_api.rb +154 -3
- data/lib/pulp_container_client/api/content_tags_api.rb +154 -3
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -3
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +6 -3
- data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +12 -12
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +12 -12
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +48 -48
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +65 -65
- data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +12 -12
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +12 -12
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +48 -48
- data/lib/pulp_container_client/models/unset_label.rb +1 -1
- data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +28 -1
- data/spec/api/content_manifests_api_spec.rb +28 -1
- data/spec/api/content_signatures_api_spec.rb +28 -1
- data/spec/api/content_tags_api_spec.rb +28 -1
- data/spec/api/distributions_container_api_spec.rb +2 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -1
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +63 -63
@@ -38,11 +38,12 @@ module PulpContainerClient
|
|
38
38
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
39
39
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
41
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
42
42
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
43
43
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
44
44
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
45
45
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
46
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
46
47
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
47
48
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
48
49
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -74,11 +75,12 @@ module PulpContainerClient
|
|
74
75
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
75
76
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
76
77
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
77
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
78
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
78
79
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
79
80
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
80
81
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
81
82
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
83
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
82
84
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
83
85
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
84
86
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -90,7 +92,7 @@ module PulpContainerClient
|
|
90
92
|
if @api_client.config.debugging
|
91
93
|
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.list ...'
|
92
94
|
end
|
93
|
-
allowable_values = ["-creator", "-data", "-digest", "-key_id", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp", "-timestamp_of_interest", "-type", "-upstream_id", "creator", "data", "digest", "key_id", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp", "timestamp_of_interest", "type", "upstream_id"]
|
95
|
+
allowable_values = ["-creator", "-data", "-digest", "-key_id", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp", "-timestamp_of_interest", "-type", "-upstream_id", "creator", "data", "digest", "key_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp", "timestamp_of_interest", "type", "upstream_id"]
|
94
96
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
95
97
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
96
98
|
end
|
@@ -120,6 +122,7 @@ module PulpContainerClient
|
|
120
122
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
121
123
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
122
124
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
125
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
123
126
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
124
127
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
125
128
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -229,5 +232,153 @@ module PulpContainerClient
|
|
229
232
|
end
|
230
233
|
return data, status_code, headers
|
231
234
|
end
|
235
|
+
|
236
|
+
# Set a label
|
237
|
+
# Set a single pulp_label on the object to a specific value or null.
|
238
|
+
# @param container_manifest_signature_href [String]
|
239
|
+
# @param set_label [SetLabel]
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @return [SetLabelResponse]
|
242
|
+
def set_label(container_manifest_signature_href, set_label, opts = {})
|
243
|
+
data, _status_code, _headers = set_label_with_http_info(container_manifest_signature_href, set_label, opts)
|
244
|
+
data
|
245
|
+
end
|
246
|
+
|
247
|
+
# Set a label
|
248
|
+
# Set a single pulp_label on the object to a specific value or null.
|
249
|
+
# @param container_manifest_signature_href [String]
|
250
|
+
# @param set_label [SetLabel]
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
253
|
+
def set_label_with_http_info(container_manifest_signature_href, set_label, opts = {})
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.set_label ...'
|
256
|
+
end
|
257
|
+
# verify the required parameter 'container_manifest_signature_href' is set
|
258
|
+
if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.set_label"
|
260
|
+
end
|
261
|
+
# verify the required parameter 'set_label' is set
|
262
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSignaturesApi.set_label"
|
264
|
+
end
|
265
|
+
# resource path
|
266
|
+
local_var_path = '{container_manifest_signature_href}set_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
|
267
|
+
|
268
|
+
# query parameters
|
269
|
+
query_params = opts[:query_params] || {}
|
270
|
+
|
271
|
+
# header parameters
|
272
|
+
header_params = opts[:header_params] || {}
|
273
|
+
# HTTP header 'Accept' (if needed)
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
275
|
+
# HTTP header 'Content-Type'
|
276
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
277
|
+
if !content_type.nil?
|
278
|
+
header_params['Content-Type'] = content_type
|
279
|
+
end
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
form_params = opts[:form_params] || {}
|
283
|
+
|
284
|
+
# http body (model)
|
285
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
286
|
+
|
287
|
+
# return_type
|
288
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
289
|
+
|
290
|
+
# auth_names
|
291
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
292
|
+
|
293
|
+
new_options = opts.merge(
|
294
|
+
:operation => :"ContentSignaturesApi.set_label",
|
295
|
+
:header_params => header_params,
|
296
|
+
:query_params => query_params,
|
297
|
+
:form_params => form_params,
|
298
|
+
:body => post_body,
|
299
|
+
:auth_names => auth_names,
|
300
|
+
:return_type => return_type
|
301
|
+
)
|
302
|
+
|
303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "API called: ContentSignaturesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
+
end
|
307
|
+
return data, status_code, headers
|
308
|
+
end
|
309
|
+
|
310
|
+
# Unset a label
|
311
|
+
# Unset a single pulp_label on the object.
|
312
|
+
# @param container_manifest_signature_href [String]
|
313
|
+
# @param unset_label [UnsetLabel]
|
314
|
+
# @param [Hash] opts the optional parameters
|
315
|
+
# @return [UnsetLabelResponse]
|
316
|
+
def unset_label(container_manifest_signature_href, unset_label, opts = {})
|
317
|
+
data, _status_code, _headers = unset_label_with_http_info(container_manifest_signature_href, unset_label, opts)
|
318
|
+
data
|
319
|
+
end
|
320
|
+
|
321
|
+
# Unset a label
|
322
|
+
# Unset a single pulp_label on the object.
|
323
|
+
# @param container_manifest_signature_href [String]
|
324
|
+
# @param unset_label [UnsetLabel]
|
325
|
+
# @param [Hash] opts the optional parameters
|
326
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
327
|
+
def unset_label_with_http_info(container_manifest_signature_href, unset_label, opts = {})
|
328
|
+
if @api_client.config.debugging
|
329
|
+
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.unset_label ...'
|
330
|
+
end
|
331
|
+
# verify the required parameter 'container_manifest_signature_href' is set
|
332
|
+
if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
|
333
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.unset_label"
|
334
|
+
end
|
335
|
+
# verify the required parameter 'unset_label' is set
|
336
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSignaturesApi.unset_label"
|
338
|
+
end
|
339
|
+
# resource path
|
340
|
+
local_var_path = '{container_manifest_signature_href}unset_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
|
341
|
+
|
342
|
+
# query parameters
|
343
|
+
query_params = opts[:query_params] || {}
|
344
|
+
|
345
|
+
# header parameters
|
346
|
+
header_params = opts[:header_params] || {}
|
347
|
+
# HTTP header 'Accept' (if needed)
|
348
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
349
|
+
# HTTP header 'Content-Type'
|
350
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
351
|
+
if !content_type.nil?
|
352
|
+
header_params['Content-Type'] = content_type
|
353
|
+
end
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = opts[:form_params] || {}
|
357
|
+
|
358
|
+
# http body (model)
|
359
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
360
|
+
|
361
|
+
# return_type
|
362
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
363
|
+
|
364
|
+
# auth_names
|
365
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
366
|
+
|
367
|
+
new_options = opts.merge(
|
368
|
+
:operation => :"ContentSignaturesApi.unset_label",
|
369
|
+
:header_params => header_params,
|
370
|
+
:query_params => query_params,
|
371
|
+
:form_params => form_params,
|
372
|
+
:body => post_body,
|
373
|
+
:auth_names => auth_names,
|
374
|
+
:return_type => return_type
|
375
|
+
)
|
376
|
+
|
377
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
378
|
+
if @api_client.config.debugging
|
379
|
+
@api_client.config.logger.debug "API called: ContentSignaturesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
380
|
+
end
|
381
|
+
return data, status_code, headers
|
382
|
+
end
|
232
383
|
end
|
233
384
|
end
|
@@ -28,11 +28,12 @@ module PulpContainerClient
|
|
28
28
|
# @option opts [String] :name Filter results where name matches value
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
30
30
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
31
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
31
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
32
32
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
33
33
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
34
34
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
35
35
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
36
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
36
37
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
37
38
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
38
39
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -54,11 +55,12 @@ module PulpContainerClient
|
|
54
55
|
# @option opts [String] :name Filter results where name matches value
|
55
56
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
56
57
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
57
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
58
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
58
59
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
59
60
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
60
61
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
61
62
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
63
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
62
64
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
63
65
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
64
66
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -74,7 +76,7 @@ module PulpContainerClient
|
|
74
76
|
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type'].all? { |item| allowable_values.include?(item) }
|
75
77
|
fail ArgumentError, "invalid value for \"media_type\", must include one of #{allowable_values}"
|
76
78
|
end
|
77
|
-
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
79
|
+
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
78
80
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
79
81
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
80
82
|
end
|
@@ -94,6 +96,7 @@ module PulpContainerClient
|
|
94
96
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
95
97
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
96
98
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
99
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
97
100
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
98
101
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
99
102
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -203,5 +206,153 @@ module PulpContainerClient
|
|
203
206
|
end
|
204
207
|
return data, status_code, headers
|
205
208
|
end
|
209
|
+
|
210
|
+
# Set a label
|
211
|
+
# Set a single pulp_label on the object to a specific value or null.
|
212
|
+
# @param container_tag_href [String]
|
213
|
+
# @param set_label [SetLabel]
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [SetLabelResponse]
|
216
|
+
def set_label(container_tag_href, set_label, opts = {})
|
217
|
+
data, _status_code, _headers = set_label_with_http_info(container_tag_href, set_label, opts)
|
218
|
+
data
|
219
|
+
end
|
220
|
+
|
221
|
+
# Set a label
|
222
|
+
# Set a single pulp_label on the object to a specific value or null.
|
223
|
+
# @param container_tag_href [String]
|
224
|
+
# @param set_label [SetLabel]
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
227
|
+
def set_label_with_http_info(container_tag_href, set_label, opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.set_label ...'
|
230
|
+
end
|
231
|
+
# verify the required parameter 'container_tag_href' is set
|
232
|
+
if @api_client.config.client_side_validation && container_tag_href.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.set_label"
|
234
|
+
end
|
235
|
+
# verify the required parameter 'set_label' is set
|
236
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentTagsApi.set_label"
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '{container_tag_href}set_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
|
245
|
+
# header parameters
|
246
|
+
header_params = opts[:header_params] || {}
|
247
|
+
# HTTP header 'Accept' (if needed)
|
248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
249
|
+
# HTTP header 'Content-Type'
|
250
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
251
|
+
if !content_type.nil?
|
252
|
+
header_params['Content-Type'] = content_type
|
253
|
+
end
|
254
|
+
|
255
|
+
# form parameters
|
256
|
+
form_params = opts[:form_params] || {}
|
257
|
+
|
258
|
+
# http body (model)
|
259
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
260
|
+
|
261
|
+
# return_type
|
262
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
263
|
+
|
264
|
+
# auth_names
|
265
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
266
|
+
|
267
|
+
new_options = opts.merge(
|
268
|
+
:operation => :"ContentTagsApi.set_label",
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => return_type
|
275
|
+
)
|
276
|
+
|
277
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
|
284
|
+
# Unset a label
|
285
|
+
# Unset a single pulp_label on the object.
|
286
|
+
# @param container_tag_href [String]
|
287
|
+
# @param unset_label [UnsetLabel]
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [UnsetLabelResponse]
|
290
|
+
def unset_label(container_tag_href, unset_label, opts = {})
|
291
|
+
data, _status_code, _headers = unset_label_with_http_info(container_tag_href, unset_label, opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Unset a label
|
296
|
+
# Unset a single pulp_label on the object.
|
297
|
+
# @param container_tag_href [String]
|
298
|
+
# @param unset_label [UnsetLabel]
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
301
|
+
def unset_label_with_http_info(container_tag_href, unset_label, opts = {})
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.unset_label ...'
|
304
|
+
end
|
305
|
+
# verify the required parameter 'container_tag_href' is set
|
306
|
+
if @api_client.config.client_side_validation && container_tag_href.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.unset_label"
|
308
|
+
end
|
309
|
+
# verify the required parameter 'unset_label' is set
|
310
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentTagsApi.unset_label"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = '{container_tag_href}unset_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = opts[:query_params] || {}
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = opts[:header_params] || {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
325
|
+
if !content_type.nil?
|
326
|
+
header_params['Content-Type'] = content_type
|
327
|
+
end
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = opts[:form_params] || {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
334
|
+
|
335
|
+
# return_type
|
336
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
337
|
+
|
338
|
+
# auth_names
|
339
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
340
|
+
|
341
|
+
new_options = opts.merge(
|
342
|
+
:operation => :"ContentTagsApi.unset_label",
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
206
357
|
end
|
207
358
|
end
|
@@ -231,6 +231,7 @@ module PulpContainerClient
|
|
231
231
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
232
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
233
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
234
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
235
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
236
|
# @option opts [String] :name Filter results where name matches value
|
236
237
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -243,7 +244,7 @@ module PulpContainerClient
|
|
243
244
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
245
|
# @option opts [String] :namespace__name
|
245
246
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
246
|
-
# @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) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
247
|
+
# @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) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
247
248
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
248
249
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
249
250
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -267,6 +268,7 @@ module PulpContainerClient
|
|
267
268
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
268
269
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
269
270
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
271
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
270
272
|
# @option opts [Integer] :limit Number of results to return per page.
|
271
273
|
# @option opts [String] :name Filter results where name matches value
|
272
274
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -279,7 +281,7 @@ module PulpContainerClient
|
|
279
281
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
280
282
|
# @option opts [String] :namespace__name
|
281
283
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
282
|
-
# @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) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
284
|
+
# @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) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
283
285
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
284
286
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
285
287
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -295,7 +297,7 @@ module PulpContainerClient
|
|
295
297
|
if @api_client.config.debugging
|
296
298
|
@api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list ...'
|
297
299
|
end
|
298
|
-
allowable_values = ["-base_path", "-description", "-hidden", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "description", "hidden", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
300
|
+
allowable_values = ["-base_path", "-checkpoint", "-description", "-hidden", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "description", "hidden", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
299
301
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
300
302
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
301
303
|
end
|
@@ -308,6 +310,7 @@ module PulpContainerClient
|
|
308
310
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
309
311
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
310
312
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
313
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
311
314
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
312
315
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
313
316
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -231,6 +231,7 @@ module PulpContainerClient
|
|
231
231
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
232
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
233
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
234
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
235
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
236
|
# @option opts [String] :name Filter results where name matches value
|
236
237
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -242,7 +243,7 @@ module PulpContainerClient
|
|
242
243
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
243
244
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
245
|
# @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)
|
246
|
+
# @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
247
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
247
248
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
248
249
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -266,6 +267,7 @@ module PulpContainerClient
|
|
266
267
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
267
268
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
268
269
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
270
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
269
271
|
# @option opts [Integer] :limit Number of results to return per page.
|
270
272
|
# @option opts [String] :name Filter results where name matches value
|
271
273
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -277,7 +279,7 @@ module PulpContainerClient
|
|
277
279
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
278
280
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
279
281
|
# @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)
|
282
|
+
# @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
283
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
282
284
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
283
285
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -293,7 +295,7 @@ module PulpContainerClient
|
|
293
295
|
if @api_client.config.debugging
|
294
296
|
@api_client.config.logger.debug 'Calling API: DistributionsPullThroughApi.list ...'
|
295
297
|
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"]
|
298
|
+
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
299
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
298
300
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
299
301
|
end
|
@@ -306,6 +308,7 @@ module PulpContainerClient
|
|
306
308
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
307
309
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
308
310
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
311
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
309
312
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
310
313
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
311
314
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -27,6 +27,9 @@ module PulpContainerClient
|
|
27
27
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
28
28
|
attr_accessor :pulp_last_updated
|
29
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
30
33
|
# Artifact file representing the physical content
|
31
34
|
attr_accessor :artifact
|
32
35
|
|
@@ -40,6 +43,7 @@ module PulpContainerClient
|
|
40
43
|
:'prn' => :'prn',
|
41
44
|
:'pulp_created' => :'pulp_created',
|
42
45
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
43
47
|
:'artifact' => :'artifact',
|
44
48
|
:'digest' => :'digest'
|
45
49
|
}
|
@@ -57,6 +61,7 @@ module PulpContainerClient
|
|
57
61
|
:'prn' => :'String',
|
58
62
|
:'pulp_created' => :'Time',
|
59
63
|
:'pulp_last_updated' => :'Time',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
60
65
|
:'artifact' => :'String',
|
61
66
|
:'digest' => :'String'
|
62
67
|
}
|
@@ -100,6 +105,12 @@ module PulpContainerClient
|
|
100
105
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
101
106
|
end
|
102
107
|
|
108
|
+
if attributes.key?(:'pulp_labels')
|
109
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
110
|
+
self.pulp_labels = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
103
114
|
if attributes.key?(:'artifact')
|
104
115
|
self.artifact = attributes[:'artifact']
|
105
116
|
else
|
@@ -142,6 +153,7 @@ module PulpContainerClient
|
|
142
153
|
prn == o.prn &&
|
143
154
|
pulp_created == o.pulp_created &&
|
144
155
|
pulp_last_updated == o.pulp_last_updated &&
|
156
|
+
pulp_labels == o.pulp_labels &&
|
145
157
|
artifact == o.artifact &&
|
146
158
|
digest == o.digest
|
147
159
|
end
|
@@ -155,7 +167,7 @@ module PulpContainerClient
|
|
155
167
|
# Calculates hash code according to all attributes.
|
156
168
|
# @return [Integer] Hash code
|
157
169
|
def hash
|
158
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifact, digest].hash
|
170
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, digest].hash
|
159
171
|
end
|
160
172
|
|
161
173
|
# Builds the object from hash
|