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.
- checksums.yaml +4 -4
- data/README.md +31 -4
- data/docs/ContentGenericContentsApi.md +152 -2
- data/docs/ContentInstallerFileIndicesApi.md +150 -2
- data/docs/ContentInstallerPackagesApi.md +152 -2
- data/docs/ContentPackageIndicesApi.md +150 -2
- data/docs/ContentPackageReleaseComponentsApi.md +150 -2
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentReleaseArchitecturesApi.md +150 -2
- data/docs/ContentReleaseComponentsApi.md +150 -2
- data/docs/ContentReleaseFilesApi.md +150 -2
- data/docs/ContentReleasesApi.md +150 -2
- data/docs/ContentSourceIndicesApi.md +150 -2
- data/docs/ContentSourcePackagesApi.md +150 -2
- data/docs/ContentSourceReleaseComponentsApi.md +150 -2
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndex.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndex.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponent.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebRelease.md +2 -0
- data/docs/DebReleaseArchitecture.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponent.md +2 -0
- data/docs/DebReleaseComponentResponse.md +2 -0
- data/docs/DebReleaseFile.md +2 -0
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndex.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackage.md +2 -0
- data/docs/DebSourcePackageReleaseComponent.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +4 -2
- data/docs/PublicationsAptApi.md +4 -2
- data/docs/PublicationsVerbatimApi.md +4 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +6 -3
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/unset_label.rb +1 -1
- data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +0 -1
- data/spec/api/content_generic_contents_api_spec.rb +29 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +28 -1
- data/spec/api/content_installer_packages_api_spec.rb +29 -1
- data/spec/api/content_package_indices_api_spec.rb +28 -1
- data/spec/api/content_package_release_components_api_spec.rb +28 -1
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_release_architectures_api_spec.rb +28 -1
- data/spec/api/content_release_components_api_spec.rb +28 -1
- data/spec/api/content_release_files_api_spec.rb +28 -1
- data/spec/api/content_releases_api_spec.rb +28 -1
- data/spec/api/content_source_indices_api_spec.rb +28 -1
- data/spec/api/content_source_packages_api_spec.rb +28 -1
- data/spec/api/content_source_release_components_api_spec.rb +28 -1
- data/spec/api/distributions_apt_api_spec.rb +2 -1
- data/spec/api/publications_apt_api_spec.rb +2 -1
- data/spec/api/publications_verbatim_api_spec.rb +2 -1
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_index_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_release_component_spec.rb +6 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_file_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_release_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_index_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/deb_source_package_spec.rb +6 -0
- 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
96
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
107
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - 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: \"release_href,repository_or_repository_version_href\" 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
160
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - 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: \"release_href,repository_or_repository_version_href\" 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
95
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
120
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - 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
|