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
@@ -94,12 +94,13 @@ module PulpDebClient
|
|
94
94
|
# @option opts [String] :distribution Filter results where distribution 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 * `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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
97
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
98
98
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
99
99
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
100
100
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
101
101
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
102
102
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
103
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
103
104
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
104
105
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
105
106
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -119,12 +120,13 @@ module PulpDebClient
|
|
119
120
|
# @option opts [String] :distribution Filter results where distribution matches value
|
120
121
|
# @option opts [Integer] :limit Number of results to return per page.
|
121
122
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
124
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
124
125
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
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] :repository_version Repository Version referenced by HREF/PRN
|
130
132
|
# @option opts [String] :repository_version_added 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: ContentReleaseComponentsApi.list ...'
|
138
140
|
end
|
139
|
-
allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
141
|
+
allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "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
|
@@ -155,6 +157,7 @@ module PulpDebClient
|
|
155
157
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
156
158
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
157
159
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
160
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
158
161
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
159
162
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
160
163
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].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_release_component_href [String]
|
274
|
+
# @param set_label [SetLabel]
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [SetLabelResponse]
|
277
|
+
def set_label(deb_release_component_href, set_label, opts = {})
|
278
|
+
data, _status_code, _headers = set_label_with_http_info(deb_release_component_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_release_component_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_release_component_href, set_label, opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.set_label ...'
|
291
|
+
end
|
292
|
+
# verify the required parameter 'deb_release_component_href' is set
|
293
|
+
if @api_client.config.client_side_validation && deb_release_component_href.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_component_href' when calling ContentReleaseComponentsApi.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 ContentReleaseComponentsApi.set_label"
|
299
|
+
end
|
300
|
+
# resource path
|
301
|
+
local_var_path = '{deb_release_component_href}set_label/'.sub('{' + 'deb_release_component_href' + '}', CGI.escape(deb_release_component_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 => :"ContentReleaseComponentsApi.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: ContentReleaseComponentsApi#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_release_component_href [String]
|
348
|
+
# @param unset_label [UnsetLabel]
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @return [UnsetLabelResponse]
|
351
|
+
def unset_label(deb_release_component_href, unset_label, opts = {})
|
352
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_release_component_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_release_component_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_release_component_href, unset_label, opts = {})
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.unset_label ...'
|
365
|
+
end
|
366
|
+
# verify the required parameter 'deb_release_component_href' is set
|
367
|
+
if @api_client.config.client_side_validation && deb_release_component_href.nil?
|
368
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_component_href' when calling ContentReleaseComponentsApi.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 ContentReleaseComponentsApi.unset_label"
|
373
|
+
end
|
374
|
+
# resource path
|
375
|
+
local_var_path = '{deb_release_component_href}unset_label/'.sub('{' + 'deb_release_component_href' + '}', CGI.escape(deb_release_component_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 => :"ContentReleaseComponentsApi.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: ContentReleaseComponentsApi#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
|
@@ -93,11 +93,12 @@ module PulpDebClient
|
|
93
93
|
# @option opts [String] :codename Filter results where codename 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set 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
|
@@ -119,11 +120,12 @@ module PulpDebClient
|
|
119
120
|
# @option opts [String] :codename Filter results where codename matches value
|
120
121
|
# @option opts [Integer] :limit Number of results to return per page.
|
121
122
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
|
+
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
124
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
124
125
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
125
126
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
126
127
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
128
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
127
129
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
128
130
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
129
131
|
# @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: ContentReleaseFilesApi.list ...'
|
140
142
|
end
|
141
|
-
allowable_values = ["-architectures", "-artifact_set_sha256", "-codename", "-components", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "architectures", "artifact_set_sha256", "codename", "components", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "suite", "timestamp_of_interest", "upstream_id"]
|
143
|
+
allowable_values = ["-architectures", "-artifact_set_sha256", "-codename", "-components", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "architectures", "artifact_set_sha256", "codename", "components", "distribution", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "suite", "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
|
@@ -155,6 +157,7 @@ module PulpDebClient
|
|
155
157
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
156
158
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
157
159
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
160
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
158
161
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
159
162
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
160
163
|
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_release_file_href [String]
|
277
|
+
# @param set_label [SetLabel]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [SetLabelResponse]
|
280
|
+
def set_label(deb_release_file_href, set_label, opts = {})
|
281
|
+
data, _status_code, _headers = set_label_with_http_info(deb_release_file_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_release_file_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_release_file_href, set_label, opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.set_label ...'
|
294
|
+
end
|
295
|
+
# verify the required parameter 'deb_release_file_href' is set
|
296
|
+
if @api_client.config.client_side_validation && deb_release_file_href.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_file_href' when calling ContentReleaseFilesApi.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 ContentReleaseFilesApi.set_label"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '{deb_release_file_href}set_label/'.sub('{' + 'deb_release_file_href' + '}', CGI.escape(deb_release_file_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 => :"ContentReleaseFilesApi.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: ContentReleaseFilesApi#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_release_file_href [String]
|
351
|
+
# @param unset_label [UnsetLabel]
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @return [UnsetLabelResponse]
|
354
|
+
def unset_label(deb_release_file_href, unset_label, opts = {})
|
355
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_release_file_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_release_file_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_release_file_href, unset_label, opts = {})
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.unset_label ...'
|
368
|
+
end
|
369
|
+
# verify the required parameter 'deb_release_file_href' is set
|
370
|
+
if @api_client.config.client_side_validation && deb_release_file_href.nil?
|
371
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_file_href' when calling ContentReleaseFilesApi.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 ContentReleaseFilesApi.unset_label"
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = '{deb_release_file_href}unset_label/'.sub('{' + 'deb_release_file_href' + '}', CGI.escape(deb_release_file_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 => :"ContentReleaseFilesApi.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: ContentReleaseFilesApi#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
|
@@ -95,13 +95,14 @@ module PulpDebClient
|
|
95
95
|
# @option opts [String] :label Filter results where label matches value
|
96
96
|
# @option opts [Integer] :limit Number of results to return per page.
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
-
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
98
|
+
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
99
99
|
# @option opts [String] :origin Filter results where origin matches value
|
100
100
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
101
101
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
102
102
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
103
103
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
104
104
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
105
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
105
106
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
106
107
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
107
108
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -124,13 +125,14 @@ module PulpDebClient
|
|
124
125
|
# @option opts [String] :label Filter results where label matches value
|
125
126
|
# @option opts [Integer] :limit Number of results to return per page.
|
126
127
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
|
-
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
128
|
+
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
128
129
|
# @option opts [String] :origin Filter results where origin matches value
|
129
130
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
130
131
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
131
132
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
132
133
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
133
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
|
134
136
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
135
137
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
136
138
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -144,7 +146,7 @@ module PulpDebClient
|
|
144
146
|
if @api_client.config.debugging
|
145
147
|
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
|
146
148
|
end
|
147
|
-
allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
|
149
|
+
allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
|
148
150
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
149
151
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
150
152
|
end
|
@@ -165,6 +167,7 @@ module PulpDebClient
|
|
165
167
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
166
168
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
167
169
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
170
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
168
171
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
169
172
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
170
173
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -276,5 +279,153 @@ module PulpDebClient
|
|
276
279
|
end
|
277
280
|
return data, status_code, headers
|
278
281
|
end
|
282
|
+
|
283
|
+
# Set a label
|
284
|
+
# Set a single pulp_label on the object to a specific value or null.
|
285
|
+
# @param deb_release_href [String]
|
286
|
+
# @param set_label [SetLabel]
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @return [SetLabelResponse]
|
289
|
+
def set_label(deb_release_href, set_label, opts = {})
|
290
|
+
data, _status_code, _headers = set_label_with_http_info(deb_release_href, set_label, opts)
|
291
|
+
data
|
292
|
+
end
|
293
|
+
|
294
|
+
# Set a label
|
295
|
+
# Set a single pulp_label on the object to a specific value or null.
|
296
|
+
# @param deb_release_href [String]
|
297
|
+
# @param set_label [SetLabel]
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
300
|
+
def set_label_with_http_info(deb_release_href, set_label, opts = {})
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.set_label ...'
|
303
|
+
end
|
304
|
+
# verify the required parameter 'deb_release_href' is set
|
305
|
+
if @api_client.config.client_side_validation && deb_release_href.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_href' when calling ContentReleasesApi.set_label"
|
307
|
+
end
|
308
|
+
# verify the required parameter 'set_label' is set
|
309
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
310
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentReleasesApi.set_label"
|
311
|
+
end
|
312
|
+
# resource path
|
313
|
+
local_var_path = '{deb_release_href}set_label/'.sub('{' + 'deb_release_href' + '}', CGI.escape(deb_release_href.to_s).gsub('%2F', '/'))
|
314
|
+
|
315
|
+
# query parameters
|
316
|
+
query_params = opts[:query_params] || {}
|
317
|
+
|
318
|
+
# header parameters
|
319
|
+
header_params = opts[:header_params] || {}
|
320
|
+
# HTTP header 'Accept' (if needed)
|
321
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
322
|
+
# HTTP header 'Content-Type'
|
323
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
324
|
+
if !content_type.nil?
|
325
|
+
header_params['Content-Type'] = content_type
|
326
|
+
end
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = opts[:form_params] || {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
333
|
+
|
334
|
+
# return_type
|
335
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
336
|
+
|
337
|
+
# auth_names
|
338
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
339
|
+
|
340
|
+
new_options = opts.merge(
|
341
|
+
:operation => :"ContentReleasesApi.set_label",
|
342
|
+
:header_params => header_params,
|
343
|
+
:query_params => query_params,
|
344
|
+
:form_params => form_params,
|
345
|
+
:body => post_body,
|
346
|
+
:auth_names => auth_names,
|
347
|
+
:return_type => return_type
|
348
|
+
)
|
349
|
+
|
350
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
351
|
+
if @api_client.config.debugging
|
352
|
+
@api_client.config.logger.debug "API called: ContentReleasesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
+
end
|
354
|
+
return data, status_code, headers
|
355
|
+
end
|
356
|
+
|
357
|
+
# Unset a label
|
358
|
+
# Unset a single pulp_label on the object.
|
359
|
+
# @param deb_release_href [String]
|
360
|
+
# @param unset_label [UnsetLabel]
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [UnsetLabelResponse]
|
363
|
+
def unset_label(deb_release_href, unset_label, opts = {})
|
364
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_release_href, unset_label, opts)
|
365
|
+
data
|
366
|
+
end
|
367
|
+
|
368
|
+
# Unset a label
|
369
|
+
# Unset a single pulp_label on the object.
|
370
|
+
# @param deb_release_href [String]
|
371
|
+
# @param unset_label [UnsetLabel]
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
374
|
+
def unset_label_with_http_info(deb_release_href, unset_label, opts = {})
|
375
|
+
if @api_client.config.debugging
|
376
|
+
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.unset_label ...'
|
377
|
+
end
|
378
|
+
# verify the required parameter 'deb_release_href' is set
|
379
|
+
if @api_client.config.client_side_validation && deb_release_href.nil?
|
380
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_href' when calling ContentReleasesApi.unset_label"
|
381
|
+
end
|
382
|
+
# verify the required parameter 'unset_label' is set
|
383
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
384
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentReleasesApi.unset_label"
|
385
|
+
end
|
386
|
+
# resource path
|
387
|
+
local_var_path = '{deb_release_href}unset_label/'.sub('{' + 'deb_release_href' + '}', CGI.escape(deb_release_href.to_s).gsub('%2F', '/'))
|
388
|
+
|
389
|
+
# query parameters
|
390
|
+
query_params = opts[:query_params] || {}
|
391
|
+
|
392
|
+
# header parameters
|
393
|
+
header_params = opts[:header_params] || {}
|
394
|
+
# HTTP header 'Accept' (if needed)
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
396
|
+
# HTTP header 'Content-Type'
|
397
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
398
|
+
if !content_type.nil?
|
399
|
+
header_params['Content-Type'] = content_type
|
400
|
+
end
|
401
|
+
|
402
|
+
# form parameters
|
403
|
+
form_params = opts[:form_params] || {}
|
404
|
+
|
405
|
+
# http body (model)
|
406
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
407
|
+
|
408
|
+
# return_type
|
409
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
410
|
+
|
411
|
+
# auth_names
|
412
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
413
|
+
|
414
|
+
new_options = opts.merge(
|
415
|
+
:operation => :"ContentReleasesApi.unset_label",
|
416
|
+
:header_params => header_params,
|
417
|
+
:query_params => query_params,
|
418
|
+
:form_params => form_params,
|
419
|
+
:body => post_body,
|
420
|
+
:auth_names => auth_names,
|
421
|
+
:return_type => return_type
|
422
|
+
)
|
423
|
+
|
424
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug "API called: ContentReleasesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
427
|
+
end
|
428
|
+
return data, status_code, headers
|
429
|
+
end
|
279
430
|
end
|
280
431
|
end
|