pulp_ansible_client 0.24.1 → 0.24.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 +14 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +8 -6
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +8 -6
- data/docs/ContentCollectionDeprecationsApi.md +148 -0
- data/docs/ContentCollectionMarksApi.md +150 -2
- data/docs/ContentCollectionSignaturesApi.md +152 -2
- data/docs/ContentCollectionVersionsApi.md +156 -6
- data/docs/ContentNamespacesApi.md +4 -2
- data/docs/ContentRolesApi.md +150 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +151 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +154 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +157 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +163 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -3
- data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +36 -24
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +219 -219
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -27
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +209 -209
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +27 -0
- data/spec/api/content_collection_marks_api_spec.rb +28 -1
- data/spec/api/content_collection_signatures_api_spec.rb +29 -1
- data/spec/api/content_collection_versions_api_spec.rb +31 -3
- data/spec/api/content_namespaces_api_spec.rb +2 -1
- data/spec/api/content_roles_api_spec.rb +28 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +10 -4
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +17 -17
- data/spec/models/ansible_role_response_spec.rb +11 -5
- data/spec/models/ansible_role_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +17 -17
- metadata +123 -123
@@ -24,6 +24,7 @@ module PulpAnsibleClient
|
|
24
24
|
# @param signed_collection [String] The content this signature is pointing to.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
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 [File] :file An uploaded file that may be turned into the content unit.
|
28
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
29
30
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
@@ -38,6 +39,7 @@ module PulpAnsibleClient
|
|
38
39
|
# @param signed_collection [String] The content this signature is pointing to.
|
39
40
|
# @param [Hash] opts the optional parameters
|
40
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
41
43
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
42
44
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
43
45
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
@@ -74,6 +76,7 @@ module PulpAnsibleClient
|
|
74
76
|
form_params = opts[:form_params] || {}
|
75
77
|
form_params['signed_collection'] = signed_collection
|
76
78
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
79
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
77
80
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
78
81
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
79
82
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -109,13 +112,14 @@ module PulpAnsibleClient
|
|
109
112
|
# @param [Hash] opts the optional parameters
|
110
113
|
# @option opts [Integer] :limit Number of results to return per page.
|
111
114
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
112
|
-
# @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) * `data` - Data * `-data` - Data (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pubkey_fingerprint` - Pubkey fingerprint * `-pubkey_fingerprint` - Pubkey fingerprint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
115
|
+
# @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) * `data` - Data * `-data` - Data (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pubkey_fingerprint` - Pubkey fingerprint * `-pubkey_fingerprint` - Pubkey fingerprint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
113
116
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
114
117
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
115
118
|
# @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
|
116
119
|
# @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
|
117
120
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
118
121
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
122
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
119
123
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
120
124
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
121
125
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -135,13 +139,14 @@ module PulpAnsibleClient
|
|
135
139
|
# @param [Hash] opts the optional parameters
|
136
140
|
# @option opts [Integer] :limit Number of results to return per page.
|
137
141
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
138
|
-
# @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) * `data` - Data * `-data` - Data (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pubkey_fingerprint` - Pubkey fingerprint * `-pubkey_fingerprint` - Pubkey fingerprint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
142
|
+
# @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) * `data` - Data * `-data` - Data (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pubkey_fingerprint` - Pubkey fingerprint * `-pubkey_fingerprint` - Pubkey fingerprint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
139
143
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
140
144
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
141
145
|
# @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
|
142
146
|
# @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
|
143
147
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
144
148
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
149
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
145
150
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
146
151
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
147
152
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -155,7 +160,7 @@ module PulpAnsibleClient
|
|
155
160
|
if @api_client.config.debugging
|
156
161
|
@api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.list ...'
|
157
162
|
end
|
158
|
-
allowable_values = ["-data", "-digest", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "data", "digest", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
163
|
+
allowable_values = ["-data", "-digest", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "data", "digest", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
159
164
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
160
165
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
161
166
|
end
|
@@ -173,6 +178,7 @@ module PulpAnsibleClient
|
|
173
178
|
query_params[:'pubkey_fingerprint__in'] = @api_client.build_collection_param(opts[:'pubkey_fingerprint__in'], :csv) if !opts[:'pubkey_fingerprint__in'].nil?
|
174
179
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
175
180
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
181
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
176
182
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
177
183
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
178
184
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -284,5 +290,153 @@ module PulpAnsibleClient
|
|
284
290
|
end
|
285
291
|
return data, status_code, headers
|
286
292
|
end
|
293
|
+
|
294
|
+
# Set a label
|
295
|
+
# Set a single pulp_label on the object to a specific value or null.
|
296
|
+
# @param ansible_collection_version_signature_href [String]
|
297
|
+
# @param set_label [SetLabel]
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [SetLabelResponse]
|
300
|
+
def set_label(ansible_collection_version_signature_href, set_label, opts = {})
|
301
|
+
data, _status_code, _headers = set_label_with_http_info(ansible_collection_version_signature_href, set_label, opts)
|
302
|
+
data
|
303
|
+
end
|
304
|
+
|
305
|
+
# Set a label
|
306
|
+
# Set a single pulp_label on the object to a specific value or null.
|
307
|
+
# @param ansible_collection_version_signature_href [String]
|
308
|
+
# @param set_label [SetLabel]
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
311
|
+
def set_label_with_http_info(ansible_collection_version_signature_href, set_label, opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.set_label ...'
|
314
|
+
end
|
315
|
+
# verify the required parameter 'ansible_collection_version_signature_href' is set
|
316
|
+
if @api_client.config.client_side_validation && ansible_collection_version_signature_href.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_signature_href' when calling ContentCollectionSignaturesApi.set_label"
|
318
|
+
end
|
319
|
+
# verify the required parameter 'set_label' is set
|
320
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
321
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentCollectionSignaturesApi.set_label"
|
322
|
+
end
|
323
|
+
# resource path
|
324
|
+
local_var_path = '{ansible_collection_version_signature_href}set_label/'.sub('{' + 'ansible_collection_version_signature_href' + '}', CGI.escape(ansible_collection_version_signature_href.to_s).gsub('%2F', '/'))
|
325
|
+
|
326
|
+
# query parameters
|
327
|
+
query_params = opts[:query_params] || {}
|
328
|
+
|
329
|
+
# header parameters
|
330
|
+
header_params = opts[:header_params] || {}
|
331
|
+
# HTTP header 'Accept' (if needed)
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
333
|
+
# HTTP header 'Content-Type'
|
334
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
335
|
+
if !content_type.nil?
|
336
|
+
header_params['Content-Type'] = content_type
|
337
|
+
end
|
338
|
+
|
339
|
+
# form parameters
|
340
|
+
form_params = opts[:form_params] || {}
|
341
|
+
|
342
|
+
# http body (model)
|
343
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
344
|
+
|
345
|
+
# return_type
|
346
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
347
|
+
|
348
|
+
# auth_names
|
349
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
350
|
+
|
351
|
+
new_options = opts.merge(
|
352
|
+
:operation => :"ContentCollectionSignaturesApi.set_label",
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => return_type
|
359
|
+
)
|
360
|
+
|
361
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: ContentCollectionSignaturesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
367
|
+
|
368
|
+
# Unset a label
|
369
|
+
# Unset a single pulp_label on the object.
|
370
|
+
# @param ansible_collection_version_signature_href [String]
|
371
|
+
# @param unset_label [UnsetLabel]
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @return [UnsetLabelResponse]
|
374
|
+
def unset_label(ansible_collection_version_signature_href, unset_label, opts = {})
|
375
|
+
data, _status_code, _headers = unset_label_with_http_info(ansible_collection_version_signature_href, unset_label, opts)
|
376
|
+
data
|
377
|
+
end
|
378
|
+
|
379
|
+
# Unset a label
|
380
|
+
# Unset a single pulp_label on the object.
|
381
|
+
# @param ansible_collection_version_signature_href [String]
|
382
|
+
# @param unset_label [UnsetLabel]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
385
|
+
def unset_label_with_http_info(ansible_collection_version_signature_href, unset_label, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.unset_label ...'
|
388
|
+
end
|
389
|
+
# verify the required parameter 'ansible_collection_version_signature_href' is set
|
390
|
+
if @api_client.config.client_side_validation && ansible_collection_version_signature_href.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_signature_href' when calling ContentCollectionSignaturesApi.unset_label"
|
392
|
+
end
|
393
|
+
# verify the required parameter 'unset_label' is set
|
394
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentCollectionSignaturesApi.unset_label"
|
396
|
+
end
|
397
|
+
# resource path
|
398
|
+
local_var_path = '{ansible_collection_version_signature_href}unset_label/'.sub('{' + 'ansible_collection_version_signature_href' + '}', CGI.escape(ansible_collection_version_signature_href.to_s).gsub('%2F', '/'))
|
399
|
+
|
400
|
+
# query parameters
|
401
|
+
query_params = opts[:query_params] || {}
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = opts[:header_params] || {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
407
|
+
# HTTP header 'Content-Type'
|
408
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
409
|
+
if !content_type.nil?
|
410
|
+
header_params['Content-Type'] = content_type
|
411
|
+
end
|
412
|
+
|
413
|
+
# form parameters
|
414
|
+
form_params = opts[:form_params] || {}
|
415
|
+
|
416
|
+
# http body (model)
|
417
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
418
|
+
|
419
|
+
# return_type
|
420
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
421
|
+
|
422
|
+
# auth_names
|
423
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
424
|
+
|
425
|
+
new_options = opts.merge(
|
426
|
+
:operation => :"ContentCollectionSignaturesApi.unset_label",
|
427
|
+
:header_params => header_params,
|
428
|
+
:query_params => query_params,
|
429
|
+
:form_params => form_params,
|
430
|
+
:body => post_body,
|
431
|
+
:auth_names => auth_names,
|
432
|
+
:return_type => return_type
|
433
|
+
)
|
434
|
+
|
435
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
436
|
+
if @api_client.config.debugging
|
437
|
+
@api_client.config.logger.debug "API called: ContentCollectionSignaturesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
438
|
+
end
|
439
|
+
return data, status_code, headers
|
440
|
+
end
|
287
441
|
end
|
288
442
|
end
|
@@ -22,11 +22,12 @@ module PulpAnsibleClient
|
|
22
22
|
# Create a collection version
|
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 [
|
25
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
26
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
27
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
27
28
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
28
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
29
|
# @option opts [String] :artifact Artifact file representing the physical content
|
30
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
30
31
|
# @option opts [String] :expected_name The name of the collection.
|
31
32
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
32
33
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -39,11 +40,12 @@ module PulpAnsibleClient
|
|
39
40
|
# Create a collection version
|
40
41
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
41
42
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [
|
43
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
44
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
45
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
44
46
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
45
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
46
47
|
# @option opts [String] :artifact Artifact file representing the physical content
|
48
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
47
49
|
# @option opts [String] :expected_name The name of the collection.
|
48
50
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
49
51
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -98,11 +100,12 @@ module PulpAnsibleClient
|
|
98
100
|
|
99
101
|
# form parameters
|
100
102
|
form_params = opts[:form_params] || {}
|
101
|
-
form_params['
|
103
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
102
104
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
105
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
103
106
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
104
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
105
107
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
108
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
106
109
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
107
110
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
108
111
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
@@ -140,11 +143,12 @@ module PulpAnsibleClient
|
|
140
143
|
# @option opts [String] :name
|
141
144
|
# @option opts [String] :namespace
|
142
145
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
143
|
-
# @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) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
146
|
+
# @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) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
144
147
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
145
148
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
146
149
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
147
150
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
151
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
148
152
|
# @option opts [String] :q
|
149
153
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
150
154
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -166,11 +170,12 @@ module PulpAnsibleClient
|
|
166
170
|
# @option opts [String] :name
|
167
171
|
# @option opts [String] :namespace
|
168
172
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
169
|
-
# @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) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
173
|
+
# @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) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
170
174
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
171
175
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
172
176
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
173
177
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
178
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
174
179
|
# @option opts [String] :q
|
175
180
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
176
181
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -184,7 +189,7 @@ module PulpAnsibleClient
|
|
184
189
|
if @api_client.config.debugging
|
185
190
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
|
186
191
|
end
|
187
|
-
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-sha256", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "sha256", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
|
192
|
+
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-sha256", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "sha256", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
|
188
193
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
189
194
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
190
195
|
end
|
@@ -202,6 +207,7 @@ module PulpAnsibleClient
|
|
202
207
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
203
208
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
204
209
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
210
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
205
211
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
206
212
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
207
213
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -313,5 +319,153 @@ module PulpAnsibleClient
|
|
313
319
|
end
|
314
320
|
return data, status_code, headers
|
315
321
|
end
|
322
|
+
|
323
|
+
# Set a label
|
324
|
+
# Set a single pulp_label on the object to a specific value or null.
|
325
|
+
# @param ansible_collection_version_href [String]
|
326
|
+
# @param set_label [SetLabel]
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @return [SetLabelResponse]
|
329
|
+
def set_label(ansible_collection_version_href, set_label, opts = {})
|
330
|
+
data, _status_code, _headers = set_label_with_http_info(ansible_collection_version_href, set_label, opts)
|
331
|
+
data
|
332
|
+
end
|
333
|
+
|
334
|
+
# Set a label
|
335
|
+
# Set a single pulp_label on the object to a specific value or null.
|
336
|
+
# @param ansible_collection_version_href [String]
|
337
|
+
# @param set_label [SetLabel]
|
338
|
+
# @param [Hash] opts the optional parameters
|
339
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
340
|
+
def set_label_with_http_info(ansible_collection_version_href, set_label, opts = {})
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.set_label ...'
|
343
|
+
end
|
344
|
+
# verify the required parameter 'ansible_collection_version_href' is set
|
345
|
+
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
346
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling ContentCollectionVersionsApi.set_label"
|
347
|
+
end
|
348
|
+
# verify the required parameter 'set_label' is set
|
349
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
350
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentCollectionVersionsApi.set_label"
|
351
|
+
end
|
352
|
+
# resource path
|
353
|
+
local_var_path = '{ansible_collection_version_href}set_label/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
354
|
+
|
355
|
+
# query parameters
|
356
|
+
query_params = opts[:query_params] || {}
|
357
|
+
|
358
|
+
# header parameters
|
359
|
+
header_params = opts[:header_params] || {}
|
360
|
+
# HTTP header 'Accept' (if needed)
|
361
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
362
|
+
# HTTP header 'Content-Type'
|
363
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
364
|
+
if !content_type.nil?
|
365
|
+
header_params['Content-Type'] = content_type
|
366
|
+
end
|
367
|
+
|
368
|
+
# form parameters
|
369
|
+
form_params = opts[:form_params] || {}
|
370
|
+
|
371
|
+
# http body (model)
|
372
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
373
|
+
|
374
|
+
# return_type
|
375
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
376
|
+
|
377
|
+
# auth_names
|
378
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
379
|
+
|
380
|
+
new_options = opts.merge(
|
381
|
+
:operation => :"ContentCollectionVersionsApi.set_label",
|
382
|
+
:header_params => header_params,
|
383
|
+
:query_params => query_params,
|
384
|
+
:form_params => form_params,
|
385
|
+
:body => post_body,
|
386
|
+
:auth_names => auth_names,
|
387
|
+
:return_type => return_type
|
388
|
+
)
|
389
|
+
|
390
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
391
|
+
if @api_client.config.debugging
|
392
|
+
@api_client.config.logger.debug "API called: ContentCollectionVersionsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
393
|
+
end
|
394
|
+
return data, status_code, headers
|
395
|
+
end
|
396
|
+
|
397
|
+
# Unset a label
|
398
|
+
# Unset a single pulp_label on the object.
|
399
|
+
# @param ansible_collection_version_href [String]
|
400
|
+
# @param unset_label [UnsetLabel]
|
401
|
+
# @param [Hash] opts the optional parameters
|
402
|
+
# @return [UnsetLabelResponse]
|
403
|
+
def unset_label(ansible_collection_version_href, unset_label, opts = {})
|
404
|
+
data, _status_code, _headers = unset_label_with_http_info(ansible_collection_version_href, unset_label, opts)
|
405
|
+
data
|
406
|
+
end
|
407
|
+
|
408
|
+
# Unset a label
|
409
|
+
# Unset a single pulp_label on the object.
|
410
|
+
# @param ansible_collection_version_href [String]
|
411
|
+
# @param unset_label [UnsetLabel]
|
412
|
+
# @param [Hash] opts the optional parameters
|
413
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
414
|
+
def unset_label_with_http_info(ansible_collection_version_href, unset_label, opts = {})
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.unset_label ...'
|
417
|
+
end
|
418
|
+
# verify the required parameter 'ansible_collection_version_href' is set
|
419
|
+
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
420
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling ContentCollectionVersionsApi.unset_label"
|
421
|
+
end
|
422
|
+
# verify the required parameter 'unset_label' is set
|
423
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
424
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentCollectionVersionsApi.unset_label"
|
425
|
+
end
|
426
|
+
# resource path
|
427
|
+
local_var_path = '{ansible_collection_version_href}unset_label/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
428
|
+
|
429
|
+
# query parameters
|
430
|
+
query_params = opts[:query_params] || {}
|
431
|
+
|
432
|
+
# header parameters
|
433
|
+
header_params = opts[:header_params] || {}
|
434
|
+
# HTTP header 'Accept' (if needed)
|
435
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
436
|
+
# HTTP header 'Content-Type'
|
437
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
438
|
+
if !content_type.nil?
|
439
|
+
header_params['Content-Type'] = content_type
|
440
|
+
end
|
441
|
+
|
442
|
+
# form parameters
|
443
|
+
form_params = opts[:form_params] || {}
|
444
|
+
|
445
|
+
# http body (model)
|
446
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
447
|
+
|
448
|
+
# return_type
|
449
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
450
|
+
|
451
|
+
# auth_names
|
452
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
453
|
+
|
454
|
+
new_options = opts.merge(
|
455
|
+
:operation => :"ContentCollectionVersionsApi.unset_label",
|
456
|
+
:header_params => header_params,
|
457
|
+
:query_params => query_params,
|
458
|
+
:form_params => form_params,
|
459
|
+
:body => post_body,
|
460
|
+
:auth_names => auth_names,
|
461
|
+
:return_type => return_type
|
462
|
+
)
|
463
|
+
|
464
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
465
|
+
if @api_client.config.debugging
|
466
|
+
@api_client.config.logger.debug "API called: ContentCollectionVersionsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
467
|
+
end
|
468
|
+
return data, status_code, headers
|
469
|
+
end
|
316
470
|
end
|
317
471
|
end
|
@@ -111,11 +111,12 @@ module PulpAnsibleClient
|
|
111
111
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
112
112
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
113
113
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
-
# @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) * `company` - Company * `-company` - Company (descending) * `email` - Email * `-email` - Email (descending) * `description` - Description * `-description` - Description (descending) * `resources` - Resources * `-resources` - Resources (descending) * `links` - Links * `-links` - Links (descending) * `avatar_sha256` - Avatar sha256 * `-avatar_sha256` - Avatar sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
114
|
+
# @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) * `company` - Company * `-company` - Company (descending) * `email` - Email * `-email` - Email (descending) * `description` - Description * `-description` - Description (descending) * `resources` - Resources * `-resources` - Resources (descending) * `links` - Links * `-links` - Links (descending) * `avatar_sha256` - Avatar sha256 * `-avatar_sha256` - Avatar sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
115
115
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
116
116
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
117
117
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
118
118
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
119
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
119
120
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
120
121
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
121
122
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -153,11 +154,12 @@ module PulpAnsibleClient
|
|
153
154
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
154
155
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
155
156
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
156
|
-
# @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) * `company` - Company * `-company` - Company (descending) * `email` - Email * `-email` - Email (descending) * `description` - Description * `-description` - Description (descending) * `resources` - Resources * `-resources` - Resources (descending) * `links` - Links * `-links` - Links (descending) * `avatar_sha256` - Avatar sha256 * `-avatar_sha256` - Avatar sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
157
|
+
# @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) * `company` - Company * `-company` - Company (descending) * `email` - Email * `-email` - Email (descending) * `description` - Description * `-description` - Description (descending) * `resources` - Resources * `-resources` - Resources (descending) * `links` - Links * `-links` - Links (descending) * `avatar_sha256` - Avatar sha256 * `-avatar_sha256` - Avatar sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
157
158
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
158
159
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
159
160
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
160
161
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
162
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
161
163
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
162
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
163
165
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -169,7 +171,7 @@ module PulpAnsibleClient
|
|
169
171
|
if @api_client.config.debugging
|
170
172
|
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.list ...'
|
171
173
|
end
|
172
|
-
allowable_values = ["-avatar_sha256", "-company", "-description", "-email", "-links", "-metadata_sha256", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-resources", "-timestamp_of_interest", "-upstream_id", "avatar_sha256", "company", "description", "email", "links", "metadata_sha256", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "resources", "timestamp_of_interest", "upstream_id"]
|
174
|
+
allowable_values = ["-avatar_sha256", "-company", "-description", "-email", "-links", "-metadata_sha256", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-resources", "-timestamp_of_interest", "-upstream_id", "avatar_sha256", "company", "description", "email", "links", "metadata_sha256", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "resources", "timestamp_of_interest", "upstream_id"]
|
173
175
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
174
176
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
175
177
|
end
|
@@ -205,6 +207,7 @@ module PulpAnsibleClient
|
|
205
207
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
206
208
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
207
209
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
210
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
208
211
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
209
212
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
210
213
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|