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
@@ -94,11 +94,12 @@ module PulpDebClient
94
94
  # @option opts [String] :component Filter results where component matches value
95
95
  # @option opts [Integer] :limit Number of results to return per page.
96
96
  # @option opts [Integer] :offset The initial index from which to return the results.
97
- # @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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (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
+ # @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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (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)
98
98
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
99
99
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
100
100
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
101
101
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
102
+ # @option opts [String] :pulp_label_select Filter labels by search string
102
103
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
103
104
  # @option opts [String] :relative_path Filter results where relative_path matches value
104
105
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -120,11 +121,12 @@ module PulpDebClient
120
121
  # @option opts [String] :component Filter results where component matches value
121
122
  # @option opts [Integer] :limit Number of results to return per page.
122
123
  # @option opts [Integer] :offset The initial index from which to return the results.
123
- # @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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (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)
124
+ # @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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (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)
124
125
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
125
126
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
126
127
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
127
128
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
129
+ # @option opts [String] :pulp_label_select Filter labels by search string
128
130
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
129
131
  # @option opts [String] :relative_path Filter results where relative_path matches value
130
132
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -138,7 +140,7 @@ module PulpDebClient
138
140
  if @api_client.config.debugging
139
141
  @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.list ...'
140
142
  end
141
- allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
143
+ allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
142
144
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
143
145
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
144
146
  end
@@ -156,6 +158,7 @@ module PulpDebClient
156
158
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
157
159
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
158
160
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
161
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
159
162
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
160
163
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
161
164
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -267,5 +270,153 @@ module PulpDebClient
267
270
  end
268
271
  return data, status_code, headers
269
272
  end
273
+
274
+ # Set a label
275
+ # Set a single pulp_label on the object to a specific value or null.
276
+ # @param deb_installer_file_index_href [String]
277
+ # @param set_label [SetLabel]
278
+ # @param [Hash] opts the optional parameters
279
+ # @return [SetLabelResponse]
280
+ def set_label(deb_installer_file_index_href, set_label, opts = {})
281
+ data, _status_code, _headers = set_label_with_http_info(deb_installer_file_index_href, set_label, opts)
282
+ data
283
+ end
284
+
285
+ # Set a label
286
+ # Set a single pulp_label on the object to a specific value or null.
287
+ # @param deb_installer_file_index_href [String]
288
+ # @param set_label [SetLabel]
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
291
+ def set_label_with_http_info(deb_installer_file_index_href, set_label, opts = {})
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.set_label ...'
294
+ end
295
+ # verify the required parameter 'deb_installer_file_index_href' is set
296
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
297
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.set_label"
298
+ end
299
+ # verify the required parameter 'set_label' is set
300
+ if @api_client.config.client_side_validation && set_label.nil?
301
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerFileIndicesApi.set_label"
302
+ end
303
+ # resource path
304
+ local_var_path = '{deb_installer_file_index_href}set_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
305
+
306
+ # query parameters
307
+ query_params = opts[:query_params] || {}
308
+
309
+ # header parameters
310
+ header_params = opts[:header_params] || {}
311
+ # HTTP header 'Accept' (if needed)
312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
313
+ # HTTP header 'Content-Type'
314
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
315
+ if !content_type.nil?
316
+ header_params['Content-Type'] = content_type
317
+ end
318
+
319
+ # form parameters
320
+ form_params = opts[:form_params] || {}
321
+
322
+ # http body (model)
323
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
324
+
325
+ # return_type
326
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
327
+
328
+ # auth_names
329
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
330
+
331
+ new_options = opts.merge(
332
+ :operation => :"ContentInstallerFileIndicesApi.set_label",
333
+ :header_params => header_params,
334
+ :query_params => query_params,
335
+ :form_params => form_params,
336
+ :body => post_body,
337
+ :auth_names => auth_names,
338
+ :return_type => return_type
339
+ )
340
+
341
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ end
345
+ return data, status_code, headers
346
+ end
347
+
348
+ # Unset a label
349
+ # Unset a single pulp_label on the object.
350
+ # @param deb_installer_file_index_href [String]
351
+ # @param unset_label [UnsetLabel]
352
+ # @param [Hash] opts the optional parameters
353
+ # @return [UnsetLabelResponse]
354
+ def unset_label(deb_installer_file_index_href, unset_label, opts = {})
355
+ data, _status_code, _headers = unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts)
356
+ data
357
+ end
358
+
359
+ # Unset a label
360
+ # Unset a single pulp_label on the object.
361
+ # @param deb_installer_file_index_href [String]
362
+ # @param unset_label [UnsetLabel]
363
+ # @param [Hash] opts the optional parameters
364
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
365
+ def unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts = {})
366
+ if @api_client.config.debugging
367
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.unset_label ...'
368
+ end
369
+ # verify the required parameter 'deb_installer_file_index_href' is set
370
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
371
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.unset_label"
372
+ end
373
+ # verify the required parameter 'unset_label' is set
374
+ if @api_client.config.client_side_validation && unset_label.nil?
375
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerFileIndicesApi.unset_label"
376
+ end
377
+ # resource path
378
+ local_var_path = '{deb_installer_file_index_href}unset_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
379
+
380
+ # query parameters
381
+ query_params = opts[:query_params] || {}
382
+
383
+ # header parameters
384
+ header_params = opts[:header_params] || {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
387
+ # HTTP header 'Content-Type'
388
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
389
+ if !content_type.nil?
390
+ header_params['Content-Type'] = content_type
391
+ end
392
+
393
+ # form parameters
394
+ form_params = opts[:form_params] || {}
395
+
396
+ # http body (model)
397
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
398
+
399
+ # return_type
400
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
401
+
402
+ # auth_names
403
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
404
+
405
+ new_options = opts.merge(
406
+ :operation => :"ContentInstallerFileIndicesApi.unset_label",
407
+ :header_params => header_params,
408
+ :query_params => query_params,
409
+ :form_params => form_params,
410
+ :body => post_body,
411
+ :auth_names => auth_names,
412
+ :return_type => return_type
413
+ )
414
+
415
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
+ end
419
+ return data, status_code, headers
420
+ end
270
421
  end
271
422
  end
@@ -23,6 +23,7 @@ module PulpDebClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
27
  # @option opts [String] :artifact Artifact file representing the physical content
27
28
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
28
29
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -38,6 +39,7 @@ module PulpDebClient
38
39
  # Trigger an asynchronous task to create content,optionally create new repository version.
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
41
43
  # @option opts [String] :artifact Artifact file representing the physical content
42
44
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
43
45
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -75,6 +77,7 @@ module PulpDebClient
75
77
  # form parameters
76
78
  form_params = opts[:form_params] || {}
77
79
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
80
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
78
81
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
79
82
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
80
83
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -120,7 +123,7 @@ module PulpDebClient
120
123
  # @option opts [String] :maintainer Filter results where maintainer matches value
121
124
  # @option opts [String] :multi_arch Filter results where multi_arch matches value * &#x60;no&#x60; - no * &#x60;same&#x60; - same * &#x60;foreign&#x60; - foreign * &#x60;allowed&#x60; - allowed
122
125
  # @option opts [Integer] :offset The initial index from which to return the results.
123
- # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
126
+ # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
124
127
  # @option opts [String] :origin Filter results where origin matches value
125
128
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
126
129
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -129,6 +132,7 @@ module PulpDebClient
129
132
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
130
133
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
131
134
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
135
+ # @option opts [String] :pulp_label_select Filter labels by search string
132
136
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
133
137
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
134
138
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -159,7 +163,7 @@ module PulpDebClient
159
163
  # @option opts [String] :maintainer Filter results where maintainer matches value
160
164
  # @option opts [String] :multi_arch Filter results where multi_arch matches value * &#x60;no&#x60; - no * &#x60;same&#x60; - same * &#x60;foreign&#x60; - foreign * &#x60;allowed&#x60; - allowed
161
165
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
166
+ # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
163
167
  # @option opts [String] :origin Filter results where origin matches value
164
168
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
165
169
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -168,6 +172,7 @@ module PulpDebClient
168
172
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
169
173
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
170
174
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
175
+ # @option opts [String] :pulp_label_select Filter labels by search string
171
176
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
172
177
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
173
178
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -188,7 +193,7 @@ module PulpDebClient
188
193
  if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
189
194
  fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
190
195
  end
191
- allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
196
+ allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
192
197
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
193
198
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
194
199
  end
@@ -216,6 +221,7 @@ module PulpDebClient
216
221
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
217
222
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
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?
219
225
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
220
226
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
227
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -330,5 +336,153 @@ module PulpDebClient
330
336
  end
331
337
  return data, status_code, headers
332
338
  end
339
+
340
+ # Set a label
341
+ # Set a single pulp_label on the object to a specific value or null.
342
+ # @param deb_installer_package_href [String]
343
+ # @param set_label [SetLabel]
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [SetLabelResponse]
346
+ def set_label(deb_installer_package_href, set_label, opts = {})
347
+ data, _status_code, _headers = set_label_with_http_info(deb_installer_package_href, set_label, opts)
348
+ data
349
+ end
350
+
351
+ # Set a label
352
+ # Set a single pulp_label on the object to a specific value or null.
353
+ # @param deb_installer_package_href [String]
354
+ # @param set_label [SetLabel]
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
357
+ def set_label_with_http_info(deb_installer_package_href, set_label, opts = {})
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.set_label ...'
360
+ end
361
+ # verify the required parameter 'deb_installer_package_href' is set
362
+ if @api_client.config.client_side_validation && deb_installer_package_href.nil?
363
+ fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.set_label"
364
+ end
365
+ # verify the required parameter 'set_label' is set
366
+ if @api_client.config.client_side_validation && set_label.nil?
367
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerPackagesApi.set_label"
368
+ end
369
+ # resource path
370
+ local_var_path = '{deb_installer_package_href}set_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
371
+
372
+ # query parameters
373
+ query_params = opts[:query_params] || {}
374
+
375
+ # header parameters
376
+ header_params = opts[:header_params] || {}
377
+ # HTTP header 'Accept' (if needed)
378
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
379
+ # HTTP header 'Content-Type'
380
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
381
+ if !content_type.nil?
382
+ header_params['Content-Type'] = content_type
383
+ end
384
+
385
+ # form parameters
386
+ form_params = opts[:form_params] || {}
387
+
388
+ # http body (model)
389
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
390
+
391
+ # return_type
392
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
393
+
394
+ # auth_names
395
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
396
+
397
+ new_options = opts.merge(
398
+ :operation => :"ContentInstallerPackagesApi.set_label",
399
+ :header_params => header_params,
400
+ :query_params => query_params,
401
+ :form_params => form_params,
402
+ :body => post_body,
403
+ :auth_names => auth_names,
404
+ :return_type => return_type
405
+ )
406
+
407
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
408
+ if @api_client.config.debugging
409
+ @api_client.config.logger.debug "API called: ContentInstallerPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
410
+ end
411
+ return data, status_code, headers
412
+ end
413
+
414
+ # Unset a label
415
+ # Unset a single pulp_label on the object.
416
+ # @param deb_installer_package_href [String]
417
+ # @param unset_label [UnsetLabel]
418
+ # @param [Hash] opts the optional parameters
419
+ # @return [UnsetLabelResponse]
420
+ def unset_label(deb_installer_package_href, unset_label, opts = {})
421
+ data, _status_code, _headers = unset_label_with_http_info(deb_installer_package_href, unset_label, opts)
422
+ data
423
+ end
424
+
425
+ # Unset a label
426
+ # Unset a single pulp_label on the object.
427
+ # @param deb_installer_package_href [String]
428
+ # @param unset_label [UnsetLabel]
429
+ # @param [Hash] opts the optional parameters
430
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
431
+ def unset_label_with_http_info(deb_installer_package_href, unset_label, opts = {})
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.unset_label ...'
434
+ end
435
+ # verify the required parameter 'deb_installer_package_href' is set
436
+ if @api_client.config.client_side_validation && deb_installer_package_href.nil?
437
+ fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.unset_label"
438
+ end
439
+ # verify the required parameter 'unset_label' is set
440
+ if @api_client.config.client_side_validation && unset_label.nil?
441
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerPackagesApi.unset_label"
442
+ end
443
+ # resource path
444
+ local_var_path = '{deb_installer_package_href}unset_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
445
+
446
+ # query parameters
447
+ query_params = opts[:query_params] || {}
448
+
449
+ # header parameters
450
+ header_params = opts[:header_params] || {}
451
+ # HTTP header 'Accept' (if needed)
452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
453
+ # HTTP header 'Content-Type'
454
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
455
+ if !content_type.nil?
456
+ header_params['Content-Type'] = content_type
457
+ end
458
+
459
+ # form parameters
460
+ form_params = opts[:form_params] || {}
461
+
462
+ # http body (model)
463
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
464
+
465
+ # return_type
466
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
467
+
468
+ # auth_names
469
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
470
+
471
+ new_options = opts.merge(
472
+ :operation => :"ContentInstallerPackagesApi.unset_label",
473
+ :header_params => header_params,
474
+ :query_params => query_params,
475
+ :form_params => form_params,
476
+ :body => post_body,
477
+ :auth_names => auth_names,
478
+ :return_type => return_type
479
+ )
480
+
481
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
482
+ if @api_client.config.debugging
483
+ @api_client.config.logger.debug "API called: ContentInstallerPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ end
485
+ return data, status_code, headers
486
+ end
333
487
  end
334
488
  end