pulp_deb_client 3.5.1 → 3.5.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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -4
  3. data/docs/ContentGenericContentsApi.md +152 -2
  4. data/docs/ContentInstallerFileIndicesApi.md +150 -2
  5. data/docs/ContentInstallerPackagesApi.md +152 -2
  6. data/docs/ContentPackageIndicesApi.md +150 -2
  7. data/docs/ContentPackageReleaseComponentsApi.md +150 -2
  8. data/docs/ContentPackagesApi.md +152 -2
  9. data/docs/ContentReleaseArchitecturesApi.md +150 -2
  10. data/docs/ContentReleaseComponentsApi.md +150 -2
  11. data/docs/ContentReleaseFilesApi.md +150 -2
  12. data/docs/ContentReleasesApi.md +150 -2
  13. data/docs/ContentSourceIndicesApi.md +150 -2
  14. data/docs/ContentSourcePackagesApi.md +150 -2
  15. data/docs/ContentSourceReleaseComponentsApi.md +150 -2
  16. data/docs/DebGenericContentResponse.md +2 -0
  17. data/docs/DebInstallerFileIndex.md +2 -0
  18. data/docs/DebInstallerFileIndexResponse.md +2 -0
  19. data/docs/DebInstallerPackageResponse.md +2 -0
  20. data/docs/DebPackageIndex.md +2 -0
  21. data/docs/DebPackageIndexResponse.md +2 -0
  22. data/docs/DebPackageReleaseComponent.md +2 -0
  23. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  24. data/docs/DebPackageResponse.md +2 -0
  25. data/docs/DebRelease.md +2 -0
  26. data/docs/DebReleaseArchitecture.md +2 -0
  27. data/docs/DebReleaseArchitectureResponse.md +2 -0
  28. data/docs/DebReleaseComponent.md +2 -0
  29. data/docs/DebReleaseComponentResponse.md +2 -0
  30. data/docs/DebReleaseFile.md +2 -0
  31. data/docs/DebReleaseFileResponse.md +2 -0
  32. data/docs/DebReleaseResponse.md +2 -0
  33. data/docs/DebSourceIndex.md +2 -0
  34. data/docs/DebSourceIndexResponse.md +2 -0
  35. data/docs/DebSourcePackage.md +2 -0
  36. data/docs/DebSourcePackageReleaseComponent.md +2 -0
  37. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  38. data/docs/DebSourcePackageResponse.md +2 -0
  39. data/docs/DistributionsAptApi.md +4 -2
  40. data/docs/PublicationsAptApi.md +4 -2
  41. data/docs/PublicationsVerbatimApi.md +4 -2
  42. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +157 -3
  43. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +154 -3
  44. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +157 -3
  45. data/lib/pulp_deb_client/api/content_package_indices_api.rb +154 -3
  46. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +154 -3
  47. data/lib/pulp_deb_client/api/content_packages_api.rb +157 -3
  48. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +154 -3
  49. data/lib/pulp_deb_client/api/content_release_components_api.rb +154 -3
  50. data/lib/pulp_deb_client/api/content_release_files_api.rb +154 -3
  51. data/lib/pulp_deb_client/api/content_releases_api.rb +154 -3
  52. data/lib/pulp_deb_client/api/content_source_indices_api.rb +154 -3
  53. data/lib/pulp_deb_client/api/content_source_packages_api.rb +154 -3
  54. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +154 -3
  55. data/lib/pulp_deb_client/api/distributions_apt_api.rb +6 -3
  56. data/lib/pulp_deb_client/api/publications_apt_api.rb +6 -3
  57. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +6 -3
  58. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
  59. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
  60. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
  61. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
  62. data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
  63. data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
  64. data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
  65. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
  66. data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
  67. data/lib/pulp_deb_client/models/deb_release.rb +13 -1
  68. data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
  69. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
  70. data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
  71. data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
  72. data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
  73. data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
  74. data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
  75. data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
  76. data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
  77. data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
  78. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
  79. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
  80. data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
  81. data/lib/pulp_deb_client/models/unset_label.rb +1 -1
  82. data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
  83. data/lib/pulp_deb_client/version.rb +1 -1
  84. data/pulp_deb_client.gemspec +0 -1
  85. data/spec/api/content_generic_contents_api_spec.rb +29 -1
  86. data/spec/api/content_installer_file_indices_api_spec.rb +28 -1
  87. data/spec/api/content_installer_packages_api_spec.rb +29 -1
  88. data/spec/api/content_package_indices_api_spec.rb +28 -1
  89. data/spec/api/content_package_release_components_api_spec.rb +28 -1
  90. data/spec/api/content_packages_api_spec.rb +29 -1
  91. data/spec/api/content_release_architectures_api_spec.rb +28 -1
  92. data/spec/api/content_release_components_api_spec.rb +28 -1
  93. data/spec/api/content_release_files_api_spec.rb +28 -1
  94. data/spec/api/content_releases_api_spec.rb +28 -1
  95. data/spec/api/content_source_indices_api_spec.rb +28 -1
  96. data/spec/api/content_source_packages_api_spec.rb +28 -1
  97. data/spec/api/content_source_release_components_api_spec.rb +28 -1
  98. data/spec/api/distributions_apt_api_spec.rb +2 -1
  99. data/spec/api/publications_apt_api_spec.rb +2 -1
  100. data/spec/api/publications_verbatim_api_spec.rb +2 -1
  101. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  102. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  103. data/spec/models/deb_installer_file_index_spec.rb +6 -0
  104. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  105. data/spec/models/deb_package_index_response_spec.rb +6 -0
  106. data/spec/models/deb_package_index_spec.rb +6 -0
  107. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  108. data/spec/models/deb_package_release_component_spec.rb +6 -0
  109. data/spec/models/deb_package_response_spec.rb +6 -0
  110. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  111. data/spec/models/deb_release_architecture_spec.rb +6 -0
  112. data/spec/models/deb_release_component_response_spec.rb +6 -0
  113. data/spec/models/deb_release_component_spec.rb +6 -0
  114. data/spec/models/deb_release_file_response_spec.rb +6 -0
  115. data/spec/models/deb_release_file_spec.rb +6 -0
  116. data/spec/models/deb_release_response_spec.rb +6 -0
  117. data/spec/models/deb_release_spec.rb +6 -0
  118. data/spec/models/deb_source_index_response_spec.rb +6 -0
  119. data/spec/models/deb_source_index_spec.rb +6 -0
  120. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  121. data/spec/models/deb_source_package_release_component_spec.rb +6 -0
  122. data/spec/models/deb_source_package_response_spec.rb +6 -0
  123. data/spec/models/deb_source_package_spec.rb +6 -0
  124. metadata +73 -93
@@ -93,11 +93,12 @@ module PulpDebClient
93
93
  # @option opts [String] :component Filter results where component matches value
94
94
  # @option opts [Integer] :limit Number of results to return per page.
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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (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] :relative_path Filter results where relative_path matches value
103
104
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -118,11 +119,12 @@ module PulpDebClient
118
119
  # @option opts [String] :component Filter results where component matches value
119
120
  # @option opts [Integer] :limit Number of results to return per page.
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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (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] :relative_path Filter results where relative_path matches value
128
130
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -136,7 +138,7 @@ module PulpDebClient
136
138
  if @api_client.config.debugging
137
139
  @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.list ...'
138
140
  end
139
- allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
141
+ allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
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 PulpDebClient
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[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
158
161
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -264,5 +267,153 @@ module PulpDebClient
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 deb_source_index_href [String]
274
+ # @param set_label [SetLabel]
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [SetLabelResponse]
277
+ def set_label(deb_source_index_href, set_label, opts = {})
278
+ data, _status_code, _headers = set_label_with_http_info(deb_source_index_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 deb_source_index_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(deb_source_index_href, set_label, opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.set_label ...'
291
+ end
292
+ # verify the required parameter 'deb_source_index_href' is set
293
+ if @api_client.config.client_side_validation && deb_source_index_href.nil?
294
+ fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.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 ContentSourceIndicesApi.set_label"
299
+ end
300
+ # resource path
301
+ local_var_path = '{deb_source_index_href}set_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_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 => :"ContentSourceIndicesApi.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: ContentSourceIndicesApi#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 deb_source_index_href [String]
348
+ # @param unset_label [UnsetLabel]
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [UnsetLabelResponse]
351
+ def unset_label(deb_source_index_href, unset_label, opts = {})
352
+ data, _status_code, _headers = unset_label_with_http_info(deb_source_index_href, unset_label, opts)
353
+ data
354
+ end
355
+
356
+ # Unset a label
357
+ # Unset a single pulp_label on the object.
358
+ # @param deb_source_index_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(deb_source_index_href, unset_label, opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.unset_label ...'
365
+ end
366
+ # verify the required parameter 'deb_source_index_href' is set
367
+ if @api_client.config.client_side_validation && deb_source_index_href.nil?
368
+ fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.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 ContentSourceIndicesApi.unset_label"
373
+ end
374
+ # resource path
375
+ local_var_path = '{deb_source_index_href}unset_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_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 => :"ContentSourceIndicesApi.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: ContentSourceIndicesApi#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
@@ -104,12 +104,13 @@ module PulpDebClient
104
104
  # @option opts [Integer] :limit Number of results to return per page.
105
105
  # @option opts [String] :maintainer Filter results where maintainer matches value
106
106
  # @option opts [Integer] :offset The initial index from which to return the results.
107
- # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
107
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
108
108
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
109
109
  # @option opts [String] :package_list Filter results where package_list matches value
110
110
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
111
111
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
112
112
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
113
+ # @option opts [String] :pulp_label_select Filter labels by search string
113
114
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
114
115
  # @option opts [String] :relative_path Filter results where relative_path matches value
115
116
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -156,12 +157,13 @@ module PulpDebClient
156
157
  # @option opts [Integer] :limit Number of results to return per page.
157
158
  # @option opts [String] :maintainer Filter results where maintainer matches value
158
159
  # @option opts [Integer] :offset The initial index from which to return the results.
159
- # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
160
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
160
161
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
161
162
  # @option opts [String] :package_list Filter results where package_list matches value
162
163
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
163
164
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
164
165
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
166
+ # @option opts [String] :pulp_label_select Filter labels by search string
165
167
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
166
168
  # @option opts [String] :relative_path Filter results where relative_path matches value
167
169
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -190,7 +192,7 @@ module PulpDebClient
190
192
  if @api_client.config.debugging
191
193
  @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.list ...'
192
194
  end
193
- allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
195
+ allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
194
196
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
195
197
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
196
198
  end
@@ -219,6 +221,7 @@ module PulpDebClient
219
221
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
220
222
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
221
223
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
224
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
222
225
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
223
226
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
224
227
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
@@ -345,5 +348,153 @@ module PulpDebClient
345
348
  end
346
349
  return data, status_code, headers
347
350
  end
351
+
352
+ # Set a label
353
+ # Set a single pulp_label on the object to a specific value or null.
354
+ # @param deb_source_package_href [String]
355
+ # @param set_label [SetLabel]
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [SetLabelResponse]
358
+ def set_label(deb_source_package_href, set_label, opts = {})
359
+ data, _status_code, _headers = set_label_with_http_info(deb_source_package_href, set_label, opts)
360
+ data
361
+ end
362
+
363
+ # Set a label
364
+ # Set a single pulp_label on the object to a specific value or null.
365
+ # @param deb_source_package_href [String]
366
+ # @param set_label [SetLabel]
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
369
+ def set_label_with_http_info(deb_source_package_href, set_label, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.set_label ...'
372
+ end
373
+ # verify the required parameter 'deb_source_package_href' is set
374
+ if @api_client.config.client_side_validation && deb_source_package_href.nil?
375
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.set_label"
376
+ end
377
+ # verify the required parameter 'set_label' is set
378
+ if @api_client.config.client_side_validation && set_label.nil?
379
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourcePackagesApi.set_label"
380
+ end
381
+ # resource path
382
+ local_var_path = '{deb_source_package_href}set_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
383
+
384
+ # query parameters
385
+ query_params = opts[:query_params] || {}
386
+
387
+ # header parameters
388
+ header_params = opts[:header_params] || {}
389
+ # HTTP header 'Accept' (if needed)
390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
391
+ # HTTP header 'Content-Type'
392
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
393
+ if !content_type.nil?
394
+ header_params['Content-Type'] = content_type
395
+ end
396
+
397
+ # form parameters
398
+ form_params = opts[:form_params] || {}
399
+
400
+ # http body (model)
401
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
402
+
403
+ # return_type
404
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
405
+
406
+ # auth_names
407
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
408
+
409
+ new_options = opts.merge(
410
+ :operation => :"ContentSourcePackagesApi.set_label",
411
+ :header_params => header_params,
412
+ :query_params => query_params,
413
+ :form_params => form_params,
414
+ :body => post_body,
415
+ :auth_names => auth_names,
416
+ :return_type => return_type
417
+ )
418
+
419
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
422
+ end
423
+ return data, status_code, headers
424
+ end
425
+
426
+ # Unset a label
427
+ # Unset a single pulp_label on the object.
428
+ # @param deb_source_package_href [String]
429
+ # @param unset_label [UnsetLabel]
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [UnsetLabelResponse]
432
+ def unset_label(deb_source_package_href, unset_label, opts = {})
433
+ data, _status_code, _headers = unset_label_with_http_info(deb_source_package_href, unset_label, opts)
434
+ data
435
+ end
436
+
437
+ # Unset a label
438
+ # Unset a single pulp_label on the object.
439
+ # @param deb_source_package_href [String]
440
+ # @param unset_label [UnsetLabel]
441
+ # @param [Hash] opts the optional parameters
442
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
443
+ def unset_label_with_http_info(deb_source_package_href, unset_label, opts = {})
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.unset_label ...'
446
+ end
447
+ # verify the required parameter 'deb_source_package_href' is set
448
+ if @api_client.config.client_side_validation && deb_source_package_href.nil?
449
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.unset_label"
450
+ end
451
+ # verify the required parameter 'unset_label' is set
452
+ if @api_client.config.client_side_validation && unset_label.nil?
453
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourcePackagesApi.unset_label"
454
+ end
455
+ # resource path
456
+ local_var_path = '{deb_source_package_href}unset_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
457
+
458
+ # query parameters
459
+ query_params = opts[:query_params] || {}
460
+
461
+ # header parameters
462
+ header_params = opts[:header_params] || {}
463
+ # HTTP header 'Accept' (if needed)
464
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
465
+ # HTTP header 'Content-Type'
466
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
467
+ if !content_type.nil?
468
+ header_params['Content-Type'] = content_type
469
+ end
470
+
471
+ # form parameters
472
+ form_params = opts[:form_params] || {}
473
+
474
+ # http body (model)
475
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
476
+
477
+ # return_type
478
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
479
+
480
+ # auth_names
481
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
482
+
483
+ new_options = opts.merge(
484
+ :operation => :"ContentSourcePackagesApi.unset_label",
485
+ :header_params => header_params,
486
+ :query_params => query_params,
487
+ :form_params => form_params,
488
+ :body => post_body,
489
+ :auth_names => auth_names,
490
+ :return_type => return_type
491
+ )
492
+
493
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
494
+ if @api_client.config.debugging
495
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
+ end
497
+ return data, status_code, headers
498
+ end
348
499
  end
349
500
  end
@@ -92,11 +92,12 @@ module PulpDebClient
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @option opts [Integer] :limit Number of results to return per page.
94
94
  # @option opts [Integer] :offset The initial index from which to return the results.
95
- # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
95
+ # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
96
96
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
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] :release_component Filter results where release_component matches value
102
103
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -116,11 +117,12 @@ module PulpDebClient
116
117
  # @param [Hash] opts the optional parameters
117
118
  # @option opts [Integer] :limit Number of results to return per page.
118
119
  # @option opts [Integer] :offset The initial index from which to return the results.
119
- # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
120
+ # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
120
121
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
121
122
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
122
123
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
123
124
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
125
+ # @option opts [String] :pulp_label_select Filter labels by search string
124
126
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
125
127
  # @option opts [String] :release_component Filter results where release_component matches value
126
128
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -134,7 +136,7 @@ module PulpDebClient
134
136
  if @api_client.config.debugging
135
137
  @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.list ...'
136
138
  end
137
- allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
139
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
138
140
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
139
141
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
140
142
  end
@@ -150,6 +152,7 @@ module PulpDebClient
150
152
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
151
153
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
152
154
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
155
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
153
156
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
154
157
  query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
155
158
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -261,5 +264,153 @@ module PulpDebClient
261
264
  end
262
265
  return data, status_code, headers
263
266
  end
267
+
268
+ # Set a label
269
+ # Set a single pulp_label on the object to a specific value or null.
270
+ # @param deb_source_package_release_component_href [String]
271
+ # @param set_label [SetLabel]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [SetLabelResponse]
274
+ def set_label(deb_source_package_release_component_href, set_label, opts = {})
275
+ data, _status_code, _headers = set_label_with_http_info(deb_source_package_release_component_href, set_label, opts)
276
+ data
277
+ end
278
+
279
+ # Set a label
280
+ # Set a single pulp_label on the object to a specific value or null.
281
+ # @param deb_source_package_release_component_href [String]
282
+ # @param set_label [SetLabel]
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
285
+ def set_label_with_http_info(deb_source_package_release_component_href, set_label, opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.set_label ...'
288
+ end
289
+ # verify the required parameter 'deb_source_package_release_component_href' is set
290
+ if @api_client.config.client_side_validation && deb_source_package_release_component_href.nil?
291
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component_href' when calling ContentSourceReleaseComponentsApi.set_label"
292
+ end
293
+ # verify the required parameter 'set_label' is set
294
+ if @api_client.config.client_side_validation && set_label.nil?
295
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourceReleaseComponentsApi.set_label"
296
+ end
297
+ # resource path
298
+ local_var_path = '{deb_source_package_release_component_href}set_label/'.sub('{' + 'deb_source_package_release_component_href' + '}', CGI.escape(deb_source_package_release_component_href.to_s).gsub('%2F', '/'))
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
307
+ # HTTP header 'Content-Type'
308
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
309
+ if !content_type.nil?
310
+ header_params['Content-Type'] = content_type
311
+ end
312
+
313
+ # form parameters
314
+ form_params = opts[:form_params] || {}
315
+
316
+ # http body (model)
317
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
318
+
319
+ # return_type
320
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
321
+
322
+ # auth_names
323
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
324
+
325
+ new_options = opts.merge(
326
+ :operation => :"ContentSourceReleaseComponentsApi.set_label",
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => return_type
333
+ )
334
+
335
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
336
+ if @api_client.config.debugging
337
+ @api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
338
+ end
339
+ return data, status_code, headers
340
+ end
341
+
342
+ # Unset a label
343
+ # Unset a single pulp_label on the object.
344
+ # @param deb_source_package_release_component_href [String]
345
+ # @param unset_label [UnsetLabel]
346
+ # @param [Hash] opts the optional parameters
347
+ # @return [UnsetLabelResponse]
348
+ def unset_label(deb_source_package_release_component_href, unset_label, opts = {})
349
+ data, _status_code, _headers = unset_label_with_http_info(deb_source_package_release_component_href, unset_label, opts)
350
+ data
351
+ end
352
+
353
+ # Unset a label
354
+ # Unset a single pulp_label on the object.
355
+ # @param deb_source_package_release_component_href [String]
356
+ # @param unset_label [UnsetLabel]
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
359
+ def unset_label_with_http_info(deb_source_package_release_component_href, unset_label, opts = {})
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.unset_label ...'
362
+ end
363
+ # verify the required parameter 'deb_source_package_release_component_href' is set
364
+ if @api_client.config.client_side_validation && deb_source_package_release_component_href.nil?
365
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component_href' when calling ContentSourceReleaseComponentsApi.unset_label"
366
+ end
367
+ # verify the required parameter 'unset_label' is set
368
+ if @api_client.config.client_side_validation && unset_label.nil?
369
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourceReleaseComponentsApi.unset_label"
370
+ end
371
+ # resource path
372
+ local_var_path = '{deb_source_package_release_component_href}unset_label/'.sub('{' + 'deb_source_package_release_component_href' + '}', CGI.escape(deb_source_package_release_component_href.to_s).gsub('%2F', '/'))
373
+
374
+ # query parameters
375
+ query_params = opts[:query_params] || {}
376
+
377
+ # header parameters
378
+ header_params = opts[:header_params] || {}
379
+ # HTTP header 'Accept' (if needed)
380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
381
+ # HTTP header 'Content-Type'
382
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
383
+ if !content_type.nil?
384
+ header_params['Content-Type'] = content_type
385
+ end
386
+
387
+ # form parameters
388
+ form_params = opts[:form_params] || {}
389
+
390
+ # http body (model)
391
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
392
+
393
+ # return_type
394
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
395
+
396
+ # auth_names
397
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
398
+
399
+ new_options = opts.merge(
400
+ :operation => :"ContentSourceReleaseComponentsApi.unset_label",
401
+ :header_params => header_params,
402
+ :query_params => query_params,
403
+ :form_params => form_params,
404
+ :body => post_body,
405
+ :auth_names => auth_names,
406
+ :return_type => return_type
407
+ )
408
+
409
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
410
+ if @api_client.config.debugging
411
+ @api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
412
+ end
413
+ return data, status_code, headers
414
+ end
264
415
  end
265
416
  end