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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +8 -6
  6. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  7. data/docs/AnsibleGitRemote.md +26 -26
  8. data/docs/AnsibleGitRemoteResponse.md +28 -28
  9. data/docs/AnsibleRole.md +2 -0
  10. data/docs/AnsibleRoleResponse.md +8 -6
  11. data/docs/ContentCollectionDeprecationsApi.md +148 -0
  12. data/docs/ContentCollectionMarksApi.md +150 -2
  13. data/docs/ContentCollectionSignaturesApi.md +152 -2
  14. data/docs/ContentCollectionVersionsApi.md +156 -6
  15. data/docs/ContentNamespacesApi.md +4 -2
  16. data/docs/ContentRolesApi.md +150 -2
  17. data/docs/PatchedansibleGitRemote.md +26 -26
  18. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -2
  19. data/docs/PulpAnsibleApiV3NamespacesApi.md +2 -2
  20. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
  21. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +2 -2
  22. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -2
  23. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +2 -2
  24. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
  25. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +2 -2
  26. data/docs/RemotesGitApi.md +2 -2
  27. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +151 -0
  28. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +154 -3
  29. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +157 -3
  30. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +163 -9
  31. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -3
  32. data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -3
  33. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -3
  34. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +3 -3
  35. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
  36. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
  37. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -3
  38. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +3 -3
  39. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
  40. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
  41. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +13 -1
  42. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +13 -1
  43. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +36 -24
  44. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
  45. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +219 -219
  46. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
  47. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
  48. data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -27
  49. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +209 -209
  50. data/lib/pulp_ansible_client/version.rb +1 -1
  51. data/spec/api/content_collection_deprecations_api_spec.rb +27 -0
  52. data/spec/api/content_collection_marks_api_spec.rb +28 -1
  53. data/spec/api/content_collection_signatures_api_spec.rb +29 -1
  54. data/spec/api/content_collection_versions_api_spec.rb +31 -3
  55. data/spec/api/content_namespaces_api_spec.rb +2 -1
  56. data/spec/api/content_roles_api_spec.rb +28 -1
  57. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -1
  58. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +1 -1
  59. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
  60. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
  61. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -1
  62. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +1 -1
  63. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
  64. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
  65. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  66. data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
  67. data/spec/models/ansible_collection_version_response_spec.rb +10 -4
  68. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  69. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  70. data/spec/models/ansible_git_remote_spec.rb +17 -17
  71. data/spec/models/ansible_role_response_spec.rb +11 -5
  72. data/spec/models/ansible_role_spec.rb +6 -0
  73. data/spec/models/patchedansible_git_remote_spec.rb +17 -17
  74. metadata +123 -123
@@ -214,7 +214,7 @@ opts = {
214
214
  name__regex: 'name__regex_example', # String | Filter results where name matches regex value
215
215
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
216
216
  offset: 56, # Integer | The initial index from which to return the results.
217
- ordering: ['-avatar_sha256'], # Array<String> | 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)
217
+ ordering: ['-avatar_sha256'], # Array<String> | 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)
218
218
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
219
219
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
220
220
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
@@ -277,7 +277,7 @@ end
277
277
  | **name__regex** | **String** | Filter results where name matches regex value | [optional] |
278
278
  | **name__startswith** | **String** | Filter results where name starts with value | [optional] |
279
279
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
280
- | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;company&#x60; - Company * &#x60;-company&#x60; - Company (descending) * &#x60;email&#x60; - Email * &#x60;-email&#x60; - Email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;resources&#x60; - Resources * &#x60;-resources&#x60; - Resources (descending) * &#x60;links&#x60; - Links * &#x60;-links&#x60; - Links (descending) * &#x60;avatar_sha256&#x60; - Avatar sha256 * &#x60;-avatar_sha256&#x60; - Avatar sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
280
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;company&#x60; - Company * &#x60;-company&#x60; - Company (descending) * &#x60;email&#x60; - Email * &#x60;-email&#x60; - Email (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;resources&#x60; - Resources * &#x60;-resources&#x60; - Resources (descending) * &#x60;links&#x60; - Links * &#x60;-links&#x60; - Links (descending) * &#x60;avatar_sha256&#x60; - Avatar sha256 * &#x60;-avatar_sha256&#x60; - Avatar sha256 (descending) * &#x60;metadata_sha256&#x60; - Metadata sha256 * &#x60;-metadata_sha256&#x60; - Metadata sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
281
281
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
282
282
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
283
283
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
@@ -111,7 +111,7 @@ PulpAnsibleClient.configure do |config|
111
111
  end
112
112
 
113
113
  api_instance = PulpAnsibleClient::RemotesGitApi.new
114
- ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new({name: 'name_example', url: 'url_example'}) # AnsibleGitRemote |
114
+ ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new({url: 'url_example', name: 'name_example'}) # AnsibleGitRemote |
115
115
 
116
116
  begin
117
117
  # Create a git remote
@@ -890,7 +890,7 @@ end
890
890
 
891
891
  api_instance = PulpAnsibleClient::RemotesGitApi.new
892
892
  ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
893
- ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new({name: 'name_example', url: 'url_example'}) # AnsibleGitRemote |
893
+ ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new({url: 'url_example', name: 'name_example'}) # AnsibleGitRemote |
894
894
 
895
895
  begin
896
896
  # Update a git remote
@@ -97,6 +97,7 @@ module PulpAnsibleClient
97
97
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
98
98
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
99
99
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
+ # @option opts [String] :pulp_label_select Filter labels by search string
100
101
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
101
102
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
102
103
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -119,6 +120,7 @@ module PulpAnsibleClient
119
120
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
120
121
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
121
122
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
123
+ # @option opts [String] :pulp_label_select Filter labels by search string
122
124
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
123
125
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
124
126
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -146,6 +148,7 @@ module PulpAnsibleClient
146
148
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
147
149
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
148
150
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
151
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
149
152
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
150
153
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
151
154
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -255,5 +258,153 @@ module PulpAnsibleClient
255
258
  end
256
259
  return data, status_code, headers
257
260
  end
261
+
262
+ # Set a label
263
+ # Set a single pulp_label on the object to a specific value or null.
264
+ # @param ansible_ansible_collection_deprecated_href [String]
265
+ # @param set_label [SetLabel]
266
+ # @param [Hash] opts the optional parameters
267
+ # @return [SetLabelResponse]
268
+ def set_label(ansible_ansible_collection_deprecated_href, set_label, opts = {})
269
+ data, _status_code, _headers = set_label_with_http_info(ansible_ansible_collection_deprecated_href, set_label, opts)
270
+ data
271
+ end
272
+
273
+ # Set a label
274
+ # Set a single pulp_label on the object to a specific value or null.
275
+ # @param ansible_ansible_collection_deprecated_href [String]
276
+ # @param set_label [SetLabel]
277
+ # @param [Hash] opts the optional parameters
278
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
279
+ def set_label_with_http_info(ansible_ansible_collection_deprecated_href, set_label, opts = {})
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.set_label ...'
282
+ end
283
+ # verify the required parameter 'ansible_ansible_collection_deprecated_href' is set
284
+ if @api_client.config.client_side_validation && ansible_ansible_collection_deprecated_href.nil?
285
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_collection_deprecated_href' when calling ContentCollectionDeprecationsApi.set_label"
286
+ end
287
+ # verify the required parameter 'set_label' is set
288
+ if @api_client.config.client_side_validation && set_label.nil?
289
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentCollectionDeprecationsApi.set_label"
290
+ end
291
+ # resource path
292
+ local_var_path = '{ansible_ansible_collection_deprecated_href}set_label/'.sub('{' + 'ansible_ansible_collection_deprecated_href' + '}', CGI.escape(ansible_ansible_collection_deprecated_href.to_s).gsub('%2F', '/'))
293
+
294
+ # query parameters
295
+ query_params = opts[:query_params] || {}
296
+
297
+ # header parameters
298
+ header_params = opts[:header_params] || {}
299
+ # HTTP header 'Accept' (if needed)
300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
301
+ # HTTP header 'Content-Type'
302
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
303
+ if !content_type.nil?
304
+ header_params['Content-Type'] = content_type
305
+ end
306
+
307
+ # form parameters
308
+ form_params = opts[:form_params] || {}
309
+
310
+ # http body (model)
311
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
312
+
313
+ # return_type
314
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
315
+
316
+ # auth_names
317
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
318
+
319
+ new_options = opts.merge(
320
+ :operation => :"ContentCollectionDeprecationsApi.set_label",
321
+ :header_params => header_params,
322
+ :query_params => query_params,
323
+ :form_params => form_params,
324
+ :body => post_body,
325
+ :auth_names => auth_names,
326
+ :return_type => return_type
327
+ )
328
+
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "API called: ContentCollectionDeprecationsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
+ end
333
+ return data, status_code, headers
334
+ end
335
+
336
+ # Unset a label
337
+ # Unset a single pulp_label on the object.
338
+ # @param ansible_ansible_collection_deprecated_href [String]
339
+ # @param unset_label [UnsetLabel]
340
+ # @param [Hash] opts the optional parameters
341
+ # @return [UnsetLabelResponse]
342
+ def unset_label(ansible_ansible_collection_deprecated_href, unset_label, opts = {})
343
+ data, _status_code, _headers = unset_label_with_http_info(ansible_ansible_collection_deprecated_href, unset_label, opts)
344
+ data
345
+ end
346
+
347
+ # Unset a label
348
+ # Unset a single pulp_label on the object.
349
+ # @param ansible_ansible_collection_deprecated_href [String]
350
+ # @param unset_label [UnsetLabel]
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
353
+ def unset_label_with_http_info(ansible_ansible_collection_deprecated_href, unset_label, opts = {})
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.unset_label ...'
356
+ end
357
+ # verify the required parameter 'ansible_ansible_collection_deprecated_href' is set
358
+ if @api_client.config.client_side_validation && ansible_ansible_collection_deprecated_href.nil?
359
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_collection_deprecated_href' when calling ContentCollectionDeprecationsApi.unset_label"
360
+ end
361
+ # verify the required parameter 'unset_label' is set
362
+ if @api_client.config.client_side_validation && unset_label.nil?
363
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentCollectionDeprecationsApi.unset_label"
364
+ end
365
+ # resource path
366
+ local_var_path = '{ansible_ansible_collection_deprecated_href}unset_label/'.sub('{' + 'ansible_ansible_collection_deprecated_href' + '}', CGI.escape(ansible_ansible_collection_deprecated_href.to_s).gsub('%2F', '/'))
367
+
368
+ # query parameters
369
+ query_params = opts[:query_params] || {}
370
+
371
+ # header parameters
372
+ header_params = opts[:header_params] || {}
373
+ # HTTP header 'Accept' (if needed)
374
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
375
+ # HTTP header 'Content-Type'
376
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
377
+ if !content_type.nil?
378
+ header_params['Content-Type'] = content_type
379
+ end
380
+
381
+ # form parameters
382
+ form_params = opts[:form_params] || {}
383
+
384
+ # http body (model)
385
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
386
+
387
+ # return_type
388
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
389
+
390
+ # auth_names
391
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
392
+
393
+ new_options = opts.merge(
394
+ :operation => :"ContentCollectionDeprecationsApi.unset_label",
395
+ :header_params => header_params,
396
+ :query_params => query_params,
397
+ :form_params => form_params,
398
+ :body => post_body,
399
+ :auth_names => auth_names,
400
+ :return_type => return_type
401
+ )
402
+
403
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug "API called: ContentCollectionDeprecationsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
406
+ end
407
+ return data, status_code, headers
408
+ end
258
409
  end
259
410
  end
@@ -93,11 +93,12 @@ module PulpAnsibleClient
93
93
  # @option opts [Integer] :limit Number of results to return per page.
94
94
  # @option opts [String] :marked_collection Filter marks for collection version
95
95
  # @option opts [Integer] :offset The initial index from which to return the results.
96
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;value&#x60; - Value * &#x60;-value&#x60; - Value (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
96
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;value&#x60; - Value * &#x60;-value&#x60; - Value (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
97
97
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
98
98
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
99
99
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
100
100
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
101
+ # @option opts [String] :pulp_label_select Filter labels by search string
101
102
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
102
103
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
103
104
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -118,11 +119,12 @@ module PulpAnsibleClient
118
119
  # @option opts [Integer] :limit Number of results to return per page.
119
120
  # @option opts [String] :marked_collection Filter marks for collection version
120
121
  # @option opts [Integer] :offset The initial index from which to return the results.
121
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;value&#x60; - Value * &#x60;-value&#x60; - Value (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
122
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;value&#x60; - Value * &#x60;-value&#x60; - Value (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
122
123
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
123
124
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
124
125
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
125
126
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
127
+ # @option opts [String] :pulp_label_select Filter labels by search string
126
128
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
127
129
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
128
130
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -136,7 +138,7 @@ module PulpAnsibleClient
136
138
  if @api_client.config.debugging
137
139
  @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.list ...'
138
140
  end
139
- allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-value", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "value"]
141
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-value", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "value"]
140
142
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
141
143
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
142
144
  end
@@ -153,6 +155,7 @@ module PulpAnsibleClient
153
155
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
154
156
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
155
157
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
156
159
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
157
160
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
158
161
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -264,5 +267,153 @@ module PulpAnsibleClient
264
267
  end
265
268
  return data, status_code, headers
266
269
  end
270
+
271
+ # Set a label
272
+ # Set a single pulp_label on the object to a specific value or null.
273
+ # @param ansible_collection_version_mark_href [String]
274
+ # @param set_label [SetLabel]
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [SetLabelResponse]
277
+ def set_label(ansible_collection_version_mark_href, set_label, opts = {})
278
+ data, _status_code, _headers = set_label_with_http_info(ansible_collection_version_mark_href, set_label, opts)
279
+ data
280
+ end
281
+
282
+ # Set a label
283
+ # Set a single pulp_label on the object to a specific value or null.
284
+ # @param ansible_collection_version_mark_href [String]
285
+ # @param set_label [SetLabel]
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
288
+ def set_label_with_http_info(ansible_collection_version_mark_href, set_label, opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.set_label ...'
291
+ end
292
+ # verify the required parameter 'ansible_collection_version_mark_href' is set
293
+ if @api_client.config.client_side_validation && ansible_collection_version_mark_href.nil?
294
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_mark_href' when calling ContentCollectionMarksApi.set_label"
295
+ end
296
+ # verify the required parameter 'set_label' is set
297
+ if @api_client.config.client_side_validation && set_label.nil?
298
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentCollectionMarksApi.set_label"
299
+ end
300
+ # resource path
301
+ local_var_path = '{ansible_collection_version_mark_href}set_label/'.sub('{' + 'ansible_collection_version_mark_href' + '}', CGI.escape(ansible_collection_version_mark_href.to_s).gsub('%2F', '/'))
302
+
303
+ # query parameters
304
+ query_params = opts[:query_params] || {}
305
+
306
+ # header parameters
307
+ header_params = opts[:header_params] || {}
308
+ # HTTP header 'Accept' (if needed)
309
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
310
+ # HTTP header 'Content-Type'
311
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
312
+ if !content_type.nil?
313
+ header_params['Content-Type'] = content_type
314
+ end
315
+
316
+ # form parameters
317
+ form_params = opts[:form_params] || {}
318
+
319
+ # http body (model)
320
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
321
+
322
+ # return_type
323
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
324
+
325
+ # auth_names
326
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
327
+
328
+ new_options = opts.merge(
329
+ :operation => :"ContentCollectionMarksApi.set_label",
330
+ :header_params => header_params,
331
+ :query_params => query_params,
332
+ :form_params => form_params,
333
+ :body => post_body,
334
+ :auth_names => auth_names,
335
+ :return_type => return_type
336
+ )
337
+
338
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "API called: ContentCollectionMarksApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
341
+ end
342
+ return data, status_code, headers
343
+ end
344
+
345
+ # Unset a label
346
+ # Unset a single pulp_label on the object.
347
+ # @param ansible_collection_version_mark_href [String]
348
+ # @param unset_label [UnsetLabel]
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [UnsetLabelResponse]
351
+ def unset_label(ansible_collection_version_mark_href, unset_label, opts = {})
352
+ data, _status_code, _headers = unset_label_with_http_info(ansible_collection_version_mark_href, unset_label, opts)
353
+ data
354
+ end
355
+
356
+ # Unset a label
357
+ # Unset a single pulp_label on the object.
358
+ # @param ansible_collection_version_mark_href [String]
359
+ # @param unset_label [UnsetLabel]
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
362
+ def unset_label_with_http_info(ansible_collection_version_mark_href, unset_label, opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.unset_label ...'
365
+ end
366
+ # verify the required parameter 'ansible_collection_version_mark_href' is set
367
+ if @api_client.config.client_side_validation && ansible_collection_version_mark_href.nil?
368
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_mark_href' when calling ContentCollectionMarksApi.unset_label"
369
+ end
370
+ # verify the required parameter 'unset_label' is set
371
+ if @api_client.config.client_side_validation && unset_label.nil?
372
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentCollectionMarksApi.unset_label"
373
+ end
374
+ # resource path
375
+ local_var_path = '{ansible_collection_version_mark_href}unset_label/'.sub('{' + 'ansible_collection_version_mark_href' + '}', CGI.escape(ansible_collection_version_mark_href.to_s).gsub('%2F', '/'))
376
+
377
+ # query parameters
378
+ query_params = opts[:query_params] || {}
379
+
380
+ # header parameters
381
+ header_params = opts[:header_params] || {}
382
+ # HTTP header 'Accept' (if needed)
383
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
384
+ # HTTP header 'Content-Type'
385
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
386
+ if !content_type.nil?
387
+ header_params['Content-Type'] = content_type
388
+ end
389
+
390
+ # form parameters
391
+ form_params = opts[:form_params] || {}
392
+
393
+ # http body (model)
394
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
395
+
396
+ # return_type
397
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
398
+
399
+ # auth_names
400
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
401
+
402
+ new_options = opts.merge(
403
+ :operation => :"ContentCollectionMarksApi.unset_label",
404
+ :header_params => header_params,
405
+ :query_params => query_params,
406
+ :form_params => form_params,
407
+ :body => post_body,
408
+ :auth_names => auth_names,
409
+ :return_type => return_type
410
+ )
411
+
412
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
413
+ if @api_client.config.debugging
414
+ @api_client.config.logger.debug "API called: ContentCollectionMarksApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
415
+ end
416
+ return data, status_code, headers
417
+ end
267
418
  end
268
419
  end